Site structure
Version 2.x > Site structure > dynamic secondary menu View modes: 
User avatar
Member
Member
jonathanchauncey@fdle.state.fl.us - 12/14/2007 5:12:01 PM
   
dynamic secondary menu
i want to use the css list navigation to create a secondary flyout menu for subpages of a particular page.

example

root
-1
-2
--3
--4
--5
-6
--7
--8
--9
--10

if you were looking at page 2 there would be a subnav showing pages 3,4,5

but if you were on page 6 it would show 7,8,9,10...

is there anyway to do this?

User avatar
Member
Member
Mufasa - 1/24/2008 12:49:09 AM
   
RE:dynamic secondary menu
Off the top of my head, I would figure you could do this by editing the Context->Path element of the menu control. I'm pretty sure the documentation tells you how to do this with some special commands like: {0}/{1}/* or something like that.

Look up that method and post what you find out.

User avatar
Member
Member
kentico_vitaja - 7/14/2008 9:07:58 AM
   
RE:dynamic secondary menu
Hi,

I think that easiest way how to achieve this is to use existing web part: Tree menu (LeftTreeMenu). There you will set Path property similarly to this one: /{0}/%

Best regards,
Vita Janecek

User avatar
Member
Member
Jenks - 7/23/2010 2:02:14 AM
   
RE:dynamic secondary menu
if i have to display it like
-6
--7
--8
--9
--10
then what path should i set...

My goal is to display the menu and its sub path if the menu is clicked. Can you offer any help regarding this ???

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 7/31/2010 4:57:57 PM
   
RE:dynamic secondary menu
Hi,

I suppose you've already found some answers to achieve this in thread "CMS-Tab-Control-Issue"

Just to mention, I've added one possible trick with setting the Path as (notice the second '/' missing)

'/{0}%'

That should return also the parent node with all the subpages.

Regards,
Zdenek C.