How to link to a pages child automaticly from page defults
Permalink
Hi there
I have the lastest version on concrete5 runing and i set-up my own theme no problem.
I have also set-up page defults so my client can add a new event page and it lays it all out with defult information blocks etc.
How ever I have a link on this page which i have put in the typography.css so i can chose a style from the list on a standard content block.(so no auto-nav used)
The button on this page is "more info" which will link to the child of the current page which they also created using a custom page layout.
Ok what i would like to know is if thire a way to make this button alwasy link to the current pages child page? with out puttiog a URL path on the link? (on the page defults, so the end users doesn't need to do anythink?)
Is this possible? or do i need to use the autonav (which i am alrady using on the page? so i dont want to mess it up!) and its only one link and has a differnt name to the page so i dont think auto-nav will do it for me?
maybe?
link url:http://www.concrete5.org/child(1)+
or just
url:child(1)
Is this possible? if not can i make a block which does?
Many Thanks for any answers or ideas
Regards
Carl Lee
I have the lastest version on concrete5 runing and i set-up my own theme no problem.
I have also set-up page defults so my client can add a new event page and it lays it all out with defult information blocks etc.
How ever I have a link on this page which i have put in the typography.css so i can chose a style from the list on a standard content block.(so no auto-nav used)
The button on this page is "more info" which will link to the child of the current page which they also created using a custom page layout.
Ok what i would like to know is if thire a way to make this button alwasy link to the current pages child page? with out puttiog a URL path on the link? (on the page defults, so the end users doesn't need to do anythink?)
Is this possible? or do i need to use the autonav (which i am alrady using on the page? so i dont want to mess it up!) and its only one link and has a differnt name to the page so i dont think auto-nav will do it for me?
maybe?
link url:http://www.concrete5.org/child(1)+
or just
url:child(1)
Is this possible? if not can i make a block which does?
Many Thanks for any answers or ideas
Regards
Carl Lee
Hi there,
So it is the auto nav block i need to use oK, so i have added an autonav block and have stylesed it in the css to have the red box click i want. But where do I put this code? I think you are still look so will await your responce
Thanks
Carl
So it is the auto nav block i need to use oK, so i have added an autonav block and have stylesed it in the css to have the red box click i want. But where do I put this code? I think you are still look so will await your responce
Thanks
Carl
Ok, I thought that you hard code it into page type .php file. If not, just add auto-nav and set it to display "pages below that page" (or something like that...)
Of course it will dsplay name of page instead of "more info". So this is solution: I've atached package - unzip it, and put to your root directory via ftp. I mean there should be "blocks" folder, and there you should put autonav/templates/more_info.php which I gave you.
Then you have to click on that ready auto-nav on your site and choose Custom Template. Set it to More Info.
Voila! :)
Of course it will dsplay name of page instead of "more info". So this is solution: I've atached package - unzip it, and put to your root directory via ftp. I mean there should be "blocks" folder, and there you should put autonav/templates/more_info.php which I gave you.
Then you have to click on that ready auto-nav on your site and choose Custom Template. Set it to More Info.
Voila! :)
Wicked -- works a treat --- The more i use teh auto-nav the more i like it!
Thanks for the help,
There realy should be away to award you with a star for quick reposnce and help, But i belive thats on addons only..
Maybe I should ask the team to add it in
Many Thanks
Carl Lee
Thanks for the help,
There realy should be away to award you with a star for quick reposnce and help, But i belive thats on addons only..
Maybe I should ask the team to add it in
Many Thanks
Carl Lee
I'm happy that it works.
Actually there is a system of symbolic gratfication - Karma. When you mark my post as "Best answer" I get 250 of Karma (and you 50 for choosing), and there is counter of good answers in profile, and we have badges... it's enough. :)
Cheers,
Emil
Actually there is a system of symbolic gratfication - Karma. When you mark my post as "Best answer" I get 250 of Karma (and you 50 for choosing), and there is counter of good answers in profile, and we have badges... it's enough. :)
Cheers,
Emil
This will shaw links to all subpages. If there will be only one, you have what you want. :)
Edit: there should be the custom template to change the name of this page - give me sec.. :)
You can have many auto-navs on one page, there is no problem with that.