Skip to main content
fixed readability
Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

There is no perfect filter that does this. The closest thing I can think of is the ItemsFilterDataItemsFilterData with the RecursiveRecursive property to trueTrue. However, this will simply get all the items in a given publicationPublication/folderFolder/SG recursively through all nested subitems.

I think in your case you will need to get the ID of your level 1 componentComponent, fetch that componentComponent, get the ID of the next level and so on. Basically drill down until you get to the componentComponent that's on a pagePage.

There is no perfect filter that does this. The closest thing I can think of is the ItemsFilterData with the Recursive property to true. However, this will simply get all the items in a given publication/folder/SG recursively through all nested subitems.

I think in your case you will need to get the ID of your level 1 component, fetch that component, get the ID of the next level and so on. Basically drill down until you get to the component that's on a page.

There is no perfect filter that does this. The closest thing I can think of is the ItemsFilterData with the Recursive property to True. However, this will simply get all the items in a given Publication/Folder/SG recursively through all nested subitems.

I think in your case you will need to get the ID of your level 1 Component, fetch that Component, get the ID of the next level and so on. Basically drill down until you get to the Component that's on a Page.

Source Link
Nickoli Roussakov
  • 18.4k
  • 4
  • 31
  • 62

There is no perfect filter that does this. The closest thing I can think of is the ItemsFilterData with the Recursive property to true. However, this will simply get all the items in a given publication/folder/SG recursively through all nested subitems.

I think in your case you will need to get the ID of your level 1 component, fetch that component, get the ID of the next level and so on. Basically drill down until you get to the component that's on a page.