Posted: Thu Sep 01, 2005 12:07 am Post subject: How to make a component invisible after reader login?
Hi,
I'd like to customize a component which shows a link to one of my articles explaining why the reader has to create an reader account and the benifits of logging in.
But I hope this component to show only before my readers login, and after that it should be invisible...just like the login form component.
Is it possible to customize a such component?
Posted: Thu Sep 01, 2005 12:30 am Post subject: Re: How to make a component invisible after reader login?
Yes, it is. Just wrap your content around an unless statement like this:
Code:
{{unless authenticated}}
This will only be visible to you if you have not logged in!
{{/unless}}
and it will only be shown to users who have not logged in to your blog. Or you can add an else statement like this:
Code:
{{unless authenticated}}
This will only be visible to you if you have not logged in!
{{else}}
This is the secret text for users who have logged in!
{{/unless}}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum