Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Image Property View modes: 
User avatar
Member
Member
mcross-epic-premier - 6/19/2012 2:03:19 PM
   
Image Property
version 5.0.3656

I'm wanting to assign an attribute to an image so that no matter where I put the image in my site, it will always take the user to the same link when clicked on.

I'm utilizing the "Editable Image" webpart to place the image throughout the website. Under the properties tab on the image, if in the Menu selection I populate the Javascript command with a command, will that image then always carry that attribute with it wherever I insert that image?

For example, I have an image that when clicked on I want it to go to another website. So if I put <a href=http://www.google" target=”_blank”> in that images javascript command, when that image is clicked on, will the user be taken to www.google.com in a new window? And will that happen wherever I put that image in an Editable Image webpart?

User avatar
Kentico Support
Kentico Support
kentico_janh - 6/20/2012 2:56:21 AM
   
RE:Image Property
Hello,

No, the Javascript command property in the Menu section is for the document and its menu item. The issue you are describing can be done by Content before and after properties of that Editable image web part, so you can just fill them with:

Content before: <a href=http://www.google" target="_blank">

Content after: </a>


Best regards,
Jan Hermann