Page 1 of 1
google map code getting filtered out
Posted: Thu Nov 13, 2008 8:06 pm
by Alpdog14
I was wondering why the google code that I copy into the HTML editor of the Content box gets filtered out so it does not show the interactive map. I was able to apply this code in the older versions of CMSMS but not after the upgrade. Here is the code I am trying to use:
View Larger Map
Please let me know what I need to do.
Re: google map code getting filtered out
Posted: Thu Nov 13, 2008 10:43 pm
by michi1979
Try to use the {literal} Tag around your code.
For example:
{literal}
View Larger Map
{/literal}
Greetings,
Michael
Re: google map code getting filtered out
Posted: Thu Nov 13, 2008 10:51 pm
by Alpdog14
Hi Michael,
I tried using the {literal} tags but CMSMS still strips out most of the code. After I try to insert the code in the HTML editor and save it, it reduces it to:
{literal}
View Larger Map {/literal}
I was able to get the google image to appear by unchecking the WYSIWIG pasting the code in and then checking the box again but then as soon as I Apply or save it strips it again. Any other ideas? Thanks for trying to help me. I appreciate it.
Re: google map code getting filtered out
Posted: Thu Nov 13, 2008 10:52 pm
by Alpdog14
Oh I got it, I just had to save it while the WSYWIG was unchecked.
Re: google map code getting filtered out
Posted: Thu Nov 13, 2008 10:58 pm
by michi1979
Great to hear
Why do you use ?
I've embedded google maps directly into a few websites including driving directions.
Works great for me.
Michael
Re: google map code getting filtered out
Posted: Fri Nov 14, 2008 4:04 pm
by tyman00
If you want to display quick and simple Google maps try checking out cgSimpleGoogleMaps. It is really easy to work with and you don't have to worry about setting Google's code each time you want to display a map.
It wasn't CMSMS that was stripping out the tags... it was the WYSIWYG. They are designed to make everything web happy and don't know the difference between symbols you want to be displayed as a character or if it is part of code.