5.5.2.1 => still no replace_link_with_first_in_nav ?

Permalink
I still don't see this as a standard selectable Custom Attribute. Are we still using this DIY technique or has it changed to something else? Will it ever be added to the default installation?

Also, I saw in a different thread someone posted this solution to how to do it programmatically:
$child = $c->getFirstChild();
$cID = $child->getCollectionID();
header('Location:' . Page::getCollectionPathFromID($cID));

...but I'm not sure where that code would go.

 
zoinks replied on at Permalink Reply
Actually, i just upgraded to the newest 5.6.1.2 and did the DIY thing. It still works. If there is any better way to do it, or if anyone knows where that code above might go, I'd still love to know. Thanks.
shahroq replied on at Permalink Best Answer Reply
shahroq
Try this one out, works fine, also you can inspire from the code base for creating your own code:
http://www.concrete5.org/marketplace/addons/page-auto-redirect/...
zoinks replied on at Permalink Reply
Thanks, that looks pretty cool! :)