Hello
1. do not display the field
2. instead add custom code inside your
item(_html5).php
category_items(_html5).php
Code:
$favourites = & $item->favs;
$favoured = & $item->fav;
$field->value[] = 'button'; // dummy value to force display
$favs = flexicontent_html::favoured_userlist( $field, $item, $favourites);
echo '
<div class="fav-block">
'.flexicontent_html::favicon( $field, $favoured, $item ).'
<div id="fcfav-reponse_item_'.$item->id.'" class="fcfav-reponse-tip">
<div class="fc-mssg fc-info fc-iblock fc-nobgimage '.($favoured ? 'fcfavs-is-subscriber' : 'fcfavs-isnot-subscriber').'">
'.JText::_($favoured ? 'FLEXI_FAVS_YOU_HAVE_SUBSCRIBED' : 'FLEXI_FAVS_CLICK_TO_SUBSCRIBE').'
</div>
'.$favs.'
</div>
</div>';
3. also find the
function favicon(...) inside
component/com_flexicontent/classes/flexicontent.helper.php
and copy it at the top of your Joomla template index,php
as
Code:
function myFAVdisplay(...) {
}
then inside your custom code replace:
flexicontent_html::favicon
with
myFAVdisplay
- we have already updated the code to be prepared for supporting "favouring" type since i
n future version we will support favouring
categories
users
so the server URL variable will not change, but be prepared in future that they might change and you might need to update something
- We have delayed added custom layouts for many fields until things have finalized !! e.g. fieldgroup support, (now most have)
favourites will also get / allow custom layouts in future release