View Single Post
Old 08-22-2023, 06:23 AM   #1
Snomad
Member
Snomad began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Oct 2021
Device: Onyx Book
Creating a hierarchy from tags

Hi all,

I'm downloading reasonably consistent/uniform tags from GoodReads using a plug-in, and I was wondering if there is an easy(ish) way to use the custom column template to sort them into a hierarchy?

For example, if a book has the tags, 'Fiction, Fantasy, Adventure, Fairytale, Pirate, Young Adult,' then the code would join them in a predefined way, such as 'Fiction.Fantasy.Fairytale, Fiction.Adventure.Pirate' so they would then be displayed as:

-Fiction
-Adventure
-Pirate
-Fantasy
-Fairytale

If anyone knows how to write this with these examples and briefly explain how to add further hierarchies, I'd be extremely grateful
Snomad is offline   Reply With Quote