field concatenation

More
12 years 1 month ago #37114 by rottenberg
Hello

In an article type I want to display contact name and corresponding phone.
I have 2 multivalue fields :
    nom_contact
    telephone_contact
.

I want to display
    contact name : contact phone
    contact name : contact phone
    ...
    contact name : contact phone

I have created a third field : contact_name_telephone and put it in template description field.

There may be more than one contact in an article (using muti value option).

in the prefix suffix separator I have enterered :

opening text for field : <ol>
prefix text vor every value : <il>{{nom_contact##0}}{{telephone_contact##0}}
Suffix text of every value : </li>
Closing text for field : </o>

In my test article I have created 2 value for contact name and contact telephone.

Nothing is displayed.
I thought about a renderonly value. I have added telephone_contact and nom_contact in renderonly field in the template.
the problem was the same.
What did I do wrong ?

thank's for help
best regards
Michel

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

More
12 years 4 weeks ago #37119 by micker
Replied by micker on topic field concatenation
hello
regarde ici le tuto existe
www.by-creationnumerique.com/tut ... lugin.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
12 years 4 weeks ago #37120 by rottenberg
Replied by rottenberg on topic field concatenation
J'ai effectivement fait ce qu'il y avait dans le tutorial a une différence près

dans le tutorial le champ {{field1##0}}{{field2##0}} est dans la valeur par défaut.

J'avais mis {{field1##0}}{{field2##0}} dans le prefixe de chaque valeur.

in the prefix suffix separator I have enterered :

opening text for field : <ol>
prefix text vor every value : <il>{{nom_contact##0}}{{telephone_contact##0}}
Suffix text of every value : </li>
Closing text for field : </o>


Dans cette configuration rien n'est affiché.

J'ai déplacé {{nom_contact##0}}{{telephone_contact##0}} dans la valeur par défaut.
Le reste n'a pas changé.

Dans ce cas j'affiche le texte brut {{nom_contact##0}}{{telephone_contact##0}}.

J'ai vérifié l'utilisation des plugin contact est autorisée dans les 3 champs.

Ces 3 champs sont des champs text multivaleur.

je ne vois pas comment corriger le problème

merci pour l'aide

Meilleures salutations
Michel ROTTENBERG

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

More
12 years 4 weeks ago #37121 by micker
Replied by micker on topic field concatenation

Dans ce cas j'affiche le texte brut {{nom_contact##0}}{{telephone_contact##0}}.

cela veut dire que cela marche ?
après ne comprennant pas le contexte difficile de t'aider ?? ;)
explique mieux on verras
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
12 years 4 weeks ago #37122 by rottenberg
Replied by rottenberg on topic field concatenation
Quand je mets {{nom_contact##0}}{{telephone_contact##0}} dans le champ valeur par défaut, au lieu d'afficher le contenu des champs nom_contact concaténé au champ telephone contact, j'obtiens le texte que j'ai saisi.
[attachment=0:1o5lvz0a]<!-- ia0 -->519e2a22dbf3ec3819000013.jpeg<!-- ia0 -->[/attachment:1o5lvz0a]
Si je mets {{nom_contact##0}}{{telephone_contact##0}} dans le champ field prefix j'obtiens une page blanche
[attachment=1:1o5lvz0a]<!-- ia1 -->519e299fdbf3ec068000003c.jpeg<!-- ia1 -->[/attachment:1o5lvz0a]

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

More
12 years 3 weeks ago #37160 by ggppdk
Replied by ggppdk on topic field concatenation
Hello,
i ll test this locally in the meant time please send me a PM to view the problem (provide the field id and and an item id that uses this field)


-- 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.314 seconds
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
Save