template_listings.{page}:after-title
Allows displaying any output after the listing title
You need to have a working knowledge of Hooks before you get started.
The {page} tag is a placeholder allowing the filter to work with the following variations:
template_listings.detail:after-titletemplate_listings.list:after-titletemplate_listings.comparison:after-titletemplate_listings.live-search:after-title
Parameters
| Name | Type | Description |
|---|---|---|
$listing |
parameter |
(array) current listing array |
$layout |
parameter |
(string) The type of layout: detail, card, blogview, masonry, tableview, thumbview, comparison, search |
$instance |
parameter |
(MyView) instance of current view class |
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-page-after-title', function($listing, $layout, $instance)
{
// Execute action or echo output
});
Source Files
/views/themes/default/listings/detail_header.thtml/views/themes/default/listings/listing_card_layout.thtml/views/themes/default/listings/listing_postcard_layout.thtml/views/themes/default/listings/listing_poster_layout.thtml/views/themes/default/listings/listings_blogview_magazine.thtml/views/themes/default/listings/listings_blogview.thtml/views/themes/default/listings/listings_compare.thtml/views/themes/default/listings/listings_masonry.thtml/views/themes/default/listings/listings_search_results.thtml/views/themes/default/listings/listings_tableview.thtml/views/themes/default/listings/listings_thumbview.thtml