HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Google Map Catalogue Addin

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#99956 (In Topic #19621)
Avatar

Well-settled

Hello all,

Can the Google Map Catalogue Addin module be changed to get it's information from a calendar event?

It would be great if some set a Wedding event in the calendar and users can get a Google map of where the wedding would be at?


Thanks,

Robert W
Back to the top
 
Posted
Rating:
#99958
Avatar

Community saint

Yes, but it would be a lot simpler and more logical to make a custom comcode tag to display arbitrary maps.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#99973
Avatar

Well-settled

Thank you temp1024 for your response,

I have placed the Google map as a custom comcode and it still does not provide what I want, even thou I did like it.

Doing that does provide any user to my site to enter an address and have the results displayed on the map. But that is not want I want.

Let me explain it again (more clearly)

1)      A user (Tom) on my site is getting married and would like to use my site as place that people
         can go to get information.

2)      Tom creates a calendar event announcing his wedding.
     A)     Enters the address of the wedding location.

Now when a user (Wedding guest) visits the site and looks at Tom’s wedding event, he gets a map of where it’s at and the address of the location but the guest cannot change the map (Tom is the only one allowed to do that).

The bottom line is that I want users to be able to create their wedding event (announcement) as painless and as easy possible.

Looking at the ocPortal db, I see that the “_event” is a Catalogue. Knowing that, what files would I modify  to:
            A)     Have the Map display in the Event page
            B)      To change where the Google map in the event page looks for the Address.

As a thought about the Addon's that ocPortal has on the Google maps, I think it would be easier and safer for users to enter an address or a location (ex: Sunrise, Fl.) than enter the latitude longitude information.
That way, for people that do not want others to know where they live (the latitude longitude information would give them that) they could just enter the “Town and State” or the correct wording for their part of the world.
 
Again thank for your input,
 
Robert W
Back to the top
 
Posted
Rating:
#99976
Avatar

Community saint

Robert W said

I have placed the Google map as a custom comcode and it still does not provide what I want, even thou I did like it.
I suspect that what you have done is just taken the embed code from the google maps page and put that in the comcode tag essentially as-is.

Robert W said

The bottom line is that I want users to be able to create their wedding event (announcement) as painless and as easy possible.
With what I am suggesting all that Tom would have to do is put something like:

Code

[map]27 Nob Hill Lane, Sunrise, FL[/map]
in the calendar event, and no one will be able to change that.

Making that map comcode is relatively straight forward. I might take a look at it tomorrow if I have time.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Item has a rating of 5 (Liked by Chris GrahamLiked by JeanLiked by Fletch)  
Rating:
#99979
Avatar

Community saint

OK, I have created two comcode tags for you to chose from.

Expand: 1) A basic map that will show the location. 1) A basic map that will show the location.

Expand: 2) A map with direction field if the guests need directions to the wedding. 2) A map with direction field if the guests need directions to the wedding.

In both cases, Tom would just enter:

Code

[map]27 Nob Hill Lane, Sunrise, FL[/map]
in the event.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#100041
Avatar

Well-settled

Temp1024,

Thank you for making these comcode tags, It took me awhile to get things working, You now opened up a whole new world of ocPortal to me.
ocPortal is new to me and I’m learning every day.
Is there a way that I can get my event area to display wider?

Below is the way is shows now.

Current layout

Below is how I would like to see it. I did this through firebug, but cannot find where I need to do this in ocportal.

New Layout

Again Thank you for helping,

Robert W.
Back to the top
 
Posted
Rating:
#100042
Avatar

Community saint

Robert W said

Is there a way that I can get my event area to display wider?
Just modify the template. Its probably CALENDAR_EVENT_SCREEN.tpl .

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#100064
Avatar

Well-settled

Got it working now.

Thanks for all your help.

Robert W
Back to the top
 
Posted
Rating:
#100066
Avatar

Community saint

That's great Robert.

Out of curiosity, did you end up using the map with direction or without?

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#100071
Avatar

Well-settled

Using the one where you can get driections.

Also, I have the user enter the Address between the "[map]" tags, is that correct?

I would like to hide the tags if I could.

Robert W
Back to the top
 
Posted
Rating:
#100082
Avatar

Community saint

Robert W said

Also, I have the user enter the Address between the "[map]" tags, is that correct?
Correct, if map is the name of the tag you created.

Robert W said

I would like to hide the tags if I could.
Not sure what you mean. Can you give me an example?

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#100096

Honoured member

Hey temp1024, Wow! Thanks for this.  I've needed something like this for a long time.  I've been using a chunk of html I found some where and have just never got around to making a custom comcode tag out of it.  Yours sure beats what I've been using hands down. As you can see below, what I've been using only placed a form on the page to enter your starting address.  It has no accompanying map with it at all.

Code

[html]
<form action="http://maps.google.com/maps" method="get" target="_blank">
Enter your starting address:
<input type="text" name="saddr" />
<input type="hidden" name="daddr" value="234 Cahaba Valley Rd, Pelham, AL 35124" />
<input type="submit" value="get directions" />
</form>
[/html]
Back to the top
 
Posted
Rating:
#100099
Avatar

Community saint

Happy to help out :thumbs: .

I forgot to mention a feature of the directions map. Its configured so that route between the two points can be changed simply by moving any points(s) on the route onto a new road(s), and a new route and directions will automatically be generated.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#100104
Avatar

Well-settled

By hiding the tags, I mean that the end user will not see it in the field.

Ex:

Address: [map] Enter address here [/map]

To

Address:


Robert W
Back to the top
 
Posted
Rating:
#100111
Avatar

Community saint

The end user should never see a tag in the field. The tag is only ever seen by the person entering it.

Do you have a link to an example?

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#100112
Avatar

Well-settled

I meant to say the end user that is setting up the "event". anyone else that views the event does not see the tag.

It's OK, I just hope that the person creating the "event" follows directions and leaves the tags.

Robert W
Back to the top
 
Posted
Rating:
#100113
Avatar

Community saint

Given that you have a dedicated "map of event field" it should be possible to modify the CALENDAR_EVENT_SCREEN template so that it will assume that if that field is not empty that it contains an address, and it will automatically display it as a map, and the person entering the  event details will never see the map tag.

I know roughly what needs to be done code wise but don't have a v9 install to play with, and have never used the calendar system.

If any other members want to take on this challenge, let me know and I post a rough coding guide.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#100121
Avatar

Well-settled

In creating the field you also need to select the field type. maybe having a Tag as an option and if selected, you would need to assign the tag  to that field.

that could work?


Robert W
Back to the top
 
Posted
Rating:
#100123
Avatar

Community saint

Yes that will work but it would requires system level changes which is a lot more complex and could be far reaching.

If system level changes were done I'd rather there be field wrapper option instead of adding a field type. It should be less impact system-wide and more flexible.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: