Active
Project:
Lightbox2
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2013 at 15:17 UTC
Updated:
21 Mar 2013 at 16:52 UTC
Hello,
Using lightmodal D7, Lightbox2 7.x-1.x-dev with a link :
<a href="node/71/lightbox2" rel="lightmodal[|width:800px; height:500px; scrolling: auto;]">test</a>
the provided template page--node--lightbox2.tpl.php does not render anything. As mentionned on forum, replacement of the code by the one of page.tpl.php works but the meta, link, title and style tags are not cleared. So we have for example :
<div id="modalContainer" style="padding: 10px; width: 800px; height: 500px; z-index: 10500; display: block;">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="http://...misc/favicon.ico" type="image/vnd.microsoft.icon">
<link rel="shortlink" href="node/71">
<link rel="canonical" href="content/mapage">
<meta name="Generator" content="Drupal 7 (http://drupal.org)">
<title>titre de la page|site de test</title>
<style type="text/css" media="all">@import url("http://...modules/system/system.base.css?mjv2y6");
@import url("hAny issue ? Thanks, Franck
Comments
Comment #1
franckdg commentedI finally find it.
Meta, link, title, style & script are coming from the upper tpl : html.tpl.php
meta & link : print $head
title : print $head_title
style : print $styles
script : print $scripts
Now the question is why when using lightmodal, the content of the overlay is similar to the one of an iframe ?
In the modal DIV (
Is it possible to block the processing of the html.tpl.php ? I am surprised that nobody has encountered this problem.
Comment #1.0
franckdg commentedfurnished: a wrong friend that doesn't mean what i think