Author Topic: Display Category Description of Parent Category  (Read 945 times)

mgaretz

  • Newbie
  • *
  • Posts: 17
    • View Profile
Display Category Description of Parent Category
« on: June 09, 2011, 08:57:08 PM »
If I have a parent category and then child categories below it, the child categories show the category title and description, but there is no title or description shown for the parent.  I thought there was a configuration item for this but I can't find it, so I must be imagining it.  I have looked at the template code and don't see anything that would display the parent info - the child code I see.

How would I add it?

attensys

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: Display Category Description of Parent Category
« Reply #1 on: July 25, 2012, 06:41:52 AM »
I am having a very similar problem.  I've partly found a solution by adding the following line to the Review Listing template:

<h1>{Category:Title}</h1>

But there isn't a Placeholder for the Category Description.  I guess this can be achieved another way but not being a PHP developer, I don't know how to do this.

attensys

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: Display Category Description of Parent Category
« Reply #2 on: August 08, 2012, 02:14:32 PM »
I decided to follow the instruction for adding a Placeholder to the template.reviewlisting.html file by inserting the following lines beneath the opening DIV

Code: [Select]
    <h1>{Category:Title}</h1>
    <p>{Category:Field:1}</p>

I then just needed to create a new field for each category, where I entered the text I want to appear on the Category Review Listing.

NRyan115

  • Moderator
  • Sr. Member
  • *****
  • Posts: 445
    • View Profile
Re: Display Category Description of Parent Category
« Reply #3 on: August 09, 2012, 02:55:45 PM »
This is a bad idea because fields in a category are for reviews, you will need to fill out the field everytime you add a review in that category, but im not sure right now how to make the pparent category description show up, im on my phone and awqy from my pc.

row1

  • SR Sole Developer
  • Hero Member
  • *****
  • Posts: 1244
    • View Profile
    • Sockware
Re: Display Category Description of Parent Category
« Reply #4 on: August 11, 2012, 08:57:36 PM »
There is currently no category description place holder. I will look at adding one.
If you find Simple Review useful please submit a Review (http://extensions.joomla.org/extensions/communities-&-groupware/ratings-&-reviews/4725/details), your positive reviews will help keep me going!
Please also make suggestions and possible improvements in the forum!

attensys

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: Display Category Description of Parent Category
« Reply #5 on: August 13, 2012, 09:08:28 AM »
Thanks.  That will be very useful when producing content for SEO purposes.