-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested Entries not rendering at all on front end #249
Comments
Hi @brianrivet-tilt, thanks for getting in touch! Can you please provide a bit more info on this? How are you rendering the content of your CKEditor field? Do you have your partial templates set up? What is it that you see vs what do you expect to see? |
Hi Iwona, I do have my partials set up. I have them in a folder, it isn't in the standard location, but I have the partialTemplatesPath setting set to the correct folder in my general php file. Plus the templates were working prior to my upgrade to Craft 5.2.0 and CKEditor 4.1.0. As for what I am seeing, when I look at the page in the browser, the content from the CKEditor field itself is rendering (so paragraph text, etc. comes in fine). The nested entries however do not. If I view the page in the inspector, I see these tags where the nested entries should be:
|
Thanks for all the details! I’m not able to reproduce that. Would you mind sending your composer.json, composer.lock, database export, and your templates to [email protected] and point out the entry this is happening for, so we can try to reproduce this and dig deeper? |
I replied via support. For posterity, the nested entries weren’t rendering as the content of the entire CKEditor field (both markup and entry chunks) was run through the |
Thanks Iwona,
This actually helped touch on another support request I had made a couple of weeks ago regarding passing parameters to nested entries in a ckeditor field. I didn’t know about the chunks feature. That is very interesting because it looks like that provides the means to pass parameters into ckeditor nested entries that I was looking for.
Brian Rivet
***@***.***
… On Jun 14, 2024, at 3:10 PM, Iwona Just ***@***.***> wrote:
I replied via support.
For posterity, the nested entries weren’t rendering as the content of the entire CKEditor field (both markup and entry chunks) was run through the retconAttr filter, which caused the nested entries not to get rendered as expected.
Iterating through the chunks and applying the retconAttr filter to the markup-type chunks makes the nested entries render as expected. (If desired, the filter can then be applied to the content of the nested entry via its partial template.)
—
Reply to this email directly, view it on GitHub <#249 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ARLDFFRQTSNNMMTMQABZ4RTZHNE3LAVCNFSM6AAAAABJI56TSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYGY4TANZQGA>.
You are receiving this because you were mentioned.
|
...also for posterity, I just tagged Retcon 3.1.1, including a fix for the mentioned behaviour in cases where |
Description
I'm not seeing my nested entries rendering on the front end after upgrading to 4.1.0. When I view the html output I see this where the output from my nested entry templates should be:
The entry number changes, but it isn't rendering the template code.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: