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.

General Questions

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

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

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


Reply

5 Posts   3706 Views

Avatar
prawnstar

16 July 2010 at 1:19pm (Last edited: 18 July 2010 12:46pm), Community Member, 116 Posts

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

16 July 2010 at 3:03pm Community Member, 181 Posts

Have you tried creating a redirector page?

Avatar
prawnstar

16 July 2010 at 3:50pm Community Member, 116 Posts

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

16 July 2010 at 6:03pm Community Member, 181 Posts

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
prawnstar

18 July 2010 at 12:44pm (Last edited: 18 July 2010 12:45pm), Community Member, 116 Posts

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