n00bster Posted March 2, 2019 at 01:01 PM Share Posted March 2, 2019 at 01:01 PM i have changed my listings summary text to description:https://docs.jreviews.com/?title=How_to_display_listing_description_on_list_pages from: (listings_blogview.thtml) $list_show_abstract = $listing['Listing']['summary'] != '' && $this->config->list_show_abstract; $list_abstract_trim = $this->config->list_abstract_trim; if ( $list_show_abstract && ($list_abstract_trim != '' || $list_abstract_trim > 0) ): ?> <div class="jrListingSummary"> <?php echo $Text->truncateWords($listing['Listing']['summary'],$list_abstract_trim);?> </div> <?php elseif($list_show_abstract == 1):?> <div class="jrListingSummary"> <?php echo $listing['Listing']['summary'];?> </div> <?php endif;?> to $list_show_abstract = $listing['Listing']['description'] != '' && $this->config->list_show_abstract; $list_abstract_trim = $this->config->list_abstract_trim; if ( $list_show_abstract && ($list_abstract_trim != '' || $list_abstract_trim > 0) ): ?> <div class="jrListingSummary"> <?php echo $Text->truncateWords($listing['Listing']['description'],$list_abstract_trim);?> </div> <?php elseif($list_show_abstract == 1):?> <div class="jrListingSummary"> <?php echo $listing['Listing']['description'];?> </div> <?php endif;?> the text is shown from the description but it don't seem to be able to use the trim function for this. and i would need this. what i see the trim words function is only working on the summary text, is that correct? Link to comment
Alejandro Posted March 3, 2019 at 12:19 AM Share Posted March 3, 2019 at 12:19 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
n00bster Posted March 4, 2019 at 07:35 AM Author Share Posted March 4, 2019 at 07:35 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.