Ajout d'une class au champ text

More
11 years 6 months ago #36321 by seabird
Bonjour,

Je sais que je peux utiliser le champ date qui est tout fait.
Mais je préfère utiliser le champ text qui utilise les masques de saisie pour rentrer mes dates.
Je voudrais donc rajouter une class à l'input du champ text sans toucher au fichier plugins/flexicontent_fields/text/text.php.
De cette façon, j'aurais la possibilité d'afficher mon calendrier automatiquement en cliquant simplement dans le champ input comme ci-dessous.


Pour que cela fonctionne, pour l'instant j'ai modifié dans text.php:
Code:
class="'.$classes.' " par class="'.$classes.' mCalendar"
Ce qui n'est pas judicieux à cause des mises à jour et surtout tous les champs text auront la class mCalendar :?

D'où ma question. Y a t-il possibilité de rajouter une class dans les propriétés du champ concerné.

Merci,

Eric

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

More
11 years 6 months ago #36324 by micker
actuellement non
mais le mieux serait de créer ton propre plugin en partant de celui de texte
regarde la Faq c'est expliquer
Après plus de soucis de mise à jour
a plus

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
11 years 6 months ago #36331 by seabird
C'est bon j'ai créé le plugin text-date avec ma class calendar. Ca fonctionne

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

More
11 years 6 months ago #36337 by micker
Tu peux partager ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
11 years 6 months ago #36339 by seabird
Oui je suis en train d'associer avec la comparaison des deux dates: www.flexicontent.org/forum/index ... =viewtopic

Cela arrive ;)

Eric

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

More
11 years 6 months ago #36341 by ggppdk
Hello,
the text field can accept custom HTML tag parameters,
the above allows you to add any parameters except for existing one
e.g. mypar1="myval1" but not class="..."

a new parameter to add class custom classes would be better

even if you created a copy of text-field i would suggest (if you do not do other customizations) , if the parameter "custom class" becomes available that you would change an existing field text-date to become text, or if inputmask are added to the date field you could change text-date to be date field !

If date field had inputmask too would you use that instead ? ,
NOTE: date field has some advantages in filtering , and other

is inputmask important?
will not the datepicker of date field be enough ?


-- 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.

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