Jahia Template Forum > Jahia 6:Related...

0 (0 Good)
0 (0 Bad)

Jahia 6:Related content display based on keywords and catego

by  peterreyan »  2011/06/07 19:59

Hi All

I am currently working on Related content which display content related to any particular page based on Existing Categories and key words.
My approach
Suppose we have 10 story pages , out of which 5 are of 1 category , 2 from other category and like wise. So in that cases ,In the main page we will see related content based on categories and key words .

Way of implementation :

First we need to get category type and key words :

[b:2s27ar1m]API :[/b:2s27ar1m]

getContentObjectCategories ::Retrieves the category keys of categories affected to a given content object.



lt;template:getContentObjectCategories var=
  • Jahia 6:Related content display based on keywords and catego
    2011/06/07 19:59

    peterreyan Hi All<br/><br/>I am currently working on Related content which display content related to any particular page based on Existing Categories and key words.<br/> My approach<br/>Suppose we have 10 story pages , out of which 5 are of 1 category , 2 from other category and like wise. So in that cases ,In the main page we will see related content based on categories and key words .<br/><br/>Way of implementation :<br/><br/>First we need to get category type and key words :<br/> <br/>[b:2s27ar1m]API :[/b:2s27ar1m]<br/><br/>getContentObjectCategories ::Retrieves the category keys of categories affected to a given content object.<br/><br/> <br/><br/>lt;template:getContentObjectCategories var=

  • Number of messages  5
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Jahia 6:Related content display based on keywords and catego

    by  pap@commaro.com »  2011/06/07 19:59

    Hello Peter,

    alternatively you could use:

    [code:1p4pb8u7]lt;template

    Benjamin Papez (pap@commaro.com)

    Number of messages  220
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page