How to set a php condition with field value ?

More
2 years 8 months ago #82026 by bendeb
Pourtant, dans value (dans la bdd) il est bien à 1. Idem dans value_integer.

Avec mon champ de type select, quand je choisi 1, j'ai bien value = 1.

C'est bizarre que la condition fonctionne avec un champ select mais pas un champ texte.
A moins que ce soit un réglage de champ que j'ai mal réglé.

Flexicontent 4.1.0b1
Joomla 3.9.18

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

More
2 years 8 months ago #82027 by micker
cela n'as rien avoir avec le type de champs c'est ton code php ton test qui est faux
lis ca waytolearnx.com/2020/01/difference-entre-et-en-php.html

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
2 years 8 months ago #82028 by bendeb
C'est bon j'ai trouvé ce qui n'allait pas.
Dans les paramètres du champ, j'avais renseigné un texte d'ouverture et de fermeture.
Il fallait donc entre les guillemets ne pas mettre 1 uniquement mais le texte d'ouverture, le 1 et le texte de fermeture.

Problème résolu donc.

Merci pour ton temps ;)

Flexicontent 4.1.0b1
Joomla 3.9.18

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

More
2 years 8 months ago #82029 by micker
de rien

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.

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