repeater row label doesn’t allow handlebars helpers
-
Using repeater control for a change history block.
I thought to add an excerpt as row label for collapsed rows using handlebars helpersdate_i18n
&truncate
Row: {{#}}, date: {{date_i18n "d-m-Y" change-date}}, text: {{truncate change-text 10 "false"}}
But only row number gets rendered when using the block. The handlebars helpers construction is shown as if it is text, resulting in:
Row: 1, date: {{date_i18n "d-m-Y" change-date}}, text: {{truncate change-text 10 "false"}}
If I leave the helpers out of the row label the full date and full text is shown and then it does not have a use as label.
Row: 1, date: 2023-09-01T09:43:00, text: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
How to achieve this, or can you add handlebars helpers in row label in a future version?
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘repeater row label doesn’t allow handlebars helpers’ is closed to new replies.