Multi select d'articles associés [Related items field]

More
13 years 3 months ago #18132 by simonD
Bonjour à tous,

J'aimerai créer un champ multi select qui permettrait de choisir d'autres contenus créés dans FLEXIContent (pour créer une partie "Vous aimerez aussi…" dans ma vue item).
En front-end j'aimerais que la liste des contenus affichée contienne les liens vers leur page respective.

J'ai réussi à créer le multi select en créant la requête SQL vers la table #__content.

Je bute sur la mise au point des liens dans le template item. J'aimerai savoir quoi mettre dans le href des balise <a> qui encadre mon <?php $field->display ?> et comment récupérer l'id et le catid de chaque élément du multi select.

Merci pour votre aide
Amicalement

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

More
13 years 3 months ago #18136 by micker
Hello tu devrai poser la question sur le forum des développeur ....
Sinon y un plugin de yoyopop qui marche super ! La tu essayer ?

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 3 months ago #18145 by ggppdk
You can do by doing a regular expression replacement at the template.

I will give you code.

What you ask makes me think we need a new field too, because this is indeed a very useful addition. Not difficult to do this field but i am doing too many things these days, FC 2.0 for J1.6/J1.7 and tracking down some old bugs for the final version of FC 1.5.6 for J1.5.

or Maybe i will make a new field and add it to FC 1.5.6 and POST it here too.

Regards


-- 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
13 years 3 months ago #18151 by micker
Great thanks

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 3 months ago #18194 by ggppdk
Implemented a new field "Related items" , selecting items will be very easy , as you select category and see items on the fly on second select box and then you add/remove on 3rd select box.

Uses Javascript ...

I will post tomorrow

Regards


-- 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
13 years 2 months ago #18246 by ggppdk
Try using this new field from v.1.5.6
[attachment=0:3sqzarp0]<!-- ia0 -->relateditems_field.zip<!-- ia0 -->[/attachment:3sqzarp0]


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

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

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