×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Generate stand alone maps

Generate stand alone maps 9 years 5 months ago #29193

  • Erwin de Wolff
  • Erwin de Wolff's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 74
  • Thank you received: 0
Hi there,

Would it be possible to generate a standalone google map without showing the whole joomla website?
For example, if you press on the full-screen button, you see that card only.
The reason for asking, is that I want to include this map in my facebook-page through an iFrame, but it does not need to show the whole (joomla) site, only the map.

Kind Regards,

Erwin

Generate stand alone maps 9 years 5 months ago #29216

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Erwin,
Well, you can do that already! The magic of joomla!
docs.joomla.org/Understanding_Joomla!_templates - have a look at what it says about component.php
This file is responsible in general for the print view. All you need to do is add ?tmpl=component to the url and joomla will load the component in this print friendly view without any navigation etc. Here is our demo page.

You can also do something more fancy. Like create your own map.php file in the template folder -> style the output as you want. And then you could add ?tml=map and joomla will use this file to load the map. (just an idea)

Cheers,
Daniel

Generate stand alone maps 9 years 5 months ago #29217

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Not all component.php files are written correctly. Those files come with the template. Some template providers tend to add some more stuff to them (like button, etc). If you have such template, then you'll have to do the trick that I explained above about the map.php file.

Generate stand alone maps 9 years 5 months ago #29222

  • Erwin de Wolff
  • Erwin de Wolff's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 74
  • Thank you received: 0
Hi Daniel,

Great to hear! I'm going to dig into that,

Kind Regards,

Erwin

Generate stand alone maps 9 years 5 months ago #29234

  • Erwin de Wolff
  • Erwin de Wolff's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 74
  • Thank you received: 0
Hi Daniel,

Got it to work, just created a map.php and stripped it down and now it creates a very nice stand alone page :)
Thanks!

Kind Regards,

Erwin
  • Page:
  • 1
Time to create page: 0.157 seconds