radiant-tags-extension
radiant-tags-extension copied to clipboard
Extracting the number?
I am new to Radiant, and not a (real) programmer, but I am persistent and willing to try things. Here's what I'm trying to do with this extension: extract the number from the output, style it with css as an em element, remove the brackets, and move the number to before the tag name in the output. So the output, which currently looks like this:
<a href="/search/by-tag?tag=tag_name" class="tag">tag_name (1)</a>
would look like this:
<a href="/search/by-tag?tag=tag_name"><em>1</em> tag_name</a>
I can see a couple of places (like _tag_field.html.haml) where it looks like the output is defined, but I don't know enough Ruby to feel confident changing that stuff.
Suggestions are most welcome.
i send a pull request for this feature.
https://github.com/iteh/radiant-tags-extension
<ul>
<r:all_tags:each limit="1000" by="popularity" order="desc">
<li class="size1"><a href="<r:url/>"><r:name/>(<r:popularity/>)</a>,</li>
</r:all_tags:each>
</ul>