First Umbraco Package!
OK, its simple, but we needed to let a client insert Google Maps into content areas via the Rich Text Editor in Umbraco. Macro to the rescue!
Package: Google_Map_Macro_for_the_Rich_Text_Editor__1.0.zip
After installing the package, you should be able to insert a new Google Map in the Rich Text Editor by doing this:
1. Find your location in Google Maps.

2. Copy the link from the “Link” button on the far right above the map to the clipboard:

3. Go to the Rich Text Editor in the Umbraco admin area where the Google Map should be inserted.
4. Click the “Insert Macro” toolbar button ![]()
5: Select the “Google Map” macro from the Insert Macro popup.
6. Set the width, height, and paste the link from step 2:

7. Save and publish and view the map in the web site.
Personally I think simple Macros are sometimes the most useful things
Good job – Thanks
Thanks Lee!
BTW, I voted for you for MVP
Hi, I just installed this package into Umbraco v4.7. Once I insert the macro into my post I get this error message:
————————————————
Server Error in ‘/’ Application.
A potentially dangerous Request.Path value was detected from the client (&).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: A potentially dangerous Request.Path value was detected from the client (&).
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
————————————————
However if I go ahead and save/publish the document everything seems to be working just fine. Is there an issue with v4.7 or do I have bigger issues?
Thanks for the heads up. I’ll test it in 4.7 and get back to you.
Yea, I see that as well. I’m guessing its a .NET 4 issue.
Go to the Macro “Google Map” in the Developer section and uncheck “Render content in editor”. That will prevent the error from displaying in the Rich Text Editor after you drop it in.
Hi Jason
This works a treat, thanks so much. I tried making my own but failed, well I’m still VERY new to all this!
Just to let you know I’m running Umbraco 4.7 and it doesn’t throw any error and renders fine on both the site and when adding the macro to a text page
Cheers again
Lea
Thanks Lea! Glad it worked out for you.
Hi Jason
Not sure why my last post didn’t show, but I just wanted to let you know that I tested it in 4.6 (all fine) rather than 4.7 as I mentioned above! But then in 4.7 and it did error (although different to that mentioned above). I simply navigated away from the page with the macro embedded, and came back to find the typical yellow dotted lines representing your macro. Content wasn’t rendered even though I had render content enabled.
However, the resulting page displays perfect…
Cheers – and thanks again
Lea
Hello all,
Pardon me if this is a very dumb question. I am very new to Umbraco. I am confused as to where I need to put the xml file that comes as part of the the zipped folder.
Actually, don’t unzip the package. Just go to the Developer section in the Umbraco Admin and Install a new package. Then browse to that zip package and Umbraco will take care of it.
Thanks,
Jason
This worked perfectly. Thanks!