Display of filter 'created_by' > use easyprofile-user-field

More
8 years 11 months ago #59604 by kath
hi there,

I display a category page with filters, and one of my filters shows a dropdown with usernames ('created_by'). So far, so good.

[Problem]
I use the extension 'easyprofile', and I need to display their custom field 'company_name' in the filter 'created_by' instead of the usernames.

[Question]
Where can I attack?

thanks a lot for any hint,
kath :)

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

More
8 years 11 months ago #59616 by ggppdk
Hello

How to Duplicate a Flexicontent Field to create a new Field Type

then you can modify the function:
onDisplayFilter
(and if having many joomla users, you will also need to do some caching to avoid recalculating the "company_name" all the time)


-- 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...
The following user(s) said Thank You: kath

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

More
8 years 10 months ago - 8 years 10 months ago #59897 by kath
cool, will try and report back :)
Last edit: 8 years 10 months ago by kath.

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

More
8 years 10 months ago #60052 by kath
For simplicity (i thought :)) i took the following, different approach, and my problem has changed a little:

[problem]
On my category page with the filters, the relevant filter gives "FLEXI_FIELD_ITEM_SPECIFIC_AS_FILTERABLE" instead of a dropdown. I don't know, what that vocabulary means.

[setup]
J 3.4.8
FC 3.0.12

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

More
8 years 10 months ago #60107 by ggppdk
Hello

will correct the language string

The message is:

Warning, please remove field FIELD-NAME from filterable fields
- Fields using item specific replacements cannot be used as filterable field

you are using item specific replacements, the filter can not be calculated


-- 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 10 months ago #60133 by kath
>> How to Duplicate a Flexicontent Field to create a new Field Type
Great, that worked. Though I mainly used the onBeforeSave...() method to simply fill the field, and have it filtered the regular way.
thanks ggppdk! :)

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.361 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