Page 1 of 1

Creating link from module to open map with lightbox

Posted: 23 May 2014, 12:16
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.

Re: Creating link from module to open map with lightbox

Posted: 24 May 2014, 01:37
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

Re: Creating link from module to open map with lightbox

Posted: 16 Jun 2014, 12:34
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}

Re: Creating link from module to open map with lightbox

Posted: 16 Jun 2014, 20:55
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

Re: Creating link from module to open map with lightbox

Posted: 17 Jun 2014, 00:24
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;
	}

Re: Creating link from module to open map with lightbox

Posted: 17 Jun 2014, 23:44
by Jan
Hi, which error you exactly get? Do you get some concrete error message?

Jan

Re: Creating link from module to open map with lightbox

Posted: 21 Jun 2014, 12:40
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

Re: Creating link from module to open map with lightbox

Posted: 22 Jun 2014, 22:52
by Jan
Hi, when you test it with standard template, do you get the same problem?

Jan

Re: Creating link from module to open map with lightbox

Posted: 23 Jun 2014, 00:11
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

Re: Creating link from module to open map with lightbox

Posted: 24 Jun 2014, 22:32
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