Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Adding SubDirectories


Go to End


3 Posts   1447 Views

Avatar
S0crates9

27 Posts

24 November 2008 at 9:42am

How does one add sub-directories? All of my CMS entries are at top level, even though they are hierarchical in the admin back-end display?

For example: mysite.com/articles would have pages like mysite.com/articles/article1 etc...

On a similar note (more for education), what dicates visually or otherwise a level or a menu(1) Vs. Menu(2) declaration? It seems I can never get any calls like those to work - usually only by controlling children of Menu(1)....

Avatar
Liam

Community Member, 470 Posts

24 November 2008 at 10:29am

Nested URLs don't work at the moment. This question gets asked a lot and if you search the forum you'll see other topics on it.

It is coming though, probably in version 2.4 which will be a ways off. There is also a development branch of it in subversion which is still very beta.

As for Menu(1), Menu(2) etc, they only work in the top level so you can't use them for nested menus. That's why you use control children instead.

Avatar
Willr

Forum Moderator, 5523 Posts

24 November 2008 at 6:10pm

hierarchical urls will be a very welcome feature of 2.4!. The work done by ajshort is actually pretty stable at the moment and we are actually using it on a few client projects internally to just put it through its paces before we merge it back into trunk which might be a wee bit off.