List tags for multiple blogs

Hi all,

let’s assume I am running “blog1” and “blog2”, and I would like to list tags for both blogs:

- page_articles.each_with_index do |article, i|
    = link_to article.title, article

works (using slim), but if blog1 and blog2 have tags in common, only the results for blog2 are shown.

This does not seem possible with tagging:

- blog('blog1').articles.each_with_index do |article, i|
    = link_to article.title, article

- blog('blog2').articles.each_with_index do |article, i|
    = link_to article.title, article

Has anybody an idea how to solve my problem (MM4)?

Thank you very much!

Hi!

I did not know that tags is available. Here my clumny solution.

ul
  - blog('blog1').tags.each do |tag, articles|
    - if tag == "#{tagname}"
      - articles.each do |article|
        li
          = link_to article.title, article
  - blog('blog2').tags.each do |tag, articles|
    - if tag == "#{tagname}"
      - articles.each do |article|
        li
          = link_to article.title, article