Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-01-08 11:49:07
- perksy
- New Member
- Registered: 2008-01-03
- Posts: 3
Logout problems with ign_password_protect and if_category
Hi Guys,
Need some quite urgent help please.
I have put together the following code. The logout link works when the main page or individual article is displayed. BUT if you are on a category page the logout link isn’t working. It returns a black template which doesn’t actually log you out. You can still use the nav with is within the <txp:if_logged_in> tags.
<div id="nav">
<txp:ign_if_logged_in>
=== Show nav ===
</txp:ign_if_logged_in>
</div>
<div id="content">
<txp:ign_password_protect err_msg="Error Message" login_msg="Login Message">
<span class="logout-box"><txp:ign_logged_user /></span>
</txp:ign_password_protect>
<txp:if_category>
<txp:ign_if_logged_in>
=== CATEGORY LIST ===
</txp:ign_if_logged_in>
<txp:else />
<txp:ign_if_logged_in>
<txp:if_individual_article>
=== INDIVIDUAL ARTICLE ===
<txp:else />
=== MAIN PAGE ===
</txp:if_individual_article>
</txp:ign_if_logged_in>
</txp:if_category>
</div>
Last edited by perksy (2008-01-08 12:16:20)
Offline