Custom Navigation - not working for Items?

LordMisha
LordMisha

So I have three different filters applied to my items: gear, smallcraft, and starship. I wanted to use the new custom navigation so I would have separate menu selections for GEAR, SMALLCRAFT, and STARSHIPS.

I see the new menu option on left just fine, but the actually filtering is not working. Regardless of which you select, ALL of the items show up in the list. If you look up in the URL, it reflects the proper Filters. But it isn't reflected on the page.

https://deepspaceadventures.obsidianportal.com/

Is the actual campaign page.

The filtered links are:

https://deepspaceadventures.obsidianportal.com/items?filters=tag_gear

https://deepspaceadventures.obsidianportal.com/items?filters=tag_smallcraft

https://deepspaceadventures.obsidianportal.com/items?filters=tag_starship

My actual menu code looks correct to me. I don't see any obvious errors, but I am getting old, sigh. So what am I doing wrong? Any suggestions?

I couldn't paste the whole code, says my message has too many characters if I do that. So here is the relevant portion:


<li class='section items active-target'>
<a href='/items?filters=tag_gear&expand_filters=false'>
<span class='nav-icon icon op-icon-backpack'></span><span class='nav-text'>Gear</span>
</a>
</li>
<li class='section items active-target'>
<a href='/items?filters=tag_smallcraft&expand_filters=false'>
<span class='nav-icon icon op-icon-backpack'></span><span class='nav-text'>Smallcraft</span>
</a>
</li>
<li class='section items active-target'>
<a href='/items?filters=tag_starship&expand_filters=false'>
<span class='nav-icon icon op-icon-backpack'></span><span class='nav-text'>Starships</span>
</a>
</li>

 

Comments

  • C4RB0N
    C4RB0N
    Posts: 61

    Hi @LordMisha! I'll ask the team and we'll get back to you on this!

  • C4RB0N
    C4RB0N
    Posts: 61

    Hi @LordMisha

    I've got a response from the devs:

     

    The Items (and Characters) pages aren’t filtering even when you just visit them normally, so it’s not the Custom Navigation.

    The problem is that to filter on the Items/Characters, it uses “display: none”, but the Custom CSS is overriding that and always keeping them visible.

    To fix this, find this in your Custom CSS:


    #content .content-list-item-container {
    position:relative;
    max-width:250px;
    max-width:260px;
    display:inline;
    clear:none !important;
    }

    And then just delete “display:inline;”

    It’s not needed anyway since that’s already the display value of those elements.

  • LordMisha
    LordMisha
    Posts: 31

    That solved it, thank you very much. Actually, I am not even sure why I had that "display:inline;" in there, it didn't do anything in the code. Sigh. Well, I mean, it did screw up the filters :)

  • vadercomplex
    vadercomplex
    Posts: 267

    We're glad to hear it, please let us know if anything more is needed ☺ @LordMisha

    Obsidian Portal Support Druid | [email protected]

  • twiggyleaf
    twiggyleaf
    Posts: 2,099

    Nice work, Devs!

    smiley

    "I met a traveller from an antique land....."

    CotM May 2016: Mysteria: set in Wolfgang Baur’s MIDGARD.

    Previous CotM Aug 2012: Shimring: High Level Multiplanar Campaign

    Inner Council Member

Sign In or Register to comment.

September 2026
City of Shadows

Read the feature post on the blog
Return to Obsidian Portal

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions