We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Structure - How to check if a page has children?

Development and Programming

antiuser's avatar
antiuser
44 posts
16 years ago
antiuser's avatar antiuser

I’m doing a site with drop-down navigation menus that should only display if the top-level pages have children. How do I check for that, using Structure 1.x? It seems that the Structure site doesn’t have the docs for 1.x anymore so I had to come and ask here…

       
Dom Stubbs's avatar
Dom Stubbs
156 posts
16 years ago
Dom Stubbs's avatar Dom Stubbs

{exp:structure:child_ids} returns 0 if a page has no children, but I don’t know whether that was available in 1.x.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.