Main menu

Forum


× Help Forum English

[ROADMAP] Custom fields custom type

  • n3t
  • Auteur du sujet
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 7 ans 3 mois - il y a 7 ans 3 mois #13929 par n3t
[ROADMAP] Custom fields custom type a été créé par n3t
Hi,

is there any way how to add another type of custom field? What I would like to achieve, is to create custom field of type "Hikashop products", where user can easily select multiple hikashop products, which will be after displayed in event details.

Seems like basic fields types are hardcoded, so it could not be extended by some plugin, or am I missing something?

Also, do you plan to implement, or to migrate to Joomla 3.7 custom fields?

Pavel
Dernière édition: il y a 7 ans 3 mois par Lyr!C. Raison: [ROADMAP]

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 7 ans 3 mois - il y a 7 ans 3 mois #13932 par Lyr!C
Réponse de Lyr!C sur le sujet Custom fields custom type
Hello,

Seems like basic fields types are hardcoded, so it could not be extended by some plugin, or am I missing something?

Well... this is a good idea! ;-)
Thank you! I will take this into consideration for future, as a simple process.
But it's almost already possible (for frontend registration form and admin) and will for frontend "Submit an event" form in a near future, by creating a custom plugin overriding the form xml file. ;-)

Currently, about Hikashop (or other extension) the only way i see is to use the "url" type, and then enter the full url to the hikashop product...

Also, do you plan to implement, or to migrate to Joomla 3.7 custom fields?

No. To be exact... not before a long time.
Custom fields for Joomla will be implemented only in 3.7 version of Joomla (and still some work to do!) but won't be available for older Joomla versions.
In the same time, the current custom fields system to be integrated in Joomla 3.7 will not full filled iCagenda needs.
My first wish is to improve the iCagenda custom fields system (but i will keep an eye on Joomla system, even contribute to it later, and see what the future will be and evolve! ;-) )

Best regards,
Cyril

Latest version : iCagenda 3.9.3
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

Fichier attaché :

Dernière édition: il y a 7 ans 3 mois par Lyr!C.

Connexion ou Créer un compte pour participer à la conversation.

  • n3t
  • Auteur du sujet
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 7 ans 3 mois #13941 par n3t
Réponse de n3t sur le sujet [ROADMAP] Custom fields custom type
Hi,

I understand that, even from my point of view, you will save lot of work, if you move to Joomla 3.7 Fields.
Currently this limit could be bypassed by two ways,
- creating custom plugin using OnContentPrepareForm
- using DPFields (Joomla 3.7 fields predecessor)

In both case, however fields are rendered in Registration area, as the template renders all params fields (except frontend and options) there.
Would be great, that only specific fieldsets will be rendered there and all other will be rendered as separate pages so plugins can extend iCagenda easily with extended parameters.

Also, using DPFields there is small conflict in class name. DPFields uses standard Joomla function JCategories::getInstance, which, when called for com_icagenda, returns class icagendaCategories, which is expected to be descendant of JCategories, however in iCagenda it is just helper class. Maybe renaming this helper class would be usefull, not to make this conflict.

Or maybe, do you accept code submissions?

Pavel

Connexion ou Créer un compte pour participer à la conversation.

  • n3t
  • Auteur du sujet
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 7 ans 3 mois #13942 par n3t
Réponse de n3t sur le sujet [ROADMAP] Custom fields custom type
Hi,

one more note - I am not sure with Virtueamrt, however Hikashop provides content plugin to display simple order form for product, this the way I would like to go. I just want to make moderators life easier, so they do not have to remember the "moustache" syntax, and just click and select product... So displaying I will solve in my custom iCagenda theme.

Pavel

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 7 ans 3 mois #13953 par Lyr!C
Réponse de Lyr!C sur le sujet [ROADMAP] Custom fields custom type
Hello,

I won't request user to use a third party extension to be able to create custom fields.

