Hi
Using bulletproof template and sitenave title bar, I'd like the link "Members" to like to seperate pages/entries depending if viewer is logged on or not.
I was thinking I could do this with tags ? I already have the catagories "public-content"/"private-content" defined for the seperate entries I've written. I'm just not sure how to link to each ?
Thanks
Neil
Display different page depending if logged in or not
tried using tags
Hi
I've created two identical tags which link to 2 entries with different access rights... public/members
Problem is that the members see the entries for public and members...How can I remove in this case the public entry ?
Perhaps I'm making this more complicated. I guess easiest would be to have a different entry in the sitenav of bulletproof template or put some code in there (the place where you put the url link) ?
Neil
I've created two identical tags which link to 2 entries with different access rights... public/members
Problem is that the members see the entries for public and members...How can I remove in this case the public entry ?
Perhaps I'm making this more complicated. I guess easiest would be to have a different entry in the sitenav of bulletproof template or put some code in there (the place where you put the url link) ?
Neil
Can templates help?
Perhaps templates is the way to go ?
Can I change the template depending if login in or not ? Put a
{if $is_logged_in}
{else}
{/if}
in the index.php file ? Am I barking up the wrong tree here ?
Neil
Can I change the template depending if login in or not ? Put a
{if $is_logged_in}
{else}
{/if}
in the index.php file ? Am I barking up the wrong tree here ?
Neil
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Display different page depending if logged in or not
Hi!
I'm not sure what you mean with "tags" here? Do you mean the freetag plugin? This one only gives tags, they have no code meaning. So assigning "public" or "private" as a tag doesn't really help you, because it does not influence any readability permissions.
Readbility permissions are created through the plugin "Extended properties for entries" where you can choose "private", "for other authors" or "public". But the easiest way to deal with readbility is to create different usergroups and create categories for entries where you assign permissions to each category. So if you create an entry and put it into a category that only has read permissions for certain members, only those will see this entry.
But I believe someplace you confused blog entries with the navigation links. Those two are not related. If you want to have different navigation links for members or authors, you cannot use the default bulletproof method of specifying links. You will need to edit your index.tpl template (NOT index.php file) and at the place where currently the dynamic links are shown, you will need to put manual HTML markup. And there you can use, as you already pointed out, this {if $is_logged_in} smarty check.
HTH,
Garvin
I'm not sure what you mean with "tags" here? Do you mean the freetag plugin? This one only gives tags, they have no code meaning. So assigning "public" or "private" as a tag doesn't really help you, because it does not influence any readability permissions.
Readbility permissions are created through the plugin "Extended properties for entries" where you can choose "private", "for other authors" or "public". But the easiest way to deal with readbility is to create different usergroups and create categories for entries where you assign permissions to each category. So if you create an entry and put it into a category that only has read permissions for certain members, only those will see this entry.
But I believe someplace you confused blog entries with the navigation links. Those two are not related. If you want to have different navigation links for members or authors, you cannot use the default bulletproof method of specifying links. You will need to edit your index.tpl template (NOT index.php file) and at the place where currently the dynamic links are shown, you will need to put manual HTML markup. And there you can use, as you already pointed out, this {if $is_logged_in} smarty check.
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Thanks - Yes I was confused
I've gotten pretty confused about how it all works and fits together so sorry for so many questions...
Since I posted I have modified index.tpl of the bulletproof template... adding a second pair ur + title for each navlink button. So I can configure different links depending if user loged in or not.
Thanks for confirming that I've gone the right way.
Neil
p.s Slowly its making sense in my head, thanks for your patcience.
Since I posted I have modified index.tpl of the bulletproof template... adding a second pair ur + title for each navlink button. So I can configure different links depending if user loged in or not.
Thanks for confirming that I've gone the right way.
Neil
p.s Slowly its making sense in my head, thanks for your patcience.