Hi,
I'm new to Lithium and still learning about all it can do. We are using the blog feature for our customer facing Release Notes and I am wondering if it is possible to have some internal content included, that would only be visible to employees that are signed into the community?
It can be done using freemarker context object. You just need to wrap the gated things inside it.
<#if user.registered> <#-- Gated content goes here and will be visible to logged in user only --> </#if>
@VikasB - This condition will not work inside an editor.
@GlennD - You can not fully restrict the content, however, you can hide it using CSS or remove using JS. For that, your internal content must have a different class, which you can give by switching to HTML mode. SS below.
CSS
.internal-content{ display: none; } .lia-user-status-registered .internal-content{ display:block; }
Stephen
Checkout some of the stuff i've built using the platform:
Community l Ideation l Blog l Product Hubs l Check & Report l Service Status
My latest Ideas: Vanity URL Manager l @mention Roles l LSW Password Policy
Welcome to the Technology board!
Curious about our platform? Looking to connect on social technology? You've come to the right place!