Difference between revisions of "How to display Summary text in the Listings Module"

From JReviews Documentation
Jump to: navigation, search
(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…')
 
Line 1: Line 1:
 
 
Edit the module's theme file:
 
Edit the module's 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>
 +
  
 
And paste this line where you want the Summary text to be displayed:
 
And paste this line where you want the Summary text to be displayed:

Revision as of 15:04, 21 January 2010

Edit the module's theme file:

  • \com_jreviews\jreviews\views\themes\default\modules\listings.thtml


And 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.