Hi,
I'm creating an couple of asset listings using custom grouping, using the group name to create the link and the anchor
ie <a href="#%group_name%">%group_name%</a> and <div id="%group_name%">
Unfortunately if the group name contains a space then the in page link doesn't work.
I've attempted to use the keyword modifier %group_name^underscore% to create valid links and anchors but it appears that keyword modifiers aren't available for use on the %group_name% keyword.
Is there a keyword available to get the group name without spaces, either via a modifier or via another method?
Thanks Georgina.
I tested it on MSM 3.28.4 and You're right. Keyword modifiers doesn't work on %group_name%.
Quick fix:
- Probably instead Custom Grouping in Asset Listing - You can use combination of Asset Listing with Paint Layout (but it can work slow)
or
- little javascript that will replace spaces with underscores.
It would be good to report this bug on http://bugs.matrix.squiz.net/.
[quote]
I tested it on MSM 3.28.4 and You’re right. Keyword modifiers doesn’t work on %group_name%.
It would be good to report this bug on http://bugs.matrix.squiz.net/.
[/quote]
Hi uam,
Thanks for the response,
I’m using ver 3.28.3. so will look into reporting this behaviour as a bug.
Georgina.
[quote]
I'm using ver 3.28.3. so will look into reporting this behaviour as a bug.
[/quote]
Glad you're logging the bug, because I was about to - however, I'd note that this behaviour is a bit inconsistent. For example, you cannot use the php date keyword modifiers for Group Names that use metadata dates. But they do work with system dates (like asset_published, asset_created etc).
Once you've submitted the bug, can you post the bug number in this thread, and perhaps I'll provide a followup post to your bug report with the additional information?
Cheers,
Ben
[quote]
Once you've submitted the bug, can you post the bug number in this thread, and perhaps I'll provide a followup post to your bug report with the additional information?
Cheers,
Ben
[/quote]
Hi,
I've just submitted the bug, it is number 4734.
Georgina.
it's not a bug, it's just not implemented :rolleyes:
http://bugs.matrix.squiz.net/view_bug.php?bug_id=4420