Difference between revisions of "How to display Summary text in the Listings Module"
From JReviews Documentation
(Created page with ' Edit the module's theme file: *<span style="color: blue">\com_jreviews\jreviews\views\themes\default\modules\listings.thtml</span> And paste this line where you want the Summar…') |
|||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | To display the Summary text in Listings module, you only need to enable it in the Module Parameters: | ||
− | + | [[File:ModuleSummaryText.png]] | |
+ | |||
+ | |||
+ | |||
+ | If you are using older version of JReviews where the Show Summary parameter doesn't exist, you will need to modify the theme file: | ||
*<span style="color: blue">\com_jreviews\jreviews\views\themes\default\modules\listings.thtml</span> | *<span style="color: blue">\com_jreviews\jreviews\views\themes\default\modules\listings.thtml</span> | ||
− | + | ||
+ | Paste this line where you want the Summary text to be displayed: | ||
<source lang="php"> | <source lang="php"> | ||
<?php echo $Text->truncate($listing['Listing']['summary'], 50);?> | <?php echo $Text->truncate($listing['Listing']['summary'], 50);?> |
Latest revision as of 11:36, 17 June 2011
To display the Summary text in Listings module, you only need to enable it in the Module Parameters:
If you are using older version of JReviews where the Show Summary parameter doesn't exist, you will need to modify the theme file:
- \com_jreviews\jreviews\views\themes\default\modules\listings.thtml
Paste this line where you want the Summary text to be displayed:
<?php echo $Text->truncate($listing['Listing']['summary'], 50);?>
50 is the number of characters that will be displayed, you can increase/decrease the value if you want.