I have several custom page types on my site, which all inherit fields from a custom "base" type, including a field defining which navigation areas a particular page can appear in.
I'm trying to use the CMSListMenu control, which I believe is the recommended approach for a nav, but it looks like it's using View_CMS_Tree_Joined which obviously doesn't include my custom field so I just get an error.
What's the recommended approach to build a menu where visibility is based on a custom page type field?
Please read Best Practices for Implementing Site Navigation in Kentico. You will be better off with a repeater. CMSlistMenu is quite limited.
Use Repeater for simple menu or hierarchical viewer for more complex menu. When you specify the class name property in those controls, the Tree_Joined view with be joined with the page type class table as well so you can get the custom field.
Thanks both - Repeater does the trick.
Please, sign in to be able to submit a new answer.