Questions tagged [plugin-neo]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
7 views

How can I set a Neo field's values from my plugin/module?

I wish to programmatically set the value of a Neo field. This is my current approach: $entryData = self::setupEntryData($item); $entry = new Entry($entryData); $fieldValues = [ 'heading' => $...
0
votes
0answers
32 views

Getting ID of first and last Neo blocks of certain type

With the below {{ module.type }} outputs 'moduleFAQ' but firstFAQId and lastFAQId don't output anything. Why is that? {% for module in module.children.all() %} {% set firstFAQ = module.type('...
1
vote
1answer
32 views

What causes an entry's field to be marked as “modified” when the entry is saved?

When an entry is saved, what causes the entry's individual fields to be marked as "modified" in the POST request? I'm trying to troubleshoot an issue where a modified Redactor field that is a child ...
1
vote
1answer
64 views

Neo: children won't display or I get all() deprecation notice

I have a Neo field set up like so: -Row --Column -Body Columns can also contain body. With this: {% set modules = entry.pageBuilder .with([ 'moduleBody', 'moduleRow'...
1
vote
1answer
68 views

Supertable or Neo for nested Matrices and compatibility with Craft 4

I typically avoid using Supertable or Neo because I don't want the extra dependency going forward. However I'm in a project where I needed nested matrices. I know that in C4 nested matrices will be ...
1
vote
1answer
128 views

(content) Propagation + website in multiple languages

Currently we're developing a craft multi-site that has 3 languages (nl, fr, en). It's an upgrade (new style, removing junk, ..) from another cms so the content has to be inputted manually. We've ...
0
votes
0answers
19 views

PositionedAfter method doesn’t work in Craft-Neo

I’m trying to use PositionedAfter method in Craft Cms 3 but it doesnt work. There is no error shown the URL which is passing in that button. Attached is the screenshot of code
1
vote
1answer
130 views

Feed Me plugin not mapping Neo fields

I have Neo fields in my entries which I want to be populated by a JSON feed pulled in through Feed Me, im using elementApi top create the JSON feed. The Feed Me setup runs fine and there are no ...
2
votes
1answer
103 views

Wrapping divs around a group of neo blocks

How can I wrap a div around certain neo fields based on what appears before or after them? Basically I want to wrap a container div around a set of items (text based objects) only at the start and ...
1
vote
0answers
34 views

Custom format for Sprout SEO 3 Element Metadata

Does Sprout SEO work with Neo fields? I'm trying to create multiple fallbacks within a custom formatted element metadata field in Sprout, so I could just use one Sprout SEO field with element ...
1
vote
0answers
67 views

Duplicating a Neo field's content

I'm writing a plugin to duplicate a Structure within Craft 2. I've covered off duplicating the section, entry types, field layouts and can duplicate the entries, covering of the main Craft fields. ...
1
vote
1answer
252 views

Get relatedTo from Neo field

In channel A, we have a Neo field with a couple of different block types, in 1 of those types we have an entries field with channel B entries. On the channel B entry, I'd like to find out if it is ...
1
vote
2answers
61 views

Error when outputting assets from a field within a Neo field

Anyone with Neo experience had issues with outputting an assets field with multiple images? I am not using a dynamic field, as I saw there are issues with that. Code {% for asset in block....
1
vote
1answer
331 views

Counting included child blocks in the Neo plugin

In the Neo plugin, I've made a block that has the option to add 3 child blocks underneath it. This is the code from the parent block: {% extends 'neo/default' %} {% block blockContent %} <...
1
vote
1answer
188 views

Multilang Bug with Matrix, Neo, SuperTable (with Video)

We have a big problem with CraftCMS and Multilang. We have the default language German (DE) in Craft. We have news entries with matrix fields We create a new language English (EN) as second language ...
1
vote
1answer
321 views

Neo plugin - Displaying an image from a Matrix field

I am using the Neo plugin in my project. I have made a Neofield article content with several block types in it. Amongst the block types that I have in it, is a gallery as well. Gallery block type has ...
1
vote
1answer
195 views

Why do I get 'Could not resolve the subpath “{slug}” after trying to add a category select to a Neo field?

I tried to add a Category Select field into a Neoblock but when i first saved the entry I received the following error: Internal Server Error Could not resolve the subpath “{slug}”. I ...
2
votes
1answer
85 views

How can I make Craft's caching aware of fields used inside a plugin?

I have a complex template which uses various modules and sub-components for which I opted for handling all the logic and rendering directly in PHP, as it felt like it was too complex a job for twig. ...
2
votes
0answers
154 views

Neo performance (large page)

I'm using Matrix and Neo to build out quite large, complex entries. On larger pages (70+ blocks each with one-multiple sub-blocks) the performance is taking a bit of a hit taking upwards of 40 seconds ...
1
vote
1answer
43 views

Adding class based on length

I'm using Neo to allow my client to be able to create a content grid with child blocks. Now I'm wondering, is there a way that I can change the class of the output based on the number of items? For ...
2
votes
0answers
111 views

Can't seem to get reverse relational field working from within a Neo field

Has anyone managed to get reverse relations from a Neo field working? I have a Neo field containing an Entries field which works fine on the page/section entry where I have the Neo field, but I’m ...
1
vote
1answer
791 views

Entries Fields inside a Neo Field

I have again some trouble with a Neo field. I've a Neo field with different layouts. In one I will output content from some entries with a entries field. The problem is: Sometimes I get output, ...
1
vote
2answers
1k views

Craft Neo – childs Output

I have a question. How can I output the Childs from a Neo (Neo Plugin) Block? With this code, i get the output for all level 1 blocks but i don't get a output for the deeper levels. And how can I ...