OK. I am trying to understand this new feature which I think will be useful in my Mass Effect game. Unfortunately, I don't quite get it. I want to have 3 categories (so far). Iwo Jima Crew, Athame Crew, and Dead characters. Then I want the rest to be NPCs where I don't want the other categories to repeat. But it does repeat. Here is my code.
OK, so how do I make a list NOT show PC's that share the same tag as an NPC in the list? I want to keep my PCs to their PC list only, regardless of tags, and am in the p[rocess of sorting NPC's by tag but now I have a PC showing up wiht the other PCs as well as with NPC's that share the same Tag
You could add the ".npc" class to the filters. So, for example, you could have:
.npc.tag-the-agency
That says it has to have both the "npc" and the "tag-the-agency" classes to show up in that section. (Note that there is no space between ".npc" and ".tag-the-agency". If you add a space, then that means an HTML element that has the "tag-the-agency" class that is also a child of an HTML element that has the "npc" class.)
I have a lot of fun in the "Custom Characters Layout" grouping by tags, PC/NPC.
Is it possible to do that on the "Custom Items Layout"? Also is it possible to group by public and GM Only items? (... and ignore the "OWNED BY" if its the GM?)
What was weird was that I was not seeing the tags in the class attribute on my items page but was in the characters page. I'm on my phone at the moment, so I'll paste some examples when I get home. Maybe I don't have setting set or something. Probably PEBKAC. :-)
The first one was PEBKAC :-)
But these I am interested in #2 - Also is it possible to group by public and GM Only items? (beyond creating a "GM" tag?)
#3 - How to ignore the "OWNED BY" if its the GM?- ...by remembering to _unset_ the Item Owner when the GM creates an item :-). Actually I think I want to be able to select based on the current user. So my players see categorized the items _they_ own. Not sure how to do that.
Notice the "data-filters". One has ".gm-only", and the other is ":not(.gm-only)".
How to ignore the "OWNED BY" if its the GM?- ...by remembering to _unset_ the Item Owner when the GM creates an item :-). Actually I think I want to be able to select based on the current user. So my players see categorized the items _they_ own. Not sure how to do that.
I'm sure we can make what you want to have happen work, but I'm not fully following. Can you give an example?
Comments
OK. I am trying to understand this new feature which I think will be useful in my Mass Effect game. Unfortunately, I don't quite get it. I want to have 3 categories (so far). Iwo Jima Crew, Athame Crew, and Dead characters. Then I want the rest to be NPCs where I don't want the other categories to repeat. But it does repeat. Here is my code.
November 2012 CotM: Dresden Files RPG: The Emerald City
June 2016 CotM: Star Wars: Rise of the Infinite Empire
JUNE 2020 CotM & 2020 CotY: Mass Effect Accelerated
FEBRUARY 2022 CotM & 2022 CotY: Dresden Files Accelerated: Emerald City-Requiem
Current Campaigns: Traveller Osmium Buccaneers: Pirates of Drinax, Cyberpunk 2077 Accelerated
I haven't tested this, but I think you want:
".npc:not(.tag-iwo-jima):not(.tag-athame):not(.tag-dead)"
Obsidian Portal Developer
Oh. PERFECT! Thanks, Thaen. That works.
November 2012 CotM: Dresden Files RPG: The Emerald City
June 2016 CotM: Star Wars: Rise of the Infinite Empire
JUNE 2020 CotM & 2020 CotY: Mass Effect Accelerated
FEBRUARY 2022 CotM & 2022 CotY: Dresden Files Accelerated: Emerald City-Requiem
Current Campaigns: Traveller Osmium Buccaneers: Pirates of Drinax, Cyberpunk 2077 Accelerated
Huzzah!!
Obsidian Portal Developer
I've found the tags can be streamlined down into a more simplified format. Rather than:
<div class="content-list" data-filter="tag-npc:not(.tag-iwo-jima), :not(tag-athame), :not(tag-dead)">
You should instead be able to use:
<div class="content-list" data-filter="tag-npc:not(.tag-iwo-jima, .tag-athame, .tag-dead)">
It doesn't seem to care how many tags you use. One of mine looks like this, lol:
<div class="content-list" data-filter=".npc:not(.tag-aranthor, .tag-deepforge, .tag-haven-npc, .tag-ikothas, .tag-notania, .tag-tenebria, .tag-urgos, .tag-hairen-npc, .tag-hairen-noble, .tag-hairen-archmage, .tag-hairen-songbird)">
@LucasValenti, thanks for pointing that out! I had missed that nuance of the ":not" selector. Makes the selectors much more concise.
Obsidian Portal Developer
"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
OK, so how do I make a list NOT show PC's that share the same tag as an NPC in the list? I want to keep my PCs to their PC list only, regardless of tags, and am in the p[rocess of sorting NPC's by tag but now I have a PC showing up wiht the other PCs as well as with NPC's that share the same Tag
@Keryth987,
You could add the ".npc" class to the filters. So, for example, you could have:
.npc.tag-the-agency
That says it has to have both the "npc" and the "tag-the-agency" classes to show up in that section. (Note that there is no space between ".npc" and ".tag-the-agency". If you add a space, then that means an HTML element that has the "tag-the-agency" class that is also a child of an HTML element that has the "npc" class.)
Obsidian Portal Developer
Thanks
<apologies if this is the wrong place to ask...>
I have a lot of fun in the "Custom Characters Layout" grouping by tags, PC/NPC.
Is it possible to do that on the "Custom Items Layout"? Also is it possible to group by public and GM Only items? (... and ignore the "OWNED BY" if its the GM?)
Hey @dragondreams, great question! I've reached out to someone a bit more knowledgeable to see if we can get you some help!
Obsidian Portal Dungeon Manager || [email protected]
What was weird was that I was not seeing the tags in the class attribute on my items page but was in the characters page. I'm on my phone at the moment, so I'll paste some examples when I get home. Maybe I don't have setting set or something. Probably PEBKAC. :-)
The first one was PEBKAC :-)But these I am interested in
#2 - Also is it possible to group by public and GM Only items? (beyond creating a "GM" tag?)
#3 - How to ignore the "OWNED BY" if its the GM?- ...by remembering to _unset_ the Item Owner when the GM creates an item :-). Actually I think I want to be able to select based on the current user. So my players see categorized the items _they_ own. Not sure how to do that.
@dragondreams
What was weird was that I was not seeing the tags in the class attribute on my items page but was in the characters page.
That does sound odd. There's no special setting for the tags to show up in the HTML.
The one Item I saw in your Campaign doesn't have any tags on it. Only a Category.
Also is it possible to group by public and GM Only items? (beyond creating a "GM" tag?)
Definitely!
You would do something like:
Notice the "data-filters". One has ".gm-only", and the other is ":not(.gm-only)".
How to ignore the "OWNED BY" if its the GM?- ...by remembering to _unset_ the Item Owner when the GM creates an item :-). Actually I think I want to be able to select based on the current user. So my players see categorized the items _they_ own. Not sure how to do that.
I'm sure we can make what you want to have happen work, but I'm not fully following. Can you give an example?
Obsidian Portal Developer
Thanks!
I think I got : So my players see categorized the items _they_ own.
By doing this:
data-filter=":has(.content-list-item[data-author]:not(.gm-only))"
ok, technically I would also unset owner for anything that was public that I created.Thanks again!
@dragondreams
Awesome!
Feel free to ask if there are any other tweaks you need.
Obsidian Portal Developer
Thanks! Will do!
While on the topic of character sheets in OP, how do I remove the titles such as "Description" and "Bio"? See the image for what I mean.
https://db4sgowjqfwig.cloudfront.net/campaigns/353736/assets/1520904/Screenshot_2025-09-22_123815.png?1758508739
This ought to do the trick:
#character-details .description h6 {display: none;}
#character-details .bio h6 {display: none;}
GM of Stream of Kairos - 2025 Campaign of the Year
GM of Rise of the Durnskald: Wrath of the Fallen Goddess - February 2016 CotM
GM of Core: The Ashes of Alcarna - April 2020 CotM
Need CSS Help? It may be covered here: Abersade's CSS Hub