template_listings.detail:{position}-description
Allows displaying any output above or below the listing description.
You need to have a working knowledge of Hooks before you get started.
The {position} tag is a placeholder which accepts before and after values:
template_listings.detail:before-descriptiontemplate_listings.detail:after-description
Parameters
| Name | Type | Description |
|---|---|---|
$instance |
parameter |
(MyView) instance of current view class |
$listing |
parameter |
(array) current listing array |
Boilerplate Code
Use the boilerplate code to start using the action, and add your own logic or echo output.
Clickfwd\Hook\Action::add('template_listings-detail-position-description', function($instance, $listing)
{
// Execute action or echo output
});
Source Files
/views/themes/default/listings/detail_compact.thtml/views/themes/default/listings/detail_tabs.thtml/views/themes/default/listings/detail.thtml