Skip to main content
6 events
when toggle format what by license comment
May 17, 2017 at 18:43 vote accept nightowl
May 17, 2017 at 18:43 comment added nightowl The reason I chose not to make them separate was because of the code output for the accordion and the fact that for each of this paragraph type I wanted to have the exact same fields, no differences. Your code actually ended up working for me though. I had to place it within the loop function for it to work. Before I was placing it above the code where it was setting the paragraph_id (not displayed in my question but lives right above {# Prints Accordion template. #}). Thanks for your help.
May 17, 2017 at 17:59 comment added 4uk4 That's the answer for the question in the title. Can't debug your code. Did you consider theming each paragraph and the fields they contain in separate templates? That's the concept of nested paragraphs. Theme the layout of each and make them reusable. What you try to do is only for a fixed structure of paragraphs.
May 17, 2017 at 17:21 comment added nightowl I tried this, but it unfortunately does not output anything.
May 17, 2017 at 17:02 history edited 4uk4 CC BY-SA 3.0
added 26 characters in body
May 17, 2017 at 16:56 history answered 4uk4 CC BY-SA 3.0