Custom fields system in iCagenda is integrated since 2 years now, and i have other improvements to add to this system.

In all cases, as for today and future functionnalities, Joomla system or DPFields can't handdle what is in iCagenda : core fields overrides of iCagenda. Not in the way it works.
And iCagenda is not using Joomla categories ;-)
For now, i won't rely on something just new and not yet full ready as custom fields in Joomla are (i follow Joomla issue tracker ;-) ), whereas iCagenda system for custom fields is there and already used by many users.

Best regards,
Cyril

Latest version : iCagenda 3.9.3
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

Fichier attaché :

Connexion ou Créer un compte pour participer à la conversation.

  • n3t
  • Auteur du sujet
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 7 ans 3 mois #13956 par n3t
Réponse de n3t sur le sujet [ROADMAP] Custom fields custom type
Hi,

I understand that, however not even with Joomla fields, DP Fields or iCagenda Custom fields you can handle everything. Sometime special plugin is needed. That is ok, iagenda handles all the events well, the only thing is, that template for event detail will render these additional fields in the registartion area, so its bit difficult to explain users to search for it there. My question was if it is possible to make this small change in the temlate file itself, so in registration area will be rendered only proper fields and all other fields will be rendered in options tab, or maybe better as separate tabs.

I know this could be solved by admin template override, however it it would be bit painfull to maintain with basic admin template.

Pavel

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 7 ans 3 mois #13967 par Lyr!C
Réponse de Lyr!C sur le sujet [ROADMAP] Custom fields custom type

I understand that, however not even with Joomla fields, DP Fields or iCagenda Custom fields you can handle everything.

True!
But with iCagenda custom fields, i can see when needed to develop special form field type with specific usage, and not relying on a third-party system ;-)
If custom fields did have existed already 4 years ago, i will have used them. But it's not yet available (and no enough feedback to know if robust or not for a third-party usage when it will) so i will keep progress on Custom Fields (where all the main logic is done and working! I just have to extend it a bit more and by using Joomla core fields + Special ones i will create that do not exist in Joomla API ;-) )

That is ok, iagenda handles all the events well, the only thing is, that template for event detail will render these additional fields in the registartion area, so its bit difficult to explain users to search for it there.

I'm not sure to understand well this part... could you explain me more the difficulty you have there ? As i don't see what you mean by "search for it threre"

Thanks!
Regards,
Cyril

Latest version : iCagenda 3.9.3
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

Fichier attaché :

Connexion ou Créer un compte pour participer à la conversation.

  • n3t
  • Auteur du sujet
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 7 ans 3 mois #13983 par n3t
Réponse de n3t sur le sujet [ROADMAP] Custom fields custom type
Hi,

common way (or maybe the simplest one) how to add custom fields to some component is to create plugin, and in event onContentPrepareForm add some fields like this
<?xml version="1.0" encoding="utf-8"?>
<form>
	<fields name="params">
		<fieldset name="myfields" label="My fields">
			<field name="myfield" type="text" label="My field" />
		</fieldset>
	</fields>
</form>
So the field value is stored to database field params, and you do not need to handle saving itself.

If I add fields like this to iCagenda, due to template file it wil be rendered in Registration tab. If you try to add fields for example to com_content it will render 'My fileds' fieldset as new tab with proper label.

Pavel

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 7 ans 2 mois #14003 par Lyr!C
Réponse de Lyr!C sur le sujet [ROADMAP] Custom fields custom type
Hello Pavel,

Thanks for tip.

Myself, i already know this way since a long time ;-)
But creating a plugin is not easy for everyone, and the goal of Custom Fields functionnality is to able this possibilities for all users, with no coding skills ;-)

Best regards,
Cyril

Latest version : iCagenda 3.9.3
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

Fichier attaché :

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: Lyr!C
Temps de génération de la page : 0.231 secondes

Follow Us

Créez vos templates Joomla avec Template Creator CK

acymailing logo new