Publish method: ImageTile class

Syntax

Publish()

Description

Use the Publish method to publish a new tile definition and to re-publish any modifications made to an existing tile definition. The initial publication of a tile definition creates the content reference link definition in the portal registry.

Important:

You must always save a new tile definition prior to publishing it.

Important:

This method will fail if any of these properties are undefined: ImageName, TargetCrefName, or Title. However, for a FreeTextTile, the Content property is required instead of the ImageName property.

Parameters

None.

Returns

None.

Example

import PTGP_APPCLASS_TILE:API:ImageTile;

Local PTGP_APPCLASS_TILE:API:ImageTile &t1 = create PTGP_APPCLASS_TILE:API:ImageTile("MY_TILE1");

/* Set required properties. */
&t1.Title = "My Image Tile";
&t1.TargetCrefName = "PT_SC_PERS_DICT_FL_GBL";  /* My Dictionary */
&t1.ImageName = "PS_PREFERENCES_L_FL";          /* My Preferences image */

&t1.Save();                                     /* For a new tile definition, a save is required. */
&t1.Publish();