eXaminator / kanka-foundry

FoundryVTT module to import information from kanka.io
MIT License
22 stars 8 forks source link

Show note links. #131

Open SesuUisu opened 2 months ago

SesuUisu commented 2 months ago

You can add links to the "note" field with <code>[organisation:5115075]</code> in Kanka. That will be added to Foundry as [organisation:5115075] instead of the internal Foundry Journal link like the rest.

eXaminator commented 2 months ago

This does work for me. Does Kanka correctly transform the link when you save it in Kanka? Because this module does not parse the syntax you mentioned above but the generated HTML code that Kanka produces based on this.

SesuUisu commented 2 months ago

image From left to right: Foundry, parsed note, entry field for attributes with code-tags

Other parsed links will work, but not those fields that can only parse when -tags are needed (e.g. attribute fields). It seems that Kanka-Foundry module doesn't receive the parsed text but only the data within the tags.

eXaminator commented 2 months ago

I see, I misunderstood and didn't recognized that you meant the personality traits etc. I contacted the Kanka author and will see if he can add the parsed content for those traits so that I don't have to build some special cases for this, because I wouldn't be able to resolve those links unless the linked to entity was also synced.

ilestis commented 3 weeks ago

Traits now contain an entry_parsed property ;-) https://app.kanka.io/api-docs/1.0/characters