Forum Discussion

dementad's avatar
dementad
Genius
12 years ago

Making collapsed the default view on an Ideas Exchange

I would like make the collapsed view the default view on my Ideas Exchange. I looked at the differences in the properties for expanded/collapsed:

 

div#messageview.lia-message-view->firstElementChild

     div.lia-message-view-style-collapsed

     div.lia-message-view-style-collapsed

 

But I can't figure out where I might modify my custom CSS to make this work. Anyone already done this?

  • YuriK's avatar
    YuriK
    12 years ago

    Hey dementad,

     

    The collapsed/expanded view is currently controlled by a setting that is not exposed through the UI. The good news is this can easily be set without having to write/run any custom javascript or css.

     

    You have two options on how to do this:

     

    1) Open a ticket with support for them to set the default setting to collapsed

    2) Make an API call as an admin to set the setting

     

    .../settings/name/layout.message_view/set?value=collapsed

     

    Note, for both options you will want to decide if you want this setting set on the community level or at specific board/category/node level.

     

    In the restapi above you can replace ... with something like /boards/id/[board-id] to scope the call to a board.

     

    I will also see if we can get this setting exposed through admin so that it will be simpler to manage.

     

    Hope this helps,

     

    Yuri

4 Replies

  • dementad's avatar
    dementad
    Genius
    12 years ago

    After playing some more, I don't think I can do it with CSS alone. I'll start playing with Javascript and let you know if I discover the magic bullet. I'm on vacation until next Monday though :)

  • YuriK's avatar
    YuriK
    Khoros Expert
    12 years ago

    Hey dementad,

     

    The collapsed/expanded view is currently controlled by a setting that is not exposed through the UI. The good news is this can easily be set without having to write/run any custom javascript or css.

     

    You have two options on how to do this:

     

    1) Open a ticket with support for them to set the default setting to collapsed

    2) Make an API call as an admin to set the setting

     

    .../settings/name/layout.message_view/set?value=collapsed

     

    Note, for both options you will want to decide if you want this setting set on the community level or at specific board/category/node level.

     

    In the restapi above you can replace ... with something like /boards/id/[board-id] to scope the call to a board.

     

    I will also see if we can get this setting exposed through admin so that it will be simpler to manage.

     

    Hope this helps,

     

    Yuri

  • dementad's avatar
    dementad
    Genius
    12 years ago

    YuriK Thanks! I added a custom component to the footer to change the view to collapse and it works great!