Ludwig1 Posted July 17, 2015 Share Posted July 17, 2015 Hi!I want to add a login and logout button depending if you are logged in or logged out. This function works, but I do not know how to add it in my Menu (see attached file): {if $logged} <a href="{$link->getPageLink('index', true, NULL, 'mylogout')}">{l s='Log out' mod='blockuserinfo'}</a> {else} <a href="{$link->getPageLink('my-account', true)}">{l s='Login' mod='blockuserinfo'}</a> {/if}In the menu it says:Products - About us - Contact - Log in (I want to change the login to log out if you are logged in an vice versa)Thank you for your support! Link to comment Share on other sites More sharing options...
NemoPS Posted July 18, 2015 Share Posted July 18, 2015 Is that the default top horizontal menu, with different styling? Or another module?If it is, theme folder, modules, blocktopmenu, amend the tpl there Link to comment Share on other sites More sharing options...
Ludwig1 Posted July 18, 2015 Author Share Posted July 18, 2015 Is that the default top horizontal menu, with different styling? Or another module? If it is, theme folder, modules, blocktopmenu, amend the tpl there Hi, Nemo! Thank you for your respond. It is the default, but with a styled front end. Great, I will try that. Thank you! Link to comment Share on other sites More sharing options...
mendo698 Posted October 27, 2015 Share Posted October 27, 2015 Hello! first of all, sorry for my English I've pasted the code in: themes / default-bootstrap / modules / blocktopmenu / blocktopmenu.tpl but the "Login" leaves very little as it is in Picture 1 and I want to leave as in Picture 2 (if possible, with another color box included) ... not if anyone could give me lights as I can do Thank you!! Link to comment Share on other sites More sharing options...
NemoPS Posted October 28, 2015 Share Posted October 28, 2015 You need to style it with css now, of course COuld you share your site's url? Link to comment Share on other sites More sharing options...
mendo698 Posted October 29, 2015 Share Posted October 29, 2015 (edited) You need to style it with css now, of course COuld you share your site's url? I found the error... I was hitting bad code Edited October 29, 2015 by mendo698 (see edit history) Link to comment Share on other sites More sharing options...
LazyCircles Posted July 15, 2016 Share Posted July 15, 2016 I found the error... I was hitting bad code Hello mendo698, I'm having a similar problem, can you please show me what you did to get it working? Thanks in advance, Best regards, Bruno Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now