Jump to content

Place a module between summary and description in JR 4.x


PeterD
Go to solution Solved by Alejandro,

Recommended Posts

Hi,

I want to place a module between summary and description. Earlier in version 3 I had used this code in the listings/detail.thtml with your help:

<?php /* SUMMARY - DESCRIPTION */ ?>

<div class="jrListingFulltext"><?php echo $listing['Listing']['summary'];?></div>

{loadposition modulname}

<div class="jrListingFulltext"><?php echo $listing['Listing']['description'];?>

The new one for displaying summary and description seems to be more extensive.

	<?php \Clickfwd\Hook\Action::action("template_listings.detail:before-description", $listing, $this); ?> 

		<?php /* SUMMARY - DESCRIPTION */ ?>
		
		<?php if (! empty($listing['Listing']['text'])): ?>

		<div class="jrListingFulltext <?php echo $char_limit > 0 ? 'jr-show-more' : ''; ?>" <?php echo $char_limit > 0 ? 'data-characters="'. $char_limit .'"' : ''; ?> itemprop="description">

			<?php echo $listing['Listing']['text'] !== strip_tags($listing['Listing']['text']) ? $listing['Listing']['text'] : nl2br($listing['Listing']['text']);?>

		</div>

Yes, I know this is an individual requirement, but maybe you can give me a hint.

Link to comment
×
×
  • Create New...