Monday 05 January 2004 10:26:27 am
If you want a popup, best use some simple javascript mixed with template code like
-----------------------------------------------
.... <h3><a href="#">Preview <img src={"viewmag+.gif"|ezimage} onClick='OpenWindow({$node.object.data_map.preview.content[original].full_path|ezroot},"image_preview","scrollbars,resizable");'></a></h3> ------------------------------------------------------ you will probably need to change preview to the attribute name of your image. viewmag+.gif is just an icon i borrowed from a KDE distribution and converted to gif (for IE transparancy) the OpenWindow javascript function called is found in the default pagelayout in the demo's:
<script language="JavaScript"> <!--
function OpenWindow ( URL, WinName, Features ) {
popup = window.open ( URL, WinName, Features );
if ( popup.opener == null ) {
remote.opener = window;
}
popup.focus(); } // --> </script> hth -paul
eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans
|