I tried to reproduce your problem... But it works for me...
here is the code in my template:
($ImageList is an array I create in a PHP-file with
some images-parameters)
----------------------------------------------
<script>
function newwin(target)
{literal}
{
satellit = window.open(target,'wname', "scrollbars=yes,resizable=yes,width=470,height=500,left=50,top=50");
satellit.focus();
}
{/literal}
</script>
<a href=javascript:newwin('{$ImageList.0.path}');>hi</a>
------------------------------------------
Here is the resulting HTML-Code:
------------------------------------------
<a href=javascript:newwin('/var/storage/variations/image/p/h/p/phpOfm8ls_300x300_331561.jpg');>hi</a>
------------------------------------------ and this works fine.
Another thought: you may not nead the {literal} wrapper as the code you are wrapping doesn't contain curly braces ({}) except for the eZ publish code which you don't want interpreted as literal. So you may want to try removing the literal tags and use the eZ image path tag I posted earlier to see if it works.
Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
<i>When in doubt, clear the cache.</i>
You must be logged in to post messages in this topic!