PDA

View Full Version : CMS Widget in Article Only


SurfTalk
03-26-2010, 09:09 AM
Hi,

Wonder if anyone can advise. I'd like to create an article in vB4 CMS that contains a widget within the article. I don't want this widget to appear on any other CMS pages, ie the side-bars etc. Is it possible to do this with the standard vB4? Or is there a mod that would allow me to do this? Really appreciate any help. Thanks.

King Kovifor
03-27-2010, 03:20 AM
I do not believe that is currently available as a modification and/or default functionality. This would require the permission to run raw PHP scripts within an article. What is your final goal?

SurfTalk
03-28-2010, 10:10 AM
Hi the reason I was considering this is that I'm trying to run a KML (Google Earth) viewer in a CMS article. The problem that I have, is that if I just embed the code in the CMS, the viewer does not display properly. Wierdly, if I create a widget using exactly the same code, the KML viewer works absolutely fine. The problem is, I don't want the Google Earth viewer to appear on every CMS page, as it would do with a widget at the moment, I only want it to appear on one page.

I hope that answer isn't too confusing! Do you have any idea why a widget would handle the embed code any differently to the CMS? Thanks :)

King Kovifor
03-28-2010, 08:46 PM
Is the code HTML? How does it show? Providing screenshots would be helpful. If it is HTML, it could be as simple as enabling your usergroup (hoping only Administrators) to post HTML within Articles. Although, I find this highly inadvisable.

SurfTalk
03-29-2010, 08:34 PM
Hi, this is the code: <script src="http://www.gmodules.com/ig/ifr?url=http://code.google.com/apis/kml/embed/embedkmlgadget.xml&amp;up_kml_url=http%3A%2F%2Fwww.sur ftalk.co.uk%2FWorld_Tides.kmz&amp;up_view_mode=earth&amp;u p_earth_2d_fallback=0&amp;up_earth_fly_from_space=1&amp;up _earth_show_nav_controls=1&amp;up_earth_show_buildings =1&amp;up_earth_show_terrain=1&amp;up_earth_show_roads=1&amp;u p_earth_show_borders=1&amp;up_earth_sphere=earth&amp;up_ma ps_zoom_out=0&amp;up_maps_default_type=map&amp;synd=open&amp;w =600&amp;h=600&amp;title=Embedded+KML+Viewer&amp;border=%23fff fff%7C0px%2C1px+solid+%2382CAFA%7C0px%2C2px+solid+ %23BDEDFF%7C0px%2C3px+solid+%23E0FFFF&amp;output=js"></script>

Administrators have permission to post HTML within CMS articles on the website. If I embed the above code in a CMS article, the KML viewer is displayed, but none of the placemark data (the green pins) is displayed.

http://www.surftalk.co.uk/In%20CMS%20article.JPG

If I take exactly the same code, and embed it on for example my blog, it works fine - all the placemark data is there (the green pins).

http://www.surftalk.co.uk/On%20Blogger.JPG

The placemark data is pulled from the KMZ file which is held on my server.

As it's exactly the same code, i don't understand why it's handled differently within the vB CMS? been puzzling this for weeks!:eek: