Allows displaying any output after the listing title
The {page}
tag is a placeholder allowing the filter to work with the following variations:
-
template_listings.detail:after-title
-
template_listings.list:after-title
-
template_listings.comparison:after-title
-
template_listings.live-search:after-title
Parameters
$listing
(array) current listing array
$layout
(string) The type of layout: detail, card, blogview, masonry, tableview, thumbview, comparison, search
$instance
(MyView) instance of current view class
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.{page}:after-title', function($listing, $layout, $instance)
{
// 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_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