I am actually investigating the possibility to develop a plugin which adds a new customfield-type to index.php?option=com_matukio&view=customfield&layout=edit.
I digged a little bit into the code and found libraries/compojoom/form/customfields where they are globally (?) built.
Is it possible to built a plugin that extends the available customfield options for the admin while creating new fields?
Otherwise I would have to hardcode it - is this lib-folder used by all of your extensions?
Could you point me into the right direction where to start at all, please?
I need a flexible customfield which does a sql query, where should it be built? Is there a class which could be extended - the available plugin events (via
) are not appropriatably usable for this type of task
Best regards, and thx in advance,
new custom field developing
1 year 11 months ago #35857
I suggest a customfield type 'sql' with 3 depending param options for the following ones, marked with $, plus the StrOption as textfield.
SELECT $PARAM_id FROM $PARAM-table WHERE $PARAM_other_customField = 'StrTextinput';
where $PARAM_id is saved to database, could be extended with 'as'
and $PARAM_other_customField wants to be query in behind (LEFT JOIN) which queries the results of #__matukio_customfields (or similar, I did not check the exact name by now). That would result in more complex statements for the frontend views, too.
So for now, I would like to focus the quoted statement which should meet most needs and would be a base query I maybe would like to extend later || on the fly.
I need such 'clean query' inside Matukio because I do develop a site these days with Seblod CCK plus Matukio while both frontend views and types (lists, detailviews) should be 'linked' to each other.
I am thinking about developing such a sql-customfield by myself - would you be interested in it for core-implementation? But firstly, please also review the last entry to
(i was asking about the status which Yves set up) - because if you will change the models to work with the J!3.7 customfield types and remove the compojoom ones, that would change a lot, of course.
By the way, your Kunenas Code modal popup has errors