1 vote

Simple Image Display

Not much to say really, this is such a simple macro I wasn't even going to add it to the projects section but was told it was good for beginners.

This is a really simple user control which you can use to display images, you just pass in the image URL and other optional values explained below.  Its really simple, and if it has a property value will display the image, but also add an optional hyperlink, class or alt tag.

property value will display the image, but also add an optional hyperlink, class or alt tag.

    * PropertyName – This is the image URL, I use this macro most for the upload property by simply passing in the property inline like so [#UploadPropertyName].

    * OptionalClass – If you want to add an optional CSS class to the image.

    * OptionalURL – If you add a URL into this field, it simple wraps the image with a hyperlink.

    * altTag – If left empty it will just add a blank alt=””

If no Image property is passed in, the image is not displayed.

No current release

Package owner

Lee

Lee

Lee has 3088 karma points

Package Information

  • Package owner: Lee
  • Created: 06/10/2009
  • Current version 1
  • License MIT
  • Downloads on Our: 0

External resources