Page Auto Redirect

Permalink
How do I redirect to > First child page ?

 
mnakalay replied on at Permalink Reply
mnakalay
create a page attribute of type checkbox. Give it a handle of replace_link_with_first_in_nav and any name you want. Then save

Add it to any page you want to redirect to its first child.

This works with the autonav block but not with the page list block
pauk replied on at Permalink Reply 2 Attachments
Hi mnakalay
Thanks for reply - I am new to version 7 and cant find the checkbox you mention.
I attach screendump of my dashboard. Can you please guide me

R/Flemming
ConcreteOwl replied on at Permalink Reply 1 Attachment
ConcreteOwl
@mnakalay has given a much better description of how to create a new page attribute below..
Therefore my solution has been deleted..
mnakalay replied on at Permalink Reply
mnakalay
Here's a quick video I made to show you how to do it.

https://www.youtube.com/watch?v=2ctYIwyAtRU...

But please keep in mind, this solution might not work depending on what you're trying to achieve.

What this does is affect only the autonav block.

Typically you'd have an autonav block that serves as your website's menu. Using that attribute would allow redirecting to the first child when clicking on a link.

But it won't do anything if the user gets to the parent page directly instead of clicking on the link in the autonav.

If you are looking for a solution to ensure users are redirected to the child page no matter what then you need a different approach.

The good news is that it has fewer steps than the previous solution.

First, you need to install 2 free packages:
http://www.concrete5.org/marketplace/addons/page-selector-attribute...
http://www.concrete5.org/marketplace/addons/page-redirect1...

Install them in that order because the second one won't install without the first one.

Once that's done, you just add a page attribute to your page as you would normally do (like on your screenshots). To the page you want to redirect, you add the attribute "Page Redirect" and you select which page you want it to redirect to.

With that solution, no matter how users get to that page, they will be redirected to the other one.

Let me know if something is not clear.