Understanding how to code this isn't really the problem. I have a current campaign with both D&D and Pathfinder characters in it. So I used the Custom Navigation to create separate links to display filtered for either.
<li class='characters active-target'>
<a href='/characters?filters=tag_d_d'>
<span class='nav-icon icon op-icon-characters'></span><span class='nav-text'> D&D Characters</span>
</a>
</li>
<li class='characters active-target'>
<a href='/characters?filters=tag_pathfinder'>
<span class='nav-icon icon op-icon-characters'></span><span class='nav-text'> Pathfinder Characters</span>
</a>
</li>
A snippet of the code there for context.
So my annoyance, when you click the link, you get to the proper page but the Filters tab is expanded by default. It is confusing my players. Is there some css or something that can be added to the Custom Navigation code directly or style sheet that ensures the Filters tab is closed by default when you click on either character link?
https://thelongforgotten.obsidianportal.com/
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Hey @LordMIsha, I can see why that would be annoying. This isn't really my area of expertise, but I've reached out to the team to see if they have any suggestions/thoughts!
Obsidian Portal Dungeon Manager || [email protected]
@LordMisha,
We added a query string parameter to enable this.
Add "&expand_filters=false" to the url to make the Filters stay closed when the url has auto-filters.
So ...
<a href='/characters?filters=tag_d_d&expand_filters=false'>
and
<a href='/characters?filters=tag_pathfinder&expand_filters=false'>
Let us know if you run into any issues.
Obsidian Portal Developer
Just to let any future designers who are searching the forums, this is the solution!
Thanks. :)