DSTs for Wiki Pages and Items

thaen
thaen

There's a new (beta) feature that we just deployed. It's the ability to create DSTs for Wiki Pages and Items, just like we do for Characters.

There are no DSTs created for Wiki Pages or Items yet, but if you want to dive in and start creating them and using them, comment here and let me know, and I'll add you to the beta feature.

Obsidian Portal Developer

Comments

  • ElMuggs
    ElMuggs
    Posts: 47

    Oh that is awesome! 

    Could I be added to the Beta feature as I'd love to try and make a DnD 'Spells' DST for wiki pages.

    DM of The Domains of Dread Council Meeting (...a Comedic Misadventure though the mists of a re-imagined Ravenloft! ) - COTM Feb 2023! 

  • thaen
    thaen
    Posts: 1,031

    @ElMuggs, excellent!

    I added you to the beta, so you should now see a "DSTs on Wiki Pages and Items" checkbox in your Campaign Settings Advanced tab.

    Let me know if you have any questions or run into any issues!

    Obsidian Portal Developer

  • ElMuggs
    ElMuggs
    Posts: 47

    Great, could you point me to the 'how to make a DST' resource if it's not too much bother, as I've never done this before ? :)

    DM of The Domains of Dread Council Meeting (...a Comedic Misadventure though the mists of a re-imagined Ravenloft! ) - COTM Feb 2023! 

  • thaen
    thaen
    Posts: 1,031

    Sure!

    In the footer of the backend pages there's a link to "Dynamic Sheet Templates".

    That links to here:

    https://www.obsidianportal.com/dynamic_sheet_templates

    At the top of that is a "Read Me First" section that has a link to the tutorial, which is here:

    https://help.obsidianportal.com/article/173-creating-a-dynamic-character-sheet-template-dst

     

     

    Obsidian Portal Developer

  • nuadaria
    nuadaria
    Posts: 48

    I'll take an invite to the beta please.

  • thaen
    thaen
    Posts: 1,031

    @nuadaria, most definitely! Added!

    You should now see a "DSTs on Wiki Pages and Items" checkbox in your Campaign Settings Advanced tab.

    Let me know if you have any questions or run into any issues!

    Obsidian Portal Developer

  • nuadaria
    nuadaria
    Posts: 48

    Awesome, thank you so much!

  • nuadaria
    nuadaria
    Posts: 48

    OK, I give. I have namespaced my CSS but thus far I am unable to see any of it apply regardless of selecting tags or classes under that.

     

    HTML sample


    <div class="gazetteer_wrapper">
    <div class="gazetteer_grid-item">

    CSS sample


    .ds_gazetteerTemplate .gazetteer_wrapper {
    display: grid;
    grid-template-columns: auto max-content;
    gap: 15px;
    }

    .ds_gazetteerTemplate .gazetteer_grid-item {
    text-align: center;
    }

    I'm certain there's something very simple I am missing here. I can see the "ds_gazetteerTemplate" class being added to the erapper div but even trying to select that and manipulate it directly seems to fail.

     

    Thanks for any help.

  • thaen
    thaen
    Posts: 1,031

    @nuadaria

    You didn't miss anything. There was a bug preventing the css and js from being applied to the saved version of the page ... sorry for the hassle!

    Try it now and let me know if you have any more issues.

    Obsidian Portal Developer

  • nuadaria
    nuadaria
    Posts: 48 edited November 29

    Just like magic, it works now. Now to ummm... make this css not look like it was written by a mostly back end dev pretending to be full stack.

    Post edited by nuadaria on
  • nuadaria
    nuadaria
    Posts: 48

    @thaen Before I pull my hair out here, is there something possibly that might be preventing the usage of the CSX libraries on a wiki page? If not I've just cocked something up and I'll go back to poking.

  • nuadaria
    nuadaria
    Posts: 48

    Related. Only one of my campaigns seems to be able to see the Dynamic Sheet Template field on new wiki pages. Double checked that the others (I am also DM of those) have the "DSTs on Wiki Pages and Items" checkbox checked at /settings/advanced-settings

    Even a brand new campaign doesn't seem to work.

    I'd like to play in an environment that doesn't have a bunch of custom css floating about so I know what this thing is really going to look like. Fairly confident I have ported most of the css over but I've surely missed something.

  • thaen
    thaen
    Posts: 1,031 edited November 29
    @nuadaria

    Before I pull my hair out here, is there something possibly that might be preventing the usage of the CSX libraries on a wiki page? If not I've just cocked something up and I'll go back to poking.

    I'm not familiar with the CSX libraries, but I would open the console on the browser and see if it's quietly throwing any errors.

    I don't think there is any processing on the js, so you shouldn't be running into any issues in development. BUT, I think in the DST documentation, it says that DSTs can't use external libraries ... aside from Chainsaw's. So you shouldn't have issues developing your DST, but you might get a request from the approver to remove the external library (or roll whatever you need into your code locally). (As I understand it, this is so the content of the libraries can't be changed out after the fact and break the DST.)

    Related. Only one of my campaigns seems to be able to see the Dynamic Sheet Template field on new wiki pages. Double checked that the others (I am also DM of those) have the "DSTs on Wiki Pages and Items" checkbox checked at /settings/advanced-settings

    Even a brand new campaign doesn't seem to work.

    Try setting the Game System of the Campaign to your DST's Game System. The field only shows if there are DSTs to show. (There are some edge cases that are exceptions ... but that's the general case.)

     

    Yeah, if something isn't immediately working like you would expect, feel free to check in here before you break out the epilator. : ) I'm happy to take a look and save you some headache!
    Post edited by thaen on

    Obsidian Portal Developer

  • nuadaria
    nuadaria
    Posts: 48

    @thaen The system selection was 100% the issue, thanks for that.

     

    I should have been more clear, I was referring to the Chainsaw's work, specifically the dynamic lists bit. I'll keep poking at it though. It will be easier to rule out any of my other custom work now that I can use this DST in a fresh game.

  • nuadaria
    nuadaria
    Posts: 48

    I solved my own problem. It was most definitely me. I had forgotten to include one of the required divs for those libraries to function. Sadly there was no error, I just had to go back to one of the sheets in the repo and start comparing.

  • nuadaria
    nuadaria
    Posts: 48

    Not exactly sure where the best place to get feedback for this is but thought I'd start here (also in discord). I have taken a stab at turning one of my wiki page formats into something a little more generic. It's a sort of Gazetteer type thing based on a familiar wiki style of thing. I'm including a pic of it in a vanilla game and in one with custom styling. I left the color on for the table (this can be overridden in custom css of a site) but felt it looked a better example of what you can do with that readily visible.

     

    Please let me know what you think:

     

Sign In or Register to comment.

November 2023
Violet Hill

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