I am using the Content by Label macro and need to remove some text from the link that displays. For instance, there is page named "BMX - How to Replace Cranks" that has a label of "how_to" that is referenced in the macro. When the link renders, I would like for it to read "How to Replace Cranks" rather than "BMX - How to Replace Cranks".
How do I remove "BMX - " from the link text without having to modify the original page title?
Thanks!
If this is for Confluence Server one possible (hacky) way of doing this would be to use JavaScript in the custom Header section.
If you use jQuery you can do a quick search and replace on the Content By Label items. Something like this:
$('.content-by-label li').each(function(k,v) {
var l = $(v).find($('div.details a'))
var t = l.text().replace('BMX - ', '');
l.text(t);
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.