Category template and duplicated values

More
11 years 3 months ago - 11 years 3 months ago #38779 by rottenberg
Hello

In the same category I have 3 types or articles.
the font color of each type of article is specifical :
exemple :
    article 'baisse de prix' : font blue
    article 'promotion' : font red
    article 'nouveau produit' : font green

These types of article have quite the same type of fields. So I have duplicated the users fields for each type to manage the text colors.
In articles no problems I have 3 templates.

Now for categories : I want to display together the 3 types of articles.

I'm using a 'blog' model categorie template.
I display the all the fields I use in the 3 types above or under the article's image.

If I use a user's field no problem the field is displayed once following the type of article.

If I use a copy of the title (core field)or a copy of a user's field (fieldname##0) the title is duplicated 3 times in the display.
I have 3 variables :
    baisse_prix whose value is <span style="color:#0000ff;">{{item->title}}</span>
    promo whose value is <span style="color:#ff0000;">{{item->title}}</span>
    nouveau whose value is <span style="color:#ff00ff;">{{item->title}}</span>

I get the copy of the title 3 times for each article (in blue, in red and in green)

All user's field or copy of a user's field are displayed only once in the good colour for each article.

I have found the problem in the V1680 and in the beta 4 V1696

Is it possible to get the core field working like user's fields

thank you for help

best regards

Michel
Last edit: 11 years 3 months ago by rottenberg.

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

More
11 years 3 months ago #38780 by rottenberg
I add a screen hard copy :
[attachment=0:bczlgt1o]<!-- ia0 -->page categorie.jpg<!-- ia0 -->[/attachment:bczlgt1o]

The title (copy of a core field) and the prices (copy of a user's field) are duplicated 3 times in each color.

The 'produit en France' 'Produit en Belgique' last line (user's field) is displayed following the type of article.

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

More
11 years 3 months ago #38781 by ggppdk
maybe you have all 3 fields assigned to each of the 3 types?


-- 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
11 years 3 months ago #38796 by rottenberg
No I have just checked each field is assigned only to one type.
If the field is a user's field (like produit en ... in the exemple) it's OK. I get only the value of the corresponding field.

If the field is a copy of another field ({{field- value name##0}} or a copy of a core field ({{item->title}}) the field is displayed even if it is not assigned to a type.

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

More
11 years 3 months ago #38798 by ggppdk
If the field values exist and you use a field replacement inside prefix suffix parameters then they will be displayed. Did you try to save item again.

Take note that i am not sure that i understand the configuration that you have. Does a value get printed without existing for an item? Try displaying just one field and posting a picture of its configuration here together with an explanation


-- 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
11 years 3 months ago #38800 by rottenberg
I send you in a few minutes all details by pm.

best regards
Michel

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

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