The tags on an episode should link to the tags page #152
Labels
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HPR/hpr_generator#152
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
should be
I have a moderately usable solution.
I wrote a little addition to the
display_tags
macro inshared-episode-summary.tpl.html
which cleans and splits the databasetags
field (with a regex) then runs a loop on the result, generating links. It works in my tests but this database field really needs to be parsed with a CSV-aware parser since there's some weird and wacky stuff in there. Plus my basic "parser" would not manage embedded commas, and I know there are some in there!I'd prefer to create a more robust solution.
There's a fair bit to do still:
site-generator
, which is called when creating an episode page, or list of episode summaries. A Perl function callable in TT² might be more efficient than a TT² macro.The "more robust" solution was added in the last few days. It consists of a TT²
vmethod
calledcsv_parse
which uses the moduleText::CSV_XS
to take the CSV tags from the database, split them, and use the resulting list to generate a series of links.This is not the end of the story however, we need a better anchor id generator, as noted above.
This has been implemented and merged into main