google map code getting filtered out

General project discussion. NOT for help questions.
Post Reply
Alpdog14

google map code getting filtered out

Post 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.
michi1979

Re: google map code getting filtered out

Post by michi1979 »

Try to use the {literal} Tag around your code.

For example:

{literal}

View Larger Map
{/literal}

Greetings,
Michael
Alpdog14

Re: google map code getting filtered out

Post 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.
Alpdog14

Re: google map code getting filtered out

Post by Alpdog14 »

Oh I got it, I just had to save it while the WSYWIG was unchecked.
michi1979

Re: google map code getting filtered out

Post 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
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: google map code getting filtered out

Post 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.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
Post Reply

Return to “General Discussion”