Developer forum

Forum » Templates » ItemPublisher / RenderItemList and paragraphs vs. include all child items

ItemPublisher / RenderItemList and paragraphs vs. include all child items

René Poulsen
René Poulsen
Reply

Hi,

I have a structure off departments and employees that goes something like this:

  • Department 1
  • Department 2 
    • Employee a (paragraph on Department 2 page)
    • Employee b (paragraph on Department 2 page)
    • Subdepartment 2.1 (subpage to Department 2)
      • Employee c (paragraph on Subdepartment 2.2 page)
      • Employee d (paragraph on Subdepartment 2.2 page)
    • Subdepartment 2.2 (subpage to Department 2)
      • Employee e (paragraph on Subdepartment 2.3 page)
      • Employee f (paragraph on Subdepartment 2.3 page)
  • Department 3 (subpage to Department 2)

If i try to render the employee items on "Department 2" page with ItemPublisher or RenderItemList, all the employees on Subdepartment 2.1 and Subdepartment 2.2 is also shown. I only set the "Include paragraph" items and NOT the "include all child items". Is it not possible to only show the paragraphs of the specific page I choose? Or is this only possbile on a pagelevel?


Replies

 
Nicolai Pedersen
Reply

That is not possible to restrict as of now. You would have to filter it out in the template

You should basically never use paragraph items for other than extending paragraphs properties...

Instead consider using the "list subpages" feature in 9.3/9.4

 

You must be logged in to post in the forum