Thread
:
Removing hierarchy levels
View Single Post
12-21-2020, 05:49 AM
#
3
chaley
Grand Sorcerer
Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
If I understand you correctly you want to remove the second - last part of hierarchical items in a field. This template does that.
Code:
{#genre:'list_re($, ',', '^(.*?)($|\..*$)', '\1')'}
chaley
View Public Profile
Visit chaley's homepage!
Find More Posts by chaley
Track Posts by chaley via RSS