Difference between revisions of "How to display listing description on list pages"
From JReviews Documentation
Line 1: | Line 1: | ||
List pages by default display only listing summary text (if enabled in configuration). | 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: | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
*<span style="color: blue">/com_jreviews/jreviews/views/themes/{your_theme}/listings/listings_blogview.thtml</span> | *<span style="color: blue">/com_jreviews/jreviews/views/themes/{your_theme}/listings/listings_blogview.thtml</span> | ||
+ | *<span style="color: blue">/com_jreviews/jreviews/views/themes/{your_theme}/listings/listings_blogview_magazine.thtml</span> | ||
*<span style="color: blue">/com_jreviews/jreviews/views/themes/{your_theme}/listings/listings_tableview.thtml</span> | *<span style="color: blue">/com_jreviews/jreviews/views/themes/{your_theme}/listings/listings_tableview.thtml</span> | ||
− | + | Replace this variable that outputs only summary: | |
− | + | ||
<source lang="php"> | <source lang="php"> | ||
− | + | $listing['Listing']['summary']; | |
</source> | </source> | ||
− | + | with this variable that outputs only the description: | |
− | + | ||
<source lang="php"> | <source lang="php"> | ||
− | + | $listing['Listing']['description']; | |
</source> | </source> | ||
− | + | or this variable that outputs both summary and description: | |
− | + | ||
<source lang="php"> | <source lang="php"> | ||
− | + | $listing['Listing']['text']; | |
</source> | </source> | ||
− | + | Make the replacements in all places in the theme file. | |
Latest revision as of 10:01, 12 November 2016
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.