java - Magnolia CMS, iterate through components in different area -
i create navigation in "header" area based on specific components in "content-body" area. need iterate through "content-body" area components , find specific ones , pass them navigation template. wondering if can tell me how iterate other area components different area controller.
did try like:
[#assign yourotherarea = cmsfn.contentbypath("/path/to/my/navigation/area")] [@cms.area name="navigation" content=yourotherarea/] imo should enough. cms.area directive doesn't care node should render comes from.
hth,
jan
Comments
Post a Comment