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.

How To Create Related Articles

August 01, 2010 2:30am

Subscribe [3]
  • #1 / Aug 01, 2010 2:30am

    anoopbal

    152 posts

    Ho do you make “related articles’ at the end of an article? Should I just do manually or is there a code that will select it automatically.

    Thanks!!

  • #2 / Aug 02, 2010 12:06pm

    Boyink!

    5011 posts

    The easiest way is to use EE categories.  Assign all of your articles to categories, and then use and additional channel:entries loop using the related categories mode - which will return other entries from the same category.

  • #3 / Aug 02, 2010 5:39pm

    *

    20 posts

    [Removed by Author]

  • #4 / Aug 02, 2010 6:25pm

    Boyink!

    5011 posts

    Yes - related categories mode returns all other articles from the same category.  It’s a looser relationship (speaking generically) than the more formal relationship tools mentioned which are more direct/specific.  That does come at the content management cost of actually having to select the group of “related” articles for each new article however.

    But—I always recommend the free/easy approach first..😉

  • #5 / Aug 03, 2010 8:08am

    anoopbal

    152 posts

    Thanks for the replies!

    I am still using 1.9 and didn’t quite understand the word “channels” at first. Now I get it. It is our old “weblog”

  • #6 / Aug 22, 2010 11:48am

    anoopbal

    152 posts

    I cannot get it to work. Instead of the articles in related categories, it just shows recent articles.

    {exp:weblog:entries related_categories_mode="on" limit="3" }
    
    <a href="http://{title_permalink=">{title}</a>
    
    {/exp:weblog:entries}
  • #7 / Aug 22, 2010 11:54am

    Boyink!

    5011 posts

    Specify a weblog.

  • #8 / Aug 22, 2010 1:00pm

    anoopbal

    152 posts

    I tried that.Still doesn’t work.

    Is it a url thing?

  • #9 / Aug 22, 2010 5:52pm

    Boyink!

    5011 posts

    Possibly. The following must be true:

    - The entry must be assigned to a category.
    - There must be other entries in the same category.
    - The entry url_title must be in the page’s url (a single entry page, in other words).
    - The weblog entry tag must be left in dynamic mode.
    - The weblog must be specified.

  • #10 / Oct 27, 2010 12:39am

    toddstauffer

    10 posts

    Possibly. The following must be true:
    ...

    - The weblog must be specified.

    Question—if I’m on a single-entry page (e.g. site/comments) then how do I specify the weblog for related entries? I can’t hard-code the weblog parameter because I don’t know what weblog they’re coming from to reach that single-entry template…?

    Thanks!

  • #11 / Oct 27, 2010 10:12am

    Boyink!

    5011 posts

    You can specify multiple weblogs - just specify all of them that could have related entries.

  • #12 / Oct 27, 2010 11:24am

    toddstauffer

    10 posts

    Wow. Me stupid. 😉 Thanks!

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

ExpressionEngine News!

#eecms, #events, #releases