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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Point main menu item to sub-menu item (solved)


Go to End


5 Posts   4859 Views

Avatar
digibrains

Community Member, 130 Posts

16 July 2010 at 1:19pm

Edited: 18/07/2010 12:46pm

Just wondering if there's a way to point a Menu(1) item to a Menu(2) item?

I tried the virtual page type, but it won't actually point to a sub page, and it takes on the sub-title.

I tried to leave it as a basic page type and change the url, but because it's a sub-page I cant use slashes in the url, they get changed to dashes.

Any idea?

Chris.b

Avatar
TotalNet

Community Member, 181 Posts

16 July 2010 at 3:03pm

Have you tried creating a redirector page?

Avatar
digibrains

Community Member, 130 Posts

16 July 2010 at 3:50pm

Thanks TotalNet.

My preference would be to keep it to the cms, but if that's the only way, I can live with that.

Thanks!
Chris.b

Avatar
TotalNet

Community Member, 181 Posts

16 July 2010 at 6:03pm

No Problem but I'm not sure what you mean.

A redirector page is a standard page type you can use in the cms just like a virtual page. That way you can add a menu "link" to a sub-page wherever you like. I think that's what you're trying to do.

Avatar
digibrains

Community Member, 130 Posts

18 July 2010 at 12:44pm

Edited: 18/07/2010 12:45pm

Doh!

I took your first answer to mean a 301 redirect in the template. But now I see the redirect page in the cms. I guess I totally missed that before.
Thanks a ton!

Chris.b