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

swentel’s picture

Well, 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.

swentel’s picture

Status: Active » Closed (duplicate)