Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-08 03:19:45

dazonic
Member
Registered: 2006-10-24
Posts: 43

ign_password_protect hide section in section list

Hi,

I want to have a Members section in my section list, but only visible when a user is logged in.

Is there a super easy way to do this? I was thinking….

<ul>
<txp:section_list class=”“ active_class=“here” default_title=“Home” include_default=“1” break=“li” sections=“clips, contact, about”/>

<txp:ign_if_logged_in>
<txp:section_list class=”“ active_class=“here” include_default=“0” break=“li” sections=“members”/>
</txp:ign_if_logged_in>

</ul>

…… but i was wondering if i could do it including wraptag="ul", and having sections="clips, contact, about, members". Keeping it all on the one line.

When a user is logged in, I also want it to redirect straight to the members section. Doable?

Thanks guys

Offline

Board footer

Powered by FluxBB