Public
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Advisor

Using blogs for external and internal release notes?

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? 

3 Replies 3
Boss

@GlennD

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>

Give kudos if you find my posts helpful or mark solution if it answers your query

 

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

 

hidden-content.JPG                                                  

 

 CSS

.internal-content{  
   display: none;
 }

.lia-user-status-registered .internal-content{
   display:block;
}

 

 

Give kudos if you find my posts helpful or mark solution if it answers your query.
Tariq

kudos from me, I'll be using this 🙂

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!

Are you a Khoros customer? For direct assistance from our Support team, please visit the Support Forum.