jmb
Newbie
Offline
Posts: 24
|
 |
« on: June 05, 2008, 08:59:19 AM » |
|
Great. I tried to customize the detail.thtml file but I see the mosmap code I verified : - the mambot is processing
- the googlemaps mambot running after the jReviews one
- the click2search feature from the lat/long fields is disable
Do you have an idea ?
|
|
|
|
« Last Edit: June 05, 2008, 10:33:50 AM by jmb »
|
Logged
|
|
|
|
Alejandro
Global Moderator
Administrator
Hero Member
Offline
Posts: 16931
|
 |
« Reply #1 on: June 05, 2008, 04:12:04 PM » |
|
I just tested putting this in my detail.thtml view file and it works perfect: {loadposition user1} the modules in user1 position appear in the page. So plugins do work with the detail view.
Have you tried just putting the mosmap code without using custom fields, but instead hardcoding the value of the fields? How do you know the mambot is processing?
|
|
|
|
|
Logged
|
|
|
|
jmb
Newbie
Offline
Posts: 24
|
 |
« Reply #2 on: June 05, 2008, 05:49:18 PM » |
|
The mambot is processing ... because if I hardcode the value, the map is OK  But if I put : {mosmap width='350'|height='250'|lat='{jr_ylat}'|lon='{jr_xlong}'| zoom='20'| zoomType='Small'|zoomNew='0'|mapType='Satellite'| showMaptype='0'|overview='0'} it appears : '|lon='{jr_xlong}'| zoom='20'| zoomType='Small'|zoomNew='0'|mapType='Satellite'| showMaptype='0'|overview='0'}
|
|
|
|
|
Logged
|
|
|
|
Alejandro
Global Moderator
Administrator
Hero Member
Offline
Posts: 16931
|
 |
« Reply #3 on: June 05, 2008, 06:31:41 PM » |
|
Well, of course, you are not reading the instructions at the top of the view file  Try this: {mosmap width='350'|height='250'|lat='<?php echo $CustomFields->field('jr_ylat',$listing);?>'|lon='<?php echo $CustomFields->field('jr_xlong',$listing);?>'| zoom='20'| zoomType='Small'|zoomNew='0'|mapType='Satellite'| showMaptype='0'|overview='0'}
|
|
|
|
|
Logged
|
|
|
|
jmb
Newbie
Offline
Posts: 24
|
 |
« Reply #4 on: June 06, 2008, 03:57:37 AM » |
|
YES !!!  I read the instructions ... but I didn't understand. Sorry, I'm a newbie with Joomla/JR and my english not really top. Thanks a lot. Have a good day.
|
|
|
|
|
Logged
|
|
|
|
mrhiking
Jr. Member

Offline
Posts: 35
|
 |
« Reply #5 on: July 01, 2008, 02:49:17 PM » |
|
I used to be able to put this code into my details listing and pull maps on the fly
{mosmap address='<patTemplate:var name="jr_address" modifier="strip_tags" modifierType="php />'}
Is this not possible anymore?
|
|
|
|
|
Logged
|
|
|
|
Alejandro
Global Moderator
Administrator
Hero Member
Offline
Posts: 16931
|
 |
« Reply #6 on: July 01, 2008, 04:52:29 PM » |
|
Instead of: <patTemplate:var name="jr_address" modifier="strip_tags" modifierType="php /> You now need to write: <?php echo $CustomFields->field('jr_address',$listing,false);?> The 3rd parameter in the function (false) turns off the click2search in case it's enabled. It's the equivalent of the strip_tags modifier .
|
|
|
|
|
Logged
|
|
|
|
mrhiking
Jr. Member

Offline
Posts: 35
|
 |
« Reply #7 on: July 02, 2008, 11:06:53 AM » |
|
This worked great.
Problem was with my code editor.
Thanks for the help.
|
|
|
|
|
Logged
|
|
|
|
sko
Jr. Member

Offline
Posts: 25
|
 |
« Reply #8 on: July 23, 2008, 04:10:06 PM » |
|
i need little help plz. having probs to insert second value in this line:
{mosmap address='<?php echo $CustomFields->field('jr_plzort',$listing);?>}
jr_plzort = 31134 Hildesheim jr_strassehausnummer = Hohnsen 28
now it will show map with centerd at the city hildesheim postal code 31134. ok but how do i insert second value with street and number?
i read hole forum, but didnt find the answer...
or am i totally wrong with this code?
J1.54, latest jreviews, latest googlemap plugin.
|
|
|
|
|
Logged
|
|
|
|
Alejandro
Global Moderator
Administrator
Hero Member
Offline
Posts: 16931
|
 |
« Reply #9 on: July 23, 2008, 06:28:36 PM » |
|
{mosmap address='<?php echo $CustomFields->field('jr_plzort',$listing);?> <?php echo $CustomFields->field('jr_strassehausnummer',$listing);?>'}
You just need to repeat the code as many times as you want for as many fields as you want.
|
|
|
|
|
Logged
|
|
|
|
sko
Jr. Member

Offline
Posts: 25
|
 |
« Reply #10 on: July 24, 2008, 12:08:12 PM » |
|
super, this does it! THX! 
|
|
|
|
|
Logged
|
|
|
|
lavine
Newbie
Offline
Posts: 17
|
 |
« Reply #11 on: August 02, 2008, 08:21:34 PM » |
|
Has anyone had an issues using a code enabled field with a <br> like so:
10 NW 12th Ave.<br>Portland, OR 97209
When I do so it doesn't use the city, state, zip portion as expected. If I change it to so:
10 NW 12th Ave.,Portland, OR 97209
Everything works fine.
|
|
|
|
|
Logged
|
|
|
|
|
tenaki
|
 |
« Reply #12 on: August 03, 2008, 06:50:37 AM » |
|
I am going wrong somewhere. I have google maps plugin published In detail.thhtml I have custom fields and the following in the same page {mosmap width='350'|height='250'|lat='<?php echo $CustomFields->field('JR_COUNTY',$listing);?>'|lon='<?php echo $CustomFields->field('JR_POSTCODE',$listing);?>'| zoom='20'| zoomType='Small'|zoomNew='0'|mapType='Satellite'| showMaptype='0'|overview='0'} The map shows up but it shows what I think is the default lon and lat, somewhere in the netherlands I think Any ideas?
|
|
|
|
|
Logged
|
|
|
|
Alejandro
Global Moderator
Administrator
Hero Member
Offline
Posts: 16931
|
 |
« Reply #13 on: August 03, 2008, 08:47:19 PM » |
|
The first thing you need to do to troubleshoot this is to put the custom field code outside the plugin code to check what is actually being output. So this for example: <?php echo $CustomFields->field('jr_postcode',$listing);?> I think the problem might be the field names need to be lower case. Also make sure click2search is disabled.
|
|
|
|
« Last Edit: August 05, 2008, 08:27:38 PM by Alejandro »
|
Logged
|
|
|
|
|
tenaki
|
 |
« Reply #14 on: August 04, 2008, 02:36:45 PM » |
|
Not sure why but cap letters in the above doesn't work. I loose all field groups.
When I put the above code in using lowercase the custom field shows up fine
In the google map however, lowercase gives me a blank screen so I have to use caps?
Whatever way though, I only get a place somewhere in the Netherlands
|
|
|
|
|
Logged
|
|
|
|
|