Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracting the number? #9

Open
rosslaird opened this issue Jan 21, 2011 · 1 comment
Open

Extracting the number? #9

rosslaird opened this issue Jan 21, 2011 · 1 comment

Comments

@rosslaird
Copy link

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.

@ehaselwanter
Copy link
Contributor

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants