Monday 20 June 2005 2:19:55 am
Hi, the problem is, that with this solution there are no html-tags around the image in the popup window, like e.g. a close button or copyright data. What I did is, creating a new layout (like printlayout):
[popup_img]
PageLayout=popup_img_pagelayout.tpl
And the code for popup_img_pagelayout.tpl is:
<html>
<head>
{include uri="design:page_head.tpl" enable_link=false() enable_glossary=false() enable_help=false()}
<style>
@import url({"stylesheets/popup.css"|ezdesign});
</style>
</head>
<body>
<a href="JavaScript:close_popup();">
{let actual_node=fetch( content, node, hash( node_id, $module_result.node_id ))}
{node_view_gui view=full content_node=$actual_node}
{/let}
</a>
</body>
</html>
Calling the popup window inside the line view with the following statement:
{section show=$node_obj.object.data_map.imagelarge.content.is_valid}
{let imagelarge=$node_obj.object.data_map.imagelarge.content['original']}
<a href=JavaScript:showImg({concat("/layout/set/popup_img/",$node_obj.object.main_node.url_alias)|ezurl},"{$imagelarge.name}","{$imagelarge.width}","{$imagelarge.height}")><img src={"magnifier.gif"|ezimage} width="22" height="20" border="0"></a>
{/section}
|