Cleaning landing page

Post

Posted
Rating:
#370 (In Topic #128)
What is the proper way to remove "Users online" block from the start page in Welcome zone?

I want to make the start page so that no internal site contents are shown unless the visitor logs in.

Reading through the tutorials have not revealed this secret, maybe it is there somewhere…
And I would preferably do it so that it doesn't mess with  the future updates.



 

Post

Posted
Rating:
#371
You can edit the side panel through the zone editor, (there is usually a link wherever a side panel is visible) or you can access the actual side panel page in the list of Comcode pages. Once you have it open for editing, it will be clear where the Users online block code is. You can remove that code or you can strip all the code out which will effectively kill that side panel.

Post

Posted
Rating:
#372
Yep, I got rid of "Users online" in start page, but unfortunately from all other pages too.
Have to dig deeper to get it back.

Edit:
Does the start page /landing page belong to any zones really?

 I got the "Users Online" block back where it was. Good practice, had to try a few times before success.

But it didn't solve the original problem, when the visitor logs in, the navigation menus change  as they should. But I can't hide the block before login and show it after, same applies to page main content.

 

Last edit: by Finncat

Post

Posted
Rating:
#373
You need to put some Tempcode around it:
{+START,IF,{$NOT,{$IS_GUEST}}}...{+END}

Post

Posted
Rating:
#374

Chris Graham said

You need to put some Tempcode around it:
{+START,IF,{$NOT,{$IS_GUEST}}}...{+END}

I had to try immediately, it does the trick   :thumbs:

Thanks Chris.

Post

Posted
Rating:
#375
I missed the bit about hiding it for guests, sorry.
0 guests and 0 members have recently viewed this.