Creating link from module to open map with lightbox

Phoca Maps - displaying maps in Joomla! CMS
dergy
Phoca Member
Phoca Member
Posts: 15
Joined: 09 Nov 2011, 00:03

Creating link from module to open map with lightbox

Post by dergy »

I have installed on Joomla 2.5.20 your Phoca Maps Component 2.0.6 and Phoca Maps Plugin 2.0.5
I don't know, how to creating link from my address module to open in Light/Slimbox.
My Created Map is stored with ID1
Please and thanks for help answer.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Creating link from module to open map with lightbox

Post by Jan »

Hi, try to add the plugin code the the module, if there is a place to accept content plugins:
https://www.phoca.cz/documents/16-joomla ... t-articles
Jan
If you find Phoca extensions useful, please support the project
dergy
Phoca Member
Phoca Member
Posts: 15
Joined: 09 Nov 2011, 00:03

Re: Creating link from module to open map with lightbox

Post by dergy »

Jan, I have made exactly but my opened lightbox is empty; display only background without created map.
I added in my module this code and accepted prepared content

Code: Select all

{phocamaps view=link|id=1|text=My Address}
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Creating link from module to open map with lightbox

Post by Jan »

Hi, empty can mean a php error, try to enable php error reporting to see if there is no php error - try to test the javascript errors too, they can prevent from displaying the map.
https://www.phoca.cz/documents/16-joomla ... rs-on-site
https://www.phoca.cz/documents/16-joomla ... -conflicts
Jan
If you find Phoca extensions useful, please support the project
dergy
Phoca Member
Phoca Member
Posts: 15
Joined: 09 Nov 2011, 00:03

Re: Creating link from module to open map with lightbox

Post by dergy »

Report me this error, but I don't know what to do
Error:
/var/www/vhosts/xxxxxxxx.xx/httpdocs/components/com_content/router.php on line 48

line 48 content this:

Code: Select all

	if (($menuItem instanceof stdClass) && $menuItem->query['view'] == $query['view'] && isset($query['id']) && $menuItem->query['id'] == intval($query['id'])) {
		unset($query['view']);

		if (isset($query['catid'])) {
			unset($query['catid']);
		}
		
		if (isset($query['layout'])) {
			unset($query['layout']);
		}

		unset($query['id']);

		return $segments;
	}
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Creating link from module to open map with lightbox

Post by Jan »

Hi, which error you exactly get? Do you get some concrete error message?

Jan
If you find Phoca extensions useful, please support the project
dergy
Phoca Member
Phoca Member
Posts: 15
Joined: 09 Nov 2011, 00:03

Re: Creating link from module to open map with lightbox

Post by dergy »

i don't know, but this time work. But exist other problem. See image - why display top and left empty place and not display all map.

Image
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Creating link from module to open map with lightbox

Post by Jan »

Hi, when you test it with standard template, do you get the same problem?

Jan
If you find Phoca extensions useful, please support the project
dergy
Phoca Member
Phoca Member
Posts: 15
Joined: 09 Nov 2011, 00:03

Re: Creating link from module to open map with lightbox

Post by dergy »

I tested on all joomla 2.5 default templates, but not display properly

Image on beez5 template
Image on beez20 template
Image on atomic template
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Creating link from module to open map with lightbox

Post by Jan »

Hmmm, really no idea what can be wrong there, testing here:

https://www.phoca.cz/demo/phoca-maps-demo-plugin

click the last link: Some Link To Map - everything is aligned properly, the same if looking at the code.

Try to recheck some of the plugins and modules which are loaded on the site at the same time like the map, if there is no conflict with maps css (which is possible, when e.g. some module loaded own css and it is somehow in conflict with the maps css) :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply