google maps plugin with many flexicontent fields

More
13 years 2 months ago #32979 by fgossart
My data have some flexi fields:
Adress, ZipCode, town, country...
I'd like to find a way to display a google maps with combination of all the fields
[Adress]+[ZipCode]...
I try FlexiGMap but I need to manually copy all my fields contents to the FlexiGMap that calculates coordonates.

have you another easier solution ?

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

More
13 years 2 months ago #32985 by brandonking
Hello,

You can probably use Re-replacer & Sourcerer from www.Nonumber.nl .
Please read below forum.
flexicontent.org/forum/index.php?f=20&t=5728&rb_v=viewtopic
Regards,
Brandon

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

More
13 years 2 months ago #32986 by yopyop001
Hi,

I'm the devlopper of FLexigmap plugin but i have not take the necessary time to update it for a long time...

On one site, i made a flexicontent plugin who take some fields in the form (adress, zip, city) and populate the field adress of the plugin and update the position, may be it can interest you.

What is your version of Joomla and FC?

Regards

And sorry for my english

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

More
13 years 2 months ago #32988 by kenmcd

yopyop001 wrote: ...
On one site, i made a flexicontent plugin who take some fields in the form (adress, zip, city) and populate the field adress of the plugin and update the position, may be it can interest you.
...

Please attach this plug-in, I would definitely like to see it.
I am trying to do the same thing right now - use field values as input into another plug-in.
So seeing how you did it would be very helpful.

Thanks.
:D

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

More
13 years 2 months ago #32990 by micker
it very simple !
0 install google maps plugin and do basic setting
1 creat a radio field to display are not your map (because if adresse is empty it display basic maps)
2 creat your field adress, city, CP ...
3 in your item.php
Code:
<?php if ($this->fields['field52']->display==='Oui'){ echo'{mosmap address=\''; echo $this->fields['field28']->display; echo','; echo $this->fields['field29']->display; echo $this->fields['field30']->display; echo ', france\'}'; } ?>
field52 is radio button (yes or no)
field28 is adress
field 29 is CP
field 30 is city
... custom it with your installation !
regards

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 2 months ago #32992 by ggppdk
The following is already implement and is in our Google SVN

You can create multiple Text or other Type of fields and then combine them to create the text of a Joomla plugin CODE:

Inside a single field, you can use other fields values by entering replacements (in value prefix / value suffix / field open text / field close text) like:

{{fieldvalue##nn}} , {{fieldvalue##nn##propertyname}}

-- e.g for single property fields (text,date, etc):
{{field19##0}}

-- e.g. for multi-property fields (weblink,email, etc):
{{field19##0##link}} and {{field19##0##addr}}

-- e.g. for indexable field that have value (=index) and label (select, selectmultiple, radio, checkbox, radioimage, checkboximage, etc):
{{field21##0##_value_}} or {{field21##0##_text_}} or {{field21##0##_image_}}


-- 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 review. Thanks!

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

More
13 years 2 months ago #32993 by ggppdk
This is a lot faster than using Nonumber replacer that acts on all the page, and much easier than changing the template file to trigger the desired content plugin manually.


-- 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 review. Thanks!

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

More
13 years 2 months ago #32995 by brandonking
Nonumber extensions are just temporary solutions.
Definitely, much better to have function like this as core.
You win :D

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

More
13 years 2 months ago #32996 by ggppdk
yes, Nonumber is extension is very good,

just difference with built-in replacement is that it gives you
- easier and
- and more replacement options (in regards with fields values only)
- with a little better performance, because it is done on a small text and not full page HTML


-- 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 review. Thanks!

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

More
13 years 2 months ago #33007 by yopyop001
Hi,

@kenmcd :

Not sure it's the best way but you can edit the file
plugins/flexicontent_fields/flexigmaps.php

to add
Code:
$autoloc_field_1 = "loc_field1"; $autoloc_field_2 = "loc_field2"; $autoloc_field_3 = "loc_field3"; $js_autoloc = " jQuery(document).ready( function() { jQuery('#".$autoloc_field_1."').change(function() { address_value = jQuery('#".$autoloc_field_1." option:selected').text(); address_value += ', ' + jQuery('#".$autoloc_field_2."').val(); jQuery('#address').val(address_value); jQuery('#btn_codeAddr').click(); }); }); "; $document->addScriptDeclaration($js_autoloc);

in function onDisplayField(&$field, $item) juste after
Code:
$document->addScriptDeclaration($js);

(You have to replace loc_field# by your fields name)
Note : use
Code:
jQuery('#".$autoloc_field_1." option:selected').text();
if your filed is a select,
and use
Code:
jQuery('#".$autoloc_field_2."').val()
if your field is a text field

Regards

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

Moderators: vistamediajoomlacornerggppdk
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