Lightbox does not work with custom template

Everything to do with Joomla! 2.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
videl93
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Aug 18, 2012 2:25 pm

Lightbox does not work with custom template

Post by videl93 » Sat Aug 18, 2012 2:37 pm

Hi

We created a simple custom template and wanted to use a gallery extension (now we are using simple image gallery) to display images with a lightbox.
The joomla version is 2.5.6 and Simple Image Gallery 2.2.

The plugin itself seams to work, but it simply not shows a lightbox when clicking on a thumbnail. It just opens the image in a new tab.

With the default atomic template the lightbox works. It's a problem with our custom template we suppose. As the template only consists of the templateDetails.xml, index.php, template.css and a few images, the problem must either be in our index.php or in some joomla backend settings.

Here is our index.php:

Code: Select all

<?php
//No direct access.
defined('_JEXEC') or die;
JHtml::_('behavior.framework', true);
$app = JFactory::getApplication();
?>

<?php echo '<!DOCTYPE html>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
	<head>	
		<jdoc::include type "head" />
		<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
		<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />

	</head>
	<body>
		<div id="wrapper">

			<div id="head">
				<jdoc:include type="modules" name="header" style="xhtml" />
			</div><!--#head-->
			
			<div id="content">
				<div id="menu">
					<jdoc:include type="modules" name="top" style="xhtml" />
				</div><!--#menu-->	
				<div id="component">
					<jdoc:include type="component" style="xhtml" />
				</div><!--#component-->	
			</div><!--#content-->
			
			<div id="footer">
				<jdoc:include type="modules" name="footer" style="xhtml" />
			</div><!--#footer-->
		</div><!--#wrapper-->
	</body>
</html>
I hope someone can help us, we did search for a solution the whole day and we couldn't find anything...

regards
videl

videl93
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Aug 18, 2012 2:25 pm

Re: Lightbox does not work with custom template

Post by videl93 » Thu Aug 23, 2012 4:18 pm

*bump*

No one has a solution?

Edit:

Solution was to change <jdoc::include type "head" /> to <jdoc:include type="head" />

Head meets table...


Locked

Return to “Templates for Joomla! 2.5”