problem with field copied from another

More
11 years 3 months ago #38877 by rottenberg
Hello
Flexicontent version : V1702.
I'm using 'color code' in articles following their type.
I have 3 types of articles.

As the css color code is used in numerous fields, I have created a hidden variable which contains the CSS color code if the current article type.

So if the color changes for an article type, I need to change only the content of the field which contains the css color code and not all fields which used it.

If I declare the default value of the hidden field which contains the color code as 'load when editing all items' no problem its working, I get the color code inside the text field.

If I declare the default value of the hidden field which contains the color as '... also display the value if empty' => the color code is not copied in the text field.

Using the first solution '... also display the value if empty' needs to record the color value in the article. So if the color type change I need to record all existing articles with the old color.

With the second solution, as the color is not recorded in each article, when changing the color type all old articles have the new color code (but this soluitoin is not working).

I think that when the value is copied {{color##0}}, if the hidden color field is empty inside the current article the default value of the hidden value is not used.

Presently it's not a great problem. I just want to signal the problem.

best regards

Michel

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

More
11 years 3 months ago #38883 by ggppdk
Hello,
you could think of this a limitation

the parameter controls the situation when field is displayed via "creating" its display HTML ...

any other places where DB is queried to get field data these data are used if they exist

so this setting is not used, same applies for all fields, which may have one or more such parameters

nevertheless you speak of field value replacing in other fields, maybe we could extend this functionality to parse parameters of other fields and make use of this parameter, just currently this is not implemented

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.

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