Skip to main content

Knowledge Base

Go Search
Home > Support > Knowledge Base > Pages > 9608.aspx  

Set a Page Image field using the Set List Item Data task 
Category: How-to 
Applies to: Kivati Studio 

This article describes how to set data in SharePoint publishing fields created with the Page Image field type.

Details

The Page Image field type can be used with SharePoint publishing pages to display images on your pages.  The SharePoint user interface displays two properties for this field:

  • Image.  The URL of the image to display.
  • Alternate text.  Alternate text to associate with the image.

To set one of these fields using the Set List Item Data task, you must provide a valid HTML value for this field of the form:

<img src="image.gif" alt="my alt text" border="0" />

Where "image.gif" is the server-relative path to the image to display, and "my alt text" is the alternate text you want to display.

More Information

If you require it, you can also add other HTML tags in this field, such as wrapping the <img> tag with an <a> tag to create a hyperlink.  In our testing, we've found that any valid HTML will work with this field, but you may experience different results and HTML you insert may not be supported by SharePoint.

Last update: 5/1/2008 
Copyright 2000-2008 Kivati Software, LLC.
Home| Support| Terms of Use| Privacy| Legal