cns_webmaster VIP
Total posts: 21
25 Авг 2014 16:34

I think this is a simple question, but I can't seem to find a way to have the Advanced Filters menu open by default. I would like for one section of Cobalt to have the Advanced options automatically open but can't find a way to do this in the 'Sections' section.

Here is the page in question. http://cns.utexas.edu/fri/research-streams

Cobalt v8.360

Thanks!

Последние изменения: 29 Авг 2014


pepperstreet VIP
Total posts: 3,837
25 Авг 2014 17:46

lebo.adam for one section of Cobalt to have the Advanced options automatically open

See code in default markup template. Around line #468.

<div class="fade collapse separator-box" id="filter-collapse">

Just add the class name in

<div class="fade collapse in separator-box" id="filter-collapse">

This will have an effect on ALL section pages where this markup template is applied.

To restrict this to only 1 specific section,

  • you may copy and assign your modified template... (maybe overkill)
  • or you may add a condition: In template check for your current location and get the sectionID. Should be possible by URL (jInput) or in application params (jApplication). If you are on your specific section... then insert the class in dynamically.

Reference and related link:

Bootstrap v2 - collapse
collapse can be triggered by data-attributes or javascript.


Sergey
Total posts: 13,748
25 Авг 2014 23:06

pepperstreet Just add the class name in

Actualy replace fade with in.


pepperstreet VIP
Total posts: 3,837
25 Авг 2014 23:36

Sergey Actualy replace fade with in.

Isn't it just for the animation style? I mean, it might still be desirable for the closing effect.

Certainly, you may remove fade for permanent and static display.


cns_webmaster VIP
Total posts: 21
29 Авг 2014 17:21

Thanks for the replies, this makes sense.

Работает на Cobalt