Difference between revisions of "How do I hide Summary text on listing detail page"
From JReviews Documentation
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
Edit this theme file: | Edit this theme file: | ||
*<span style="color: blue">\com_jreviews\jreviews\views\themes\{theme_name}\listings\detail.thtml</span> | *<span style="color: blue">\com_jreviews\jreviews\views\themes\{theme_name}\listings\detail.thtml</span> | ||
− | and replace | + | |
+ | |||
+ | and replace: | ||
<source lang="php"> | <source lang="php"> | ||
− | <?php echo nl2br($listing['Listing']['text']);?> | + | <?php echo $listing['Listing']['text'] !== strip_tags($listing['Listing']['text']) ? $listing['Listing']['text'] : nl2br($listing['Listing']['text']);?> |
</source> | </source> | ||
− | + | ||
+ | with: | ||
<source lang="php"> | <source lang="php"> | ||
− | <?php echo nl2br($listing['Listing']['description']);?> | + | <?php echo $listing['Listing']['description'] !== strip_tags($listing['Listing']['description']) ? $listing['Listing']['description'] : nl2br($listing['Listing']['description']);?> |
</source> | </source> | ||
Latest revision as of 06:26, 13 June 2012
Edit this theme file:
- \com_jreviews\jreviews\views\themes\{theme_name}\listings\detail.thtml
and replace:
<?php echo $listing['Listing']['text'] !== strip_tags($listing['Listing']['text']) ? $listing['Listing']['text'] : nl2br($listing['Listing']['text']);?>
with:
<?php echo $listing['Listing']['description'] !== strip_tags($listing['Listing']['description']) ? $listing['Listing']['description'] : nl2br($listing['Listing']['description']);?>