Override Plugin [DUPLICATE AND CHANGE]

More
8 years 3 months ago #59649 by ggppdk
Hello

do you want to customize the HTML display ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago - 8 years 3 months ago #59651 by lclaude
I think,
In this case I want to not display the button and the heart icon, but only the text with the action on it like a simple link.

Laurent
Last edit: 8 years 3 months ago by lclaude.

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago - 8 years 3 months ago #59653 by ggppdk
Hello

with v3.0.9 - v3.0.10-RC2g most custom fields allow custom layouts

favourites field is created by CORE field plugin (core.php)
which has custom templating for
- tags
- categories
but does not have for favourites

can you do what you need using CSS ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 8 years 3 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #59656 by lclaude
I'm not sure I can do that only with CSS, I think no.

Because the function to send an item in my fav is to click on the "heart button",
and I want to have this action on the text "Click to subscribe", there any action on this text actually.

Laurent

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago - 8 years 3 months ago #59659 by ggppdk
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 in 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


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 8 years 3 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #59663 by lclaude
Waowww...

As always : you're support is awesome!
I thank you for your technical answer, I'll test ASAP.
And I thank you for informations about the near future of FC,
your annonces are allways for progress, we need all when we know you're working on ;)

Laurent

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.286 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline