mosmap plugin and extra fields for address and city [Solved]

More
11 years 4 months ago - 11 years 3 months ago #50713 by mauriestate
Hi,

I have been searching this forum and even the documentation area, I found these links which are quite similar to my current issue:

flexicontent.org/forum/index.php?f=20&t=5728&rb_v=viewtopic
www.flexicontentcck.org/forum/index.php?...=5223&rb_v=viewtopic
and even this documentation link www.flexicontent.org/documentation/faq/7...of-other-fields.html

However, none of the above could help me to find a proper solution based on my current issue and templating knowledge.

I do not want to make any change to the item template but simply use fields to create what I want to do.

I have 3 fields:

Address: field22
City: field23
Location Map: a text field which is hidden both on backend and frontend item form.

In the Location Map field, in the prefix I have added:
Code:
{mosmap address='

In the default value, I have added:
Code:
{{field22##0}} , {{field23##0}}

In the suffix field, I have added:
Code:
, mauritius}

I have set the Default value use to:
Code:
Load when editing new items.

However, when I create a new item, save it and go to the item page, the map does not appear! Is it the right way to use another field value to create the map address or am I making a mistake somewhere please?

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.
Last edit: 11 years 3 months ago by mauriestate.

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

More
11 years 4 months ago #50717 by micker
1 do you activad trigering plugin ?
2 all your field are in position (displaing position or rendering)

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
11 years 4 months ago #50722 by ggppdk
Hello

1. activate parameter "Trigger content plugins"
2. below it you select content plugins, if plugin 'mosmap' appears in list select it otherwise select none from the list = trigger all content plugins

- also make sure mosmap plugin is enabled

- if text is not replaced, then look at it,
does it have correct syntax ?
you may paste it here too
also copy text inside desription, does it get replaced


-- 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
11 years 4 months ago #50726 by mauriestate
I do not see nothing on frontend, not even the syntax without rendering!

Yes, trigger all content plugins is also enable in backend.

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.

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

More
11 years 4 months ago #50730 by ggppdk
Hello

-- so the mosmap is matching the string but it gets replaced with nothing ?

if it is replaced with nothing:
a. do you see any JS error in "console" of the browser (click f12 to open)
b. if you temporarily disable mosmap plugin, you should see the real text, does it look correct, meaning the values that you want are what you expected with :
{{field22##0}}
{{field23##0}}


-- 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
11 years 3 months ago #50739 by mauriestate

ggppdk wrote: Hello

-- so the mosmap is matching the string but it gets replaced with nothing ?

if it is replaced with nothing:
a. do you see any JS error in "console" of the browser (click f12 to open)
b. if you temporarily disable mosmap plugin, you should see the real text, does it look correct, meaning the values that you want are what you expected with :
{{field22##0}}
{{field23##0}}


Hello,

Here is a screenshot of the map field parameters, just in case I made any mistake in it:

[attachment=1:j2vfstbd]<!-- ia1 -->field_parameters.png<!-- ia1 -->[/attachment:j2vfstbd]

Now, to answer to your questions, please see answers below:

a. do you see any JS error in "console" of the browser
NO, no js error or any kind or other errors are displayed.

b. if you temporarily disable mosmap plugin, you should see the real text, does it look correct, meaning the values that you want are what you expected with :
{{field22##0}}
{{field23##0}}

[attachment=0:j2vfstbd]<!-- ia0 -->frontend-display.png<!-- ia0 -->[/attachment:j2vfstbd]

This is a screenshot of how it is displayed on the frontend, as you'll see, there are tabs bottom_tab1 and bottom_tab3, the map, or the values should be displayed under tab bottom_tab2, not even the tab is visible, so I guess that not even the values are displayed on the frontend, and yes, I have temporally disable the google map plugin to test this and see if at least the field values were visible, but still nothing!

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.

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

More
11 years 3 months ago #50741 by mauriestate
Just in case you might need it, just pm you my site details.

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.

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

More
11 years 3 months ago #50742 by ggppdk
Hello

it is working now, you made 3-4 (multiple) mistakes,
(also we have a FAQ article for this ...), please read below


0. Better disable Joomla cache while testing (i have disabled it)
-- ALSO the Google Map will not render correctly inside HIDDEN container
so you can not put inside a TAB


1. {mosmap ...} is system plugin so you do not need content plugin triggering inside the text field

2. also if you are going to use ADDRESS, why don't you use our:
FLEXIcontent Address/Google map (FLEXIcontent FIELD) ??


3. Finally if you want to use text fields and {mosmap ...}
then NOTE that {{field22##0}} ONLY works inside prefix/suffix/opentag/closetag parameters !! (that is what the popup description says)

so correct configuration is this
1. Set default value to NON EMPTY e.g. "&nbsp;" (non-breaking space) or to any text
2. Set parameter usage of default value to "LOAD WHEN EMPTY"
3. Set inside prefix OR suffix OR opentag OR closetag:
{mosmap address='{{field22##0}}, {{field23##0}}, Mauritius'}




Also if you want in SOME ITEMS to use LATITUDE and LONGITUDE, and in SOME ITEMS to use address


then you can create 2 FLEXIcontent CHECKBOX fields:

"Show Map via address"
VALUES (only one value): 1::Show%%
PREFIX: {mosmap address='{{field22##0}}, {{field23##0}}, Mauritius'}


"Show Map via coordinates"
VALUES (only one value): 1::Show%%
PREFIX: {mosmap lat='{{field777##0}}', lon='{{field888##0}}'}




SO in item form
-- if you add address,
you tick checkbox field:
"Show Map via address"

-- if you add coordinates (remember to create to extra text fields: latitude,longitude),
you tick checkbox field:
"Show Map via coordinates"



and it is working now (see PM)


-- 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
11 years 3 months ago #50759 by mauriestate
Hi,

Thank you and sorry for these mistakes, it works all fine now and it even look great. We may mark this topic as solved.

Offering professional real estate and investment services in Mauritius. Visit us at www.sjkestate.com to also see the power of Flexicontent with Joomla to promote our services.

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

More
11 years 3 months ago #50764 by micker
same edit your title post

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.

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