craft-preparse-field icon indicating copy to clipboard operation
craft-preparse-field copied to clipboard

Neo Support

Open jalendport opened this issue 6 years ago • 7 comments

Thanks for the awesome plugin. Just wondering, does Preparse support Neo fields? I noticed in the README that you mentioned some custom templating for matrix fields but couldn't find anything online for Neo fields. Is Neo something you support? If so, how would I call a Neo sibling/field in my Preparse field?

Cc @benjamminf

jalendport avatar Aug 26 '17 03:08 jalendport

+1

ockam avatar Sep 29 '17 19:09 ockam

@aelvan has anyone ever looked at this or suggested a solution?

adrienne avatar Jun 04 '20 18:06 adrienne

I've never used Neo, so I have no idea if it works or not. I'm not sure why it wouldn't, since it's basically just a plain text field. I see on this page in the neo docs that it says that preparse field may cause neo blocks to disappear, I suspect that that's just due to some ill-behaving Twig not cloning element queries when accessing them.

aelvan avatar Jun 04 '20 19:06 aelvan

@aelvan - I haven't managed to get it to work with Neo (my preparse field just stays blank) but I'll try again!

adrienne avatar Jun 07 '20 20:06 adrienne

For anyone using Neo, I only have a single preparse field installed which aims to serialize all the content contained in the Neo blocks for search indexing and SEO.

Even having this single field (it's completely separate to the Neo field), causes it to fail on-save. See https://github.com/spicywebau/craft-neo/issues/398 for a video.

I've had to disable the plugin altogether, otherwise my blocks disappear.

engram-design avatar Sep 03 '20 13:09 engram-design

@engram-design I'll take a look at this as soon as I can 👍

jalendport avatar Sep 03 '20 14:09 jalendport

Any plans to add Neo support or a workaround for the described bug?

We are using preparse-field on a section block (Neo field) to prerender a anchor id based on the title and now experienced the same loss of nesting of all neo block-children described here: https://github.com/craftcms/cms/issues/13256

denisyilmaz avatar Nov 11 '23 07:11 denisyilmaz