How to display listing description on list pages

From JReviews Documentation
Revision as of 10:01, 12 November 2016 by Jreviews (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

List pages by default display only listing summary text (if enabled in configuration).

Edit the theme file of the list page, depending which layout you use:

  • /com_jreviews/jreviews/views/themes/{your_theme}/listings/listings_blogview.thtml
  • /com_jreviews/jreviews/views/themes/{your_theme}/listings/listings_blogview_magazine.thtml
  • /com_jreviews/jreviews/views/themes/{your_theme}/listings/listings_tableview.thtml

Replace this variable that outputs only summary:

$listing['Listing']['summary'];

with this variable that outputs only the description:

$listing['Listing']['description'];

or this variable that outputs both summary and description:

$listing['Listing']['text'];

Make the replacements in all places in the theme file.