subnav metadata to show in left nav

fuelishways's Avatar

fuelishways

12 Mar, 2015 08:41 PM

I'm not sure where in this format I need to put the conditional to NOT include pages with the metadata "show-in-nav" set to "no"

  1. 1 Posted by Ryan Griffith on 13 Mar, 2015 12:40 PM

    Ryan Griffith's Avatar

    Hi,

    I think you would want to replace the two occurrences of system-page[name!='index'] (lines 49 and 81) with an updated XPath that includes only pages that have the dynamic metadata field set to Yes.

    Something like the following should do the trick:

    system-page[name!='index' and dynamic-metadata[name='show-in-nav']/value = 'Yes']
    

    Please let me know if you have any questions.

    Thanks!

  2. Ryan Griffith closed this discussion on 19 Mar, 2015 02:01 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM