Lightnote CMS - web 2.0 content management system

ImagePosition

This controls lets user to specify position of image.

On this page

XML Configuration

Element name: image_position

Attribute Name Type Required Default Description
name String Yes n / a Variable name of user control. Which you can use whether in your template file, or in your extension.
friendlyName String No n / a Control's friendly name displayed in CMS backend.
positions String No "in-text-t, in-text-tr, near-text-tc, near-text-bc, near-text-tl, near-text-tr, behind-text-tl" Image positions displayed to user, between which he can select.

Following image positions are supported:

Image Name Description
in-text-tl in-text-tl In text, top left
in-text-tr in-text-tr In text, top right
near-text-tc near-text-tc Near text, top center
near-text-bc near-text-bc Near text, bottom center
near-text-tl near-text-tl Near text, top left
near-text-tr near-text-tr Near text, top right
behind-text-tl behind-text-tl Behind text, top left
<userControls>
    <image_position name="imagepos" friendlyName="Image Position" 
     positions="in-text-tl,in-text-tr"></image>
</userControls>

PHP class

Variables
$positions

Image positions displayed to user, between which he can select.

Type
array