Is there a way within the Manager to have a page redirect to another page? I know I can do this using JavaScript or something server side like PHP, but I’d rather do it with a built in Modx function if something like that is available.
This pretty much sums up what I want to do:
About Us >
--Company Overview
--Page 3
--Page 4
When someone clicks on About Us, I want it to redirect to Company Overview. I have 3 such top nav level positions where I need to do this. Thanks!
Regards,
Matt
-
MODX Staff
- 730 Posts
One of these snippets will probably do the trick:
http://www.modxcms.com/FirstChildRedirect-834.html
http://www.modxcms.com/phiRedirect-1537.html
You could also make the folder a Weblink document whose Weblink attribute is the id of the document you want to redirect to. I just tried it to make sure that Weblinks can be folders and it worked for me.