Index custom calculated field

More
10 years 2 months ago #49068 by jrodgar
Suppose I have several fields (for example, two dates and a bolean, two boleans), and I want a new custom field that add some logic to this. For example


FieldA: bool
FieldB: bool

FieldC: is true when FieldA and FieldB

or another example

FieldA: date
FieldB: date
FieldC: bool

FieldD: FieldA < FieldB and FieldC


Can this be done? I guess I wouldn´t have too much problem making a custom field, but I don´t know if I´ll be able to filter by it later.

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

More
10 years 2 months ago #49069 by ggppdk
Hello

this will need authoring (programming) your custom field appropriately

you may duplicate an existing field and start coding

the other fields are available inside plugin code via:

e.g. with :
$item->fields
$item->fieldvalues


-- 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
10 years 2 months ago #49070 by jrodgar
Ok, I´ll take a look at the code, I wasn´t sure about the "index me" part when is calculated

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

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