template_listings.detail:{position}-description

Action Hook Templates Since 3.8.3

Allows displaying any output above or below the listing description.

The {position} tag is a placeholder which accepts before and after values:

  • template_listings.detail:before-description
  • template_listings.detail:after-description

Parameters

$instance

(MyView) instance of current view class

$listing

(array) current listing array

You need to have a working knowledge of Hooks before you get started.

Boilerplate Code

Use the boilerplate code to start using the filter, and add your own logic to modify the first argument and return it.

Clickfwd\Hook\Action::add('template_listings.detail:{position}-description', function($instance, $listing) 
{
  // Execute action or echo output
});
Development & Support
Customizations are not included with support. We provide this information to make it easier for developers to extend the functionality. From time to time we may have some availability for custom work. Get in touch to see if there's an opportunity to work together.

Source

  • /views/themes/default/listings/detail_compact.thtml
  • /views/themes/default/listings/detail_tabs.thtml
  • /views/themes/default/listings/detail.thtml