Closed (duplicate)
Project:
Display Suite
Version:
7.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2011 at 18:58 UTC
Updated:
26 Aug 2011 at 14:31 UTC
Is it possible to iterate through the fields of a particular region from within a layout template?
I see that the fields which are associated with a region are held in that region's variable but are already rendered. I need to determine which fields are associated with a region and iterate through those rendering the label and content manually. Hopefully I can iterate through them in the order they are listed in the region.
Specifically what I'm doing is building a dynamic table within the template of what ever fields are held in a particular region. (are the better ways of doing this?)
Thanks.
Comments
Comment #1
swentel commentedWell, you can still use the $content variable, that's is still available in the templates - I'll check if the other variables are available as well, but I don't think so. However, you could use the ds_get_layout function to get the configuration normally.
Comment #2
swentel commentedAddressing all these issue in #1237626: Themes/modules cannot alter entity render arrays before ds layouts are rendered