(résolu) Requête SQL pour un champs RadioImage

More
9 years 1 month ago - 9 years 1 month ago #52352 by Leifer
Bonjour,
j'utilise un champs RadioImage pour afficher des images avec leur descriptions dans l'infos bulle. J'ai une très grande quantité d'image à proposer dans ce champs (en menu déroulant).

Le format image1%%description%%image.png fonctionne parfaitement mais il pose un petit problème, c'est que j'utilise du coup un gros "pavé" compliqué à parcourir pour les modifications à réaliser et en cas d'erreur de syntaxe.

Bref je souhaiterais utiliser une requête SQL mais je ne saisi pas bien son fonctionnement. On appel une table mais cette table doit elle avoir une structure particulière ?

L'idée est d'avoir la possibilité non seulement de classer proprement les dites images avec les descriptions et si possible de pouvoir faire une mise en page de cette dernière.

J'espère avoir expliqué mon problème de façon la plus clair possible :)

Merci à ceux qui viendront proposer une solution :D
Last edit: 9 years 1 month ago by Leifer.

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

More
9 years 1 month ago #52369 by ggppdk
Hello

it is just a little more work to add support

for label and (new) description

and also display them in a bubble

but now it is not implemented



about your question , the SQL query is straight forward, and it is in the popup description of the parameter "Use SQL"
Code:
SELECT col1 AS value, col2 AS text, col3 AS image FROM #__mytable


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

More
9 years 1 month ago #52376 by Leifer
Thanks a lot ;)

Merci beaucoup, je vais faire des petits test pour la suite :)

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

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