SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Apr 2004
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to code related articles automatically?

    Hi, I'd like to have in a website related articles to a specific one, like a lot of sites and online newspapers have.

    Do they do this automatically? Is it possible? How should I do it? (I'm thinking and looking for a strategy)

    Thank you a lot

  2. #2
    SitePoint Addict chestertondevelopment's Avatar
    Join Date
    Dec 2005
    Location
    Essex, UK
    Posts
    241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I reckon some do it automatically and probably some don't.

    Programming wise it's not that hard to do, it depends how proficient a developer you are. If you're using wordpress, there is a plugin available which does it for you (http://wordpress.org/extend/plugins/...-posts-plugin/) and I'm sure most other blogging platforms have something similar.

  3. #3
    SitePoint Addict
    Join Date
    Apr 2004
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you!

    It's a customized development, so I'd like to know about the logic I should use for generating automatic related articles.

    Thanks!

  4. #4
    SitePoint Addict chestertondevelopment's Avatar
    Join Date
    Dec 2005
    Location
    Essex, UK
    Posts
    241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's similar logic to a search engine really, get all the terms in the title of the post and then search against an index. Zend_Search_Lucene would probably be useful for this.

  5. #5
    SitePoint Addict
    Join Date
    Apr 2004
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Let me see If I understood well.

    For example if I insert a new article called:

    "The life of the butterfly"

    I should insert in a table all these words (maybe excluding "The", "of" and common words) and link it to the article row in the articles table?

    Thanks a lot


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •