FronEndUsers/CustomContent... display questions
Posted: Fri Nov 24, 2006 12:35 am
I've successfully set up the FrontEndUsers and CustomContent modules (along with CMSMailer, of course) and I set up two pages for two different groups to view. And whoever isn't logged in/in one of these groups just sees the login form.
At least that's how it's supposed to work.
What happens now is that I do get the login form alright but then if I've logged in to one group I can even see the content of the other group (if I type in the according URL for the other group's page).
I've set it up like this:
Is it the double {content} tag? It IS showing the correct content for the correct group, though. It's just that I have access to the other group's content without logging in again.
Also in the front end user preferences I've set "Page ID/Alis to jump to after login/logout" to {$group}, yet it's not jumping to the page of the group that user belongs to but to the index page (with a '#' at the end of the URL). What have I done wrong and how do I fix it?
Any help would be greatly appreciated.
At least that's how it's supposed to work.
What happens now is that I do get the login form alright but then if I've logged in to one group I can even see the content of the other group (if I type in the according URL for the other group's page).
I've set it up like this:
Code: Select all
...[header stuff]...
</__body>
<div id="container">
<div id="header">
<h1>{sitename} – {title}</h1>
<a href="/">Home Page</a>
</div>
<div id="content">
{cms_module module=CustomContent}
<!--customContent: startif group=EPcustomers -->
{content}
<!--customContent: else -->
<p>You must be logged in to view the content of this page. If you haven't subscribed yet go to the {cms_selflink page='index' text='home page'} and click the according link at the bottom.
{cms_module module=FrontEndUsers}
<!--customContent: endif -->
<!--customContent: startif group=BAEcustomers -->
{content}
<!--customContent: endif -->
</div>
{global_content name='footer'}
<__script__ src="http://www.google-analytics.com/urchin.js" type="text/javascript"></__script>
<__script__ type="text/javascript">
_uacct = "UA-535201-2";
urchinTracker();
</__script>
<__body>
</__html>
Also in the front end user preferences I've set "Page ID/Alis to jump to after login/logout" to {$group}, yet it's not jumping to the page of the group that user belongs to but to the index page (with a '#' at the end of the URL). What have I done wrong and how do I fix it?
Any help would be greatly appreciated.