Include Login/Logout Link in Autonav
Permalink 1 user found helpful
There's a nice dynamic login/logout link in the footer of Cloneamental. Is there a way to include one of these in an autonav? In 5.6 I added a content block instead of an autonav at the top of the page and just placed links to pages plus this link in it, but of course I lost the responsive menu for mobile devices.
@oakhill
ramonleenders, is correct. The Cloneamental code works in an Auto-Nav custom template.
This is the code for the link.
Where do you want the link to show up within the Auto-Nav?
ramonleenders, is correct. The Cloneamental code works in an Auto-Nav custom template.
This is the code for the link.
echo Core::make('helper/navigation')->getLogInOutLink();
Where do you want the link to show up within the Auto-Nav?
Sir,
I also wanted to include the login logout link, but since I am new to concrete 5 as well as coding, I am unable to find where to insert the link in the auto-nav php files.
I have fruitful theme installed.
Link to website is traceink.com
I also wanted to include the login logout link, but since I am new to concrete 5 as well as coding, I am unable to find where to insert the link in the auto-nav php files.
I have fruitful theme installed.
Link to website is traceink.com
@Prachir
I have attached a zip file to this reply. In the zip file is an Auto-Nav block custom template with the login/logout link.
- unzip login.zip into the Fruitful Auto-Nav templates folder
packages\fruitful\blocks\autonav\templates\login\view.php
- apply the Login custom template
http://documentation.concrete5.org/editors/in-page-editing/block-ar...
I have attached a zip file to this reply. In the zip file is an Auto-Nav block custom template with the login/logout link.
- unzip login.zip into the Fruitful Auto-Nav templates folder
packages\fruitful\blocks\autonav\templates\login\view.php
- apply the Login custom template
http://documentation.concrete5.org/editors/in-page-editing/block-ar...
Thank u very much sir..
Sir can you guide me how to insert my logo into nav bar as creating another global block for logo is not solving my purpose
concrete 5.7.5.3
website- http://www.traceink.com
Thank you sir.
concrete 5.7.5.3
website- http://www.traceink.com
Thank you sir.
@Prachir
Please create a new Discussion for this new topic.
Please create a new Discussion for this new topic.
Thanks. That worked perfectly.
If you want a non-hardcoded way, there are some navigation Add-Ons which may serve your needs.