using the filters for NPC sorting in the nav panel

Frak_Lou_Elmo
Frak_Lou_Elmo

https://inovertheirheads.obsidianportal.com/characters?filters=tag_Advisor

can anyone help out on why this happens? Every time I click on one of the filters I made in the navigation, (officers, Advisors, comrades) the navigation selects the first one "Players" even though the correct page is showing "Advisors".

Is this something I have done wrong or is it intrinsic to how this works? 



image



twitter: @Frak_Lou_Elmo

Comments

  • thaen
    thaen
    Posts: 1,059

    Looks like I need to make a tweak to the code to handle that scenario of differentiating between Menu Items by just the query string.

    Obsidian Portal Developer

  • thaen
    thaen
    Posts: 1,059

    Okay, try it now.  Should be working.

    Obsidian Portal Developer

  • Frak_Lou_Elmo
    Frak_Lou_Elmo
    Posts: 174

    It works! Thanx! That was fast



    twitter: @Frak_Lou_Elmo

  • Keryth987
    Keryth987
    Posts: 1,045

    How did you DO that. I want code..PLEASE!!!

  • GamingMegaverse
    GamingMegaverse
    Posts: 2,998

    That is really cool!  Please share the code!!

    Just trying to help out.

  • thaen
    thaen
    Posts: 1,059

    Huzzah!!

    Obsidian Portal Developer

  • Frak_Lou_Elmo
    Frak_Lou_Elmo
    Posts: 174 edited May 2022
    -
    Post edited by Frak_Lou_Elmo on



    twitter: @Frak_Lou_Elmo

  • Frak_Lou_Elmo
    Frak_Lou_Elmo
    Posts: 174 edited May 2022

    <div style='display:none;'>======================================== NAVIGATION: CAMPAIGN SIDE ========================================</div>

    <nav id='campaign-nav' role='navigation' class='campaign-public-navigation'>
    <ul class='no-bullet nav-links'>
    <li class='dashboard active-target campaign-member-only'>
    <a href='/dashboard'>
    <span class='nav-icon icon op-icon-dash'></span><span class='nav-text'>  Dashboard</span>
    </a>
    </li>
    <li class='secrets active-target campaign-member-only'>
    <a href='/secrets'>
    <span class='nav-icon icon icon-openbook-02'></span><span class='nav-text'>  Top Secret Files</span>
    </a>
    </li>
    <li class='front-page active-target'>
    <a href='/'>
    <span class='nav-icon icon icon-home'></span><span class='nav-text'>  Landing Zone</span>
    </a>
    </li>
    <li class='forum active-target campaign-member-only'>
    <a href='/forum'>
    <span class='nav-icon icon op-icon-forum'></span><span class='nav-text'>  Internal Comms</span>
    </a>
    </li>
    <li class='calendar active-target campaign-member-only'>
    <a href='/calendar'>
    <span class='nav-icon icon icon-calendar-empty'></span><span class='nav-text'>  Calendar</span>
    </a>
    </li>
    <li class='adventure-log active-target'>
    <a href='/adventure-log'>
    <span class='nav-icon icon op-icon-page'></span><span class='nav-text'>  Mission Logs</span>
    </a>
    </li>
    <li class='dice active-target'>
    <a href='http://jaydoublea-001-site1.dtempurl.com/'>
    <span class='nav-icon icon op-icon-dices'></span><span class='nav-text'>  Dice Accessorum</span>
    </a>
    </li>
    <li class='owlbear active-target'>
    <a href='https://www.owlbear.rodeo/game/-KtA4GQu7'>
    <span class='nav-icon icon op-icon-map-search'></span><span class='nav-text'>  Tactical Battle Map</span>
    </a>
    </li>
    <li class='wiki active-target'>
    <a href='/wikis/main-page'>
    <span class='nav-icon icon op-icon-book-wiki'></span><span class='nav-text'>  Wiki</span>
    </a>
    </li>
    <li class='characters active-target'>
    <a href='/characters?filters=pc'>
    <span class='nav-icon icon op-icon-characters'></span><span class='nav-text'>  Players</span>
    </a>
    </li>
    <li class='characters active-target'>
    <a href='/characters?filters=tag_Officer'>
    <span class='nav-icon icon op-icon-gm'></span><span class='nav-text'>  Officers</span>
    </a>
    </li>
    <li class='characters active-target'>
    <a href='/characters?filters=tag_Advisor'>
    <span class='nav-icon icon op-icon-stats'></span><span class='nav-text'>  Advisors</span>
    </a>
    </li>
    <li class='characters active-target'>
    <a href='/characters?filters=tag_Comrade'>
    <span class='nav-icon icon op-icon-user-link'></span><span class='nav-text'>  Comrades</span>
    </a>
    </li>
    <li class='radio active-target'>
    <a href='/wikis/audio-morale-radio'>
    <span class='nav-icon icon op-icon-js'></span><span class='nav-text'>  A.M. Radio</span>
    </a>
    </li>
    <li class='maps active-target'>
    <a href='/maps'>
    <span class='nav-icon icon op-icon-map'></span><span class='nav-text'>  Strategic Cartography</span>
    </a>
    </li>
    <li class='settings active-target game-master-only'>
    <a href='/settings'>
    <span class='nav-icon icon op-icon-gears'></span><span class='nav-text'>  Settings</span>
    </a>
    </li>
    </ul>
    </nav>

     

    in the custom navigation part of settings, just assigned an icon to go to the html of a character page which has tag filters preselected, like this one: https://inovertheirheads.obsidianportal.com/characters?filters=tag_Junior,tag_Officer

    just gotta make sure your characters all have good tags. I learned to get good combos its better to have a tag "officer" and a tag "junior" rather then a tag "junior officer" so that I could have a page with all officers

    the only downside is that the character quick search box remains open when you get there, potentially taking up most of the screen and requiring you to scroll a bit if you have lots and lots of tags.
    Post edited by Frak_Lou_Elmo on



    twitter: @Frak_Lou_Elmo

Sign In or Register to comment.

March 2024
Wrath of the Highborn

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