CMSListMenu and hardcoded list elements?

Yang Wen asked on May 4, 2015 16:58

In our site's nav menu, we want certain elements to be represented in the menu that's not part of the CMS site. These menu entries are to the old version of the site.

In essence, we would like to hard code a few LI elements within the UL that's generated by CMSListMenu.

Does it support this capability out of the box?

Recent Answers


Brenden Kehren answered on May 4, 2015 18:55

Easiest thing to do is create a page in the content tree where you want the navigation item to show and that page is just a placeholder and does the redirect to where you want it to go. This way the navigation element shows and you get your redirect.

2 votesVote for this answer Mark as a Correct answer

Yang Wen answered on May 4, 2015 19:01

Hmm but that would create an unnecessary redirect.

How do you specify a redirect within a shell page?

THx

0 votesVote for this answer Mark as a Correct answer

Charles Matvchuk answered on May 4, 2015 19:50

Create the page. On the tabs go to Navigation. Under menu actions, click the radio button "URL redirection" and put in your new page. I use this extensively when migrating systems to newer versions and trees. You get the menu caption you want.

3 votesVote for this answer Mark as a Correct answer

Yang Wen answered on May 5, 2015 02:07

Oh It looks like I would need to use a Repeater to output markup for the Mega Menu I've developed in the prototype......

I should be able to hardcode in an extra LI in the web part HTML envelope field

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 5, 2015 06:34

So your original question asked "...we want certain elements to be represented in the menu that's not part of the CMS site...". The instructions both Charles and I provided will do what you need.

Now on to your next issue, using a CSS List Menu with a mega menu. This can be done, you just need to know how the menu is rendered and the names of the classes that are rendered, then create your styles/classes to wrap around the ones Kentico creates.

The other and better option would be to use a Hierarchical or Universal Viewer. Do not use a repeater with any number of nested repeaters for a mega menu, you will regret it later for performance reasons.

3 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.