snk1324
-
6/5/2011 7:24:46 AM
RE:CMSTreeMenu Custom fields in MenuItem DocumentType
Sure, I created two fields. ShowInTopNav and ShowInLeftNav. Both of these fields are boolean flags. We have a duel navigation, navigation on the top and the left. For the most part they match, but the client wants some differences in what is on the top nav and what is on the left nav. For the top nav we used the css list menu, and we used the tree menu on the left. For the top nav we set the path to /% and set the where clause to ShowInTopNav=1. This works as expected. For the left nav, we have set the path to /{0}/%, but setting the Where to ShowInLeftNav=1 results in nothing being shown in the navigation at all. I am guessing that the tree uses View_CMS_Tree_Joined, but that does not return the extra fields in the menuitem document type, like the View_CONTENT_MeniItem_Joined does that is used on the topnav.
|