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("h

Any issue ? Thanks, Franck

Comments

franckdg’s picture

I 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.

franckdg’s picture

Issue summary: View changes

furnished: a wrong friend that doesn't mean what i think