ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Find items in weblog by category

June 10, 2008 7:32am

Subscribe [1]
  • #1 / Jun 10, 2008 7:32am

    nanook

    23 posts

    Hi,

    I am returing a single weblog entry via {exp:weblog:entries}. All works well.

    Now, inside the entries tag, I want to search another weblog for items in the same category as the displayed entry.

    So, say the current category is “stars”, I need to search a different, unrelated weblog for items in that category. There is no relation between these weblogs on the EE level of things.

    Inside the {exp:weblog:entries} {/exp:weblog:entries} tags, I would need to implement another pair of those tags, dynamically grabbing the current category_id and handing it over. At least, it seems to me to work like that.

    Can this be done with EE template tags or should I start writing a plugin?

    Thanks!... Nico

  • #2 / Jun 10, 2008 9:58am

    Robin Sowell

    13255 posts

    If it’s a single entry page- with the url title or entry id in the url- then you can just use another weblog tag- outside the main one- and the related_categories_mode parameter.  Will that work in this situation?  If not- I’d embed the second tag- and pass the categories as an embed variable.

  • #3 / Jun 11, 2008 11:54am

    nanook

    23 posts

    Hey Robin,

    I was able to move it outside the existing {exp:weblog:entries} tag. 😊

    Thanks for helping out… Nico

  • #4 / Jun 11, 2008 11:59am

    Robin Sowell

    13255 posts

    W00t!  Glad that did the trick- closing this one out.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases