Jump to content

change listing summary to description // Trim Summary


n00bster

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...