Source situation:
Custom Content, FrontEndUsers installed:
- Home-Site:
Here I place 10 news-teasers of All categories indicated from the news module..
- Login-Site
Here users can login from a definied username which I created on the FEU-Module.
I placed following code in the extra-template of the login-site:
Code: Select all
{cms_module module='CustomContent'}
{* User eingeloggt? *}
{if $customcontent_loggedin > 0}
{content} <br />
<hr class="accessibility" />
{else}
<h2>Anmeldung zum Mitgliederbereich</h2>
{cms_module module=FrontEndUsers form='login'}
{/if}
Code: Select all
Angemeldet als: {$customcontent_loginname} / {$customcontent_loggedin}
Problem:
If I go back on the HOME SIDE I paste this code to see if I'm logged in:
Code: Select all
Angemeldet als: {$customcontent_loginname} / {$customcontent_loggedin}
Yes, the cachable flag is deactivated on both sites.
My plan is to show all categories as teasers on the homesite with the {news} tag - but if you go to the restricted sites which I coded on the news-detail-template only members (who indicated themselves on the login-site) can open it. Otherwise a error message will called.
Code for the news-detail-template will be like this...
Code: Select all
{cms_module module="FrontendUsers" form="silent"}
{cms_module module="CustomContent"}
{$customcontent_loginname} / {$customcontent_loggedin}<br>
{if $entry->category==Private Kategorie"}
{if $customcontent_loggedin}
<h2>You're logged in! </h2>
{else}
<h2>please log in!</h2>
{/if}
{else}
{if $entry->postdate}
<div id="NewsPostDetailDate">
{$entry->postdate|cms_date_format:"%A, %d. %m. %Y um %H:%M"}
</div>
{/if}
<h3 id="NewsPostDetailTitle">{$entry->title}</h3>
... etc ...