Page Routing

Permalink
Is there a way that I can set up certain pages to redirect automatically? For instance, if I click on the link for the home page on my site, can I set it up so it redirects to a different page instead?

I tried using a javascript function, but would rather do it in PHP so that there are not multiple page loads.

 
frz replied on at Permalink Reply
frz
we've danced with that a few times, but it quickly becomes a nightmare as it's difficult to actually GET back to that page to edit it later.

I find when we're doing this, we're better off just making a custom autonav/page list template to handle the navigation we're dealing with... little hacking in a theme.. that kinda thing.
jelthure replied on at Permalink Reply
jelthure
I managed to get this working using a combo of a new page type in my theme and a couple attributes. Right now it's working with options to redirect to the first child page or to a custom URL. Also for editing purposes it displays a place holder stating that the page is set to redirect and gives a link to where.

I will share this with everyone after I clean it up a little, probly in a couple days.

frz/andrew not sure where the proper forum to post in, "Building with.."? I'll write up a little tutorial to on how to set up.
frz replied on at Permalink Reply
frz
here is fine, we'll pull it out to the marketplace if needbe.
paulfeakins replied on at Permalink Reply
paulfeakins
That new page type with a custom attribute sounds like a good way to do it - I've worked with lots of CMSs and I always come across this problem of having a page that just exists to contain other pages. I've always found the redirect method to work well.

Did you get round to putting the code for your page type online? If not I'll just rewrite it :)
cyandesigns replied on at Permalink Reply
Did this ever get resolved? I am looking for the same thing, I have a parent page that exists only to hold it's children.

Any help would be GREATLY appreciated!
shivmaurya replied on at Permalink Reply
how to redirect the page to next page