Forum Discussion

sunny_mody's avatar
sunny_mody
Advisor
11 years ago

Which Format for displaying posts is enabled?

Hi,

 

Is there a way to get which setting is enabled by user to display post

  • Linear format
  • List by Topics

 

I would like to know some context object using which I can get which setting is enabled in users

My Setting -> Preferences -> Display page

 

Thanks,

Sunny


setting.PNG
  • Thanks for the reply jchen

    Somehow I managed to find the way to get the setting using Lithium custom objects

    ${settings.name.get("layout.view")}

    This would give you whether your selected layout is "threaded" or "linear"
  • Hi sunny_mody , I'm not sure if I understand your question accurately. Could be the fact that it's Friday morning, could be the fact that I;ve only had one cup of coffee :smileyvery-happy:

     

    Are you asking if you can set the default view for your community? If so, you can go into Community Admin --> Discussion Styles --> Posts & Topics --> Topics Display and select format for displaying posts. 

     

    On the user level, they should be able to change their view in the options drop down on the board level, as well as within their personal settings. 

     

    Hope that answers your question!

    • sunny_mody's avatar
      sunny_mody
      Advisor
      Thanks for the reply jchen

      Somehow I managed to find the way to get the setting using Lithium custom objects

      ${settings.name.get("layout.view")}

      This would give you whether your selected layout is "threaded" or "linear"