Cleaning landing page

Post

Posted
Rating:
#306 (In Topic #71)
Avatar
Standard member
Finncat is in the usergroup ‘Fan in action’
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.



 
Online now: No Back to the top

Post

Posted
Rating:
#307
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
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.
Online now: No Back to the top

Post

Posted
Rating:
#308
Avatar
Standard member
Finncat is in the usergroup ‘Fan in action’
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

Online now: No Back to the top

Post

Posted
Rating:
#309
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
You need to put some Tempcode around it:
{+START,IF,{$NOT,{$IS_GUEST}}}...{+END}


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#310
Avatar
Standard member
Finncat is in the usergroup ‘Fan in action’

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.
Online now: No Back to the top

Post

Posted
Rating:
#311
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
I missed the bit about hiding it for guests, sorry.
Online now: No Back to the top
1 guest and 0 members have just viewed this.
Back to Top