I need Parent page to link to same url as its child page
Permalink 5 users found helpful
Hi,
I need the parent page to go to the same page as the first child page so the parent page acts as a heading.
So in the nav the title would say Projects and underneath that would be Current and Past.
But I want the Projects link to be the same page as the Current link which is its child.
Don't ask why, it's just happened like that.
Ive tried with some success an external link but you have very few attribute options with it and can't hide the children etc.
Any other ideas.
Nige
I need the parent page to go to the same page as the first child page so the parent page acts as a heading.
So in the nav the title would say Projects and underneath that would be Current and Past.
But I want the Projects link to be the same page as the Current link which is its child.
Don't ask why, it's just happened like that.
Ive tried with some success an external link but you have very few attribute options with it and can't hide the children etc.
Any other ideas.
Nige
Just thought there's an option 'replace_link_with_first_in_nav', not?
but where do I find that. Its not an attribute I can see...
just define it at the page type attributes:
it should be a checkbox, cause we only need the 2 states true/false, checked by default, one less click if we add it.
the handle must be 'replace_link_with_first_in_nav' (like it checks for in auto-navs view). Enter a name of your choice.
now a page that is grabbed with generateNav() by auto-navs controller and that has that set replaces its link with the first child of the underneath level.
what i've seen by testing this, it will respect the 'order by' set in autonav settings.
it should be a checkbox, cause we only need the 2 states true/false, checked by default, one less click if we add it.
the handle must be 'replace_link_with_first_in_nav' (like it checks for in auto-navs view). Enter a name of your choice.
now a page that is grabbed with generateNav() by auto-navs controller and that has that set replaces its link with the first child of the underneath level.
what i've seen by testing this, it will respect the 'order by' set in autonav settings.
that works really well and it's a brilliant thing.
I've never appreciated the power of attributes because I don't know the handles.
I guess its knowing which handle affects what and where.
How do you find out all that stuff?
Nige
I've never appreciated the power of attributes because I don't know the handles.
I guess its knowing which handle affects what and where.
How do you find out all that stuff?
Nige
Just building/builded some templates for autonav block, looked a bit at the code and readed some docs ;)