I'm looking at radius_tags.rb

tag "all_tags:each" do |tag|
    order = tag.attr['order'] || 'name'
    limit = tag.attr['limit'] || '5'
    result = []
    case order
    when 'name'
      all_tags = MetaTag.find(:all, :limit => limit)
    else
      all_tags = MetaTag.cloud(:limit => limit)
    end
    all_tags.each do |t|
      tag.locals.meta_tag = t
      result << tag.expand
    end
    result
  end


And for my use it would be better if it had a conditional statement eliminating any tags not used in any of the pages. Does anyone have quick idea how to get at that?

Steven





On Feb 9, 2009, at 8:53 PM, Steven Southard wrote:

<r:all_tags:each> seems to list tags even if they're not currently being used. Is there any way to list only tags that are being used? Or is there any way to manage tag or at least remove unused tags?

//Steven
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to