Active
Project:
Content Templates (Contemplate)
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2010 at 03:22 UTC
Updated:
8 Jan 2010 at 21:22 UTC
I need to put the following code into my template:
<script type="text/javascript">
var objLink = new myC_Remote.BuyLink();
objLink.LinkContent = "<img src=\"http://www.mydomain.com/images/remote_Print_this_Image_0.gif\" alt=\"Print this Image\" />";
objLink.IsAboveImage = true;
objLink.LinkClass = "field-items";
objLink.Render();
</script>
I need to check that there is an image attached to the node before this is called. How can I check for the existance of a valid field_image before executing this?
I know this is a lame support request, just hoping there is a friendly super-genius around willing to lend some brain cells to a rookie?
Comments
Comment #2
djudd commentedI got it figured out. Needed to close the tags is all.