Fill a field with other fields

More
10 years 3 months ago #43807 by Dias
Replied by Dias on topic Fill a field with other fields
Hello

I've read and read this article, and still do not understand.

{{address##0}}{{postcode##0}}{{city##0}}

address, postcode, city are field names ?

if so then you can add these replacements inside the parameters:

- Prefix text of every value
- Suffix text of every value
- Opening text for Field
- Closing text for Field

What should I add and where? I understand I must add in one of those parameters, "Prefix...", "Suffix...", "Opening..." and "Closing...".

But in all of them? I think not. And what? Can you please give me an example using the Chabi01 fields?

Do I type in "Prefix text of every value" parameter the values "{{address##0}}{{postcode##0}}{{city##0}}"? Is that so?

And then how do I use (or refer) them in another field?

Also, I've read the article you've mentioned in "How to use raw field values" and still don't understand.

Thank you very much for your help.

Fernando

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

More
10 years 3 months ago #43832 by ggppdk
Hello

1. my previous answer requires editing the field,
i understand that it is not possible / difficult for you,

2. as i said the replacement works with built-in fields provide by FLEXIcontent package, the syntax of the replacement is described in the popup description of the fields that support it
the syntax is

{{fieldname##nn##propertyname}}

so the first part is the field name
How to use raw field values inside the value of other fields

e.g.
For this field (address field with Google Map) which is multi property with a single value (value 0) these can be used in other fields (e.g. use them in the prefix / suffix of a text field)
{{fieldname##0##addr1}}
{{fieldname##0##addr2}}
{{fieldname##0##addr3}}
{{fieldname##0##city}}
{{fieldname##0##state}}
{{fieldname##0##province}}
{{fieldname##0##zip}}
{{fieldname##0##country}}
{{fieldname##0##country2}}
{{fieldname##0##lat}}
{{fieldname##0##lon}}

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
10 years 1 month ago #45733 by Chabi01
Hi !
Back to front :)
I tried to modify the xml and php file to add opening and closing text for the field.
Ok, but this is not working as expected.
The "text" is added above the map but not used to generate the point on the map.

I took a look in the php file and the point are generated with latitude on longitude (retrieved in the admin form when you type an address).
At this point, i don't know if i can put in place the "automatic" filling for this field.

If somebody have an idea...
Thanks to all,

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

More
10 years 1 month ago #45752 by ggppdk
Hello

we have just added (r1866) to CORE distribution the
addressint field
Address international / Google Maps field

contributed by Ruben Reyes

only some minor cleanups done to it,

maybe you can use that


-- 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
10 years 1 week ago #46668 by davidote
Hi,

I'm trying to fill a field with the name of the categories of the item. I have tried wrotten these in the Prefix text of every value

{{categories##0##_value_}}
with this option I obtain the id of the category and I need the name of the category

I have also tryed {{categories##0##_text_}} and {{categories##0##_title_}}, and I also get the id of the category.

Is there any way to fill the field with category instead of category id?

Thanks

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

More
10 years 1 week ago #46701 by ggppdk
Hello

the code you mention should not work in FC v2.1.3, which FC version do you use in this web-site ?

i could give you code to support this for v2.1.3, and this code will be in v2.2.0 release

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