[Résolu] Ajouter champ texte à Minigallery

More
13 years 2 months ago - 13 years 2 months ago #14326 by kursus
Bonjour à tous,

J'essaye depuis un moment d'ajouter un champ texte à chaque image ajoutée via minigallery.

J'arrive à faire apparaître le champ avec
Code:
$field->html .= '<input type="text" />';

dans minigallery.php mais je n'ai pas compris la façon dont la valeur du champ est enregistrée, il redevient vide à l'enregistrement.

J'essaye de m'inspirer du plugin Image mais je patauge.

Quelqu'un aurait une piste ?

Merci beaucoup
Last edit: 13 years 2 months ago by kursus.

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

More
13 years 2 months ago #14329 by micker
hello
je suis pas dev
essaie de contacter yopyop001
a+

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
13 years 2 months ago #14332 by yopyop001
Bonjour,

Essaie de t'inspirer également du plugin weblink qui propose aussi plusieurs champs (lien, titre, hits) avec la possibilité d'en ajouter plusieurs.

En gros il s'agit de stocker dans la table fields_items_relations l'ID du fichier média (l'image) et son titre.

C'est ce que fait le plugin weblink avec la fonction serialize / unserialize.

J'avoue que je ne peux pas faire de recherches plus poussées en ce moment.

A plus tard

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

More
13 years 2 months ago #14333 by kursus
Ok merci yopyop je vais regarder ça !

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

More
13 years 2 months ago #14335 by micker
il est trop fort ce yopyop001

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
13 years 2 months ago #14336 by kursus
Et si tu pouvais expliquer en deux mots comment utiliser serialize ça serait encore plus fort ;) !

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

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