Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
I've created a branded login page, but can't see how to add a logout link, like the one that's in the crg-default template.
Can someone let me know how to do this, please?
Thanks.
Offline
the only thing I can think of is to add the needed code following the Login text in Localisations under Client Accounts > TEXT_LOGIN
Since the text is pre-wrapped in H2 tags you'll need to make sure you've got the code in proper html. If you want the text to be smaller you can use some inline styling
You should be able to just copy the code from the page source code of a CRG page you're logged in to.
You'll end up with something like this for the TEXT_LOGIN localisation:
Login<p style="font-size: 14px;"><a class="logout" title="Logout" href="http://yoursite.com/ttg-be/crg/?a=logout"><i class="fa fa-fw fa-times-circle-o"></i>Logout</a></p>
This leaves the logout icon and also ads the text "Logout". If you don't want the logout icon, just remove this portion:
<i class="fa fa-fw fa-times-circle-o"></i>
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Alternatively, the CRG script supports links with the classes submit-large and logout-large, intended for use within a page. These won't be affected by the styling of the small logout and submit classes.
e.g.
<a href="#" class="logout-large">Click here to logout</a>
Offline
Thanks Rod, Thanks Ben,
I added the TEXT_LOGIN localisation code, but when I go to
http://www.mysite.com/ttg-be/crg/
it already says Logout, even though you're not logged in. And when you log in, the login link disappears.
What to do?
I was just looking for the Logout link to appear on the summary page of gallery links that the client sees after logging in.
Last edited by RobS (2015-05-06 09:47:57)
Offline
Then just look for the "Albums Assigned to You" text in Localisations and add the logout code there.
the field is named: TEXT_ASSIGNED_ALBUMS
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks Rod. That works.
Offline