Cleaning landing page
Posted
#306
(In Topic #71)

Standard member

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.
Posted

Site staff

Posted

Standard member

Have to dig deeper to get it back.
Edit:
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
Posted

Site director

{+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
- 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.
Posted

Standard member

Chris Graham said
You need to put some Tempcode around it:
{+START,IF,{$NOT,{$IS_GUEST}}}...{+END}
From “Post #309”, 29th March 2016, 11:40 pm
I had to try immediately, it does the trick

Thanks Chris.
Posted

Site staff

1 guest and 0 members have just viewed this.