Skip to main content

How to get the children for the pagereffolder?

Comments

2 comments

  • Zendesk API User
    Author: mbergmann - 7/28/2022 2:06

    Hi Siva,

    the reason you get 3 ist that „technically“ also some additional information like label names of the folder are considered „children“. So you you have to check for the type of the elements.

    Michael

    0
  • Zendesk API User
    Author: sivaprasad9394 - 7/28/2022 6:32

    Hello Bergmann,

    Thank you for your reply. Any how only 2 types are available here in sitestorefolder. As you have mentioned in previous thread it can be achieved like below,

     

    bsh % import de.espirit.firstspirit.access.store.sitestore.PageRef;
    bsh % e.getChildren(de.espirit.firstspirit.access.store.sitestore.PageRef.class);
    <de.espirit.firstspirit.store.access.AbstractStoreElement$StoreElementListable@68bb0f20>
    bsh % e.getChildren(de.espirit.firstspirit.access.store.sitestore.PageRef.class).toList();
    <[]>
    bsh % import de.espirit.firstspirit.access.store.sitestore.PageRefFolder;
    bsh % e.getChildren(de.espirit.firstspirit.access.store.sitestore.PageRefFolder.class).toList();
    <[]>
    bsh %

     

    Thank you,

    Siva

     

     

    0

Please sign in to leave a comment.