Ant 14 Posted December 24, 2018 Share Posted December 24, 2018 (edited) Create templates/jreviews_overrides/filters/filter_functions.php and in it put the following code <?php defined('MVC_FRAMEWORK') or die; /* Add Favorite button to list page */ function add_favorite_button_list_page($buttons, $params) { $listing = $params['listing']; $listingHelper = ClassRegistry::getClass('ListingHelperHelper'); ob_start(); $listingHelper->favorite($listing); $favoriteButton = ob_get_clean(); $buttons['favorite'] = $favoriteButton; return $buttons; } Clickfwd\Hook\Filter::add('listing_list_action_buttons', 'add_favorite_button_list_page', 10); Hope someone finds this useful. More filters can be found at https://docs.jreviews.com/?title=JReviews:Developers_Filters Edited April 5, 2019 by Alejandro Updated with simpler code Dennis T. and Alejandro 1 1 Link to post
Alejandro 884 Posted December 24, 2018 Share Posted December 24, 2018 This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to post
Ant 14 Posted December 26, 2018 Author Share Posted December 26, 2018 This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to post
Ant 14 Posted January 16, 2019 Author Share Posted January 16, 2019 This section is only visible with a valid subscription. If you have a valid subscription, please login. n00bster 1 Link to post
Alejandro 884 Posted April 5, 2019 Share Posted April 5, 2019 This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to post
Ant 14 Posted April 11, 2019 Author Share Posted April 11, 2019 This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to post
JoshLewis 21 Posted December 16, 2019 Share Posted December 16, 2019 (edited) This section is only visible with a valid subscription. If you have a valid subscription, please login. Edited December 16, 2019 by JoshLewis Link to post
Jean 0 Posted February 5, 2020 Share Posted February 5, 2020 This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to post
Alejandro 884 Posted February 5, 2020 Share Posted February 5, 2020 This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to post
JoshLewis 21 Posted February 5, 2020 Share Posted February 5, 2020 (edited) This section is only visible with a valid subscription. If you have a valid subscription, please login. Edited February 5, 2020 by JoshLewis Link to post
Jean 0 Posted February 5, 2020 Share Posted February 5, 2020 This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to post
Alejandro 884 Posted February 5, 2020 Share Posted February 5, 2020 This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to post
Recommended Posts