<we:img>
Since version: 1.5.2 | Requires endtag: no
Description
The we:img tag is required to insert an image into the content of the page. In edit mode, you can see an edit button. Clicking on the button will launch a file manager, which allows you to select an image that has been uploaded to or set up in webEdition. If the attributes "width", "height", "border", "hspace", "vspace", "alt", or "align" are set up, these attributes will be used for the image. Otherwise, the settings made for the image are in effect. If the attribute ID is set up, the image will be used with this ID if no other image has been selected. The attribut showimage allows to hide the image itself in edit-mode, only the control buttons are visible then. With showinputs the input fields for alt and title can be deactivated.
Attributes
name
Default value: - | since version: 2.0 | required: yes
Set this attribute to a unique name from within webEdition.
only
Default value: - | since version: 4.0 | required: no
Allowed values:
- width
- height
- alt
- src
id
Default value: - | since version: - | required: no
Set this attribute to the ID of the image to be preselected.
width
Default value: - | since version: - | required: no
Set this attribute to the width of the image.
height
Default value: - | since version: - | required: no
Set this attribute to the height of the image.
border
Default value: - | since version: - | required: no
Set this attribute to the border strength of the image.
hspace
Default value: - | since version: - | required: no
Set this attribute to the horizontal spacing of the image.
vspace
Default value: - | since version: - | required: no
Set this attribute to the vertical spacing of the image.
alt
Default value: - | since version: - | required: no
Set this attribute to the text to be displayed as the "alt" attribute of the HTML img-tag on the generated page.
title
Default value: - | since version: - | required: no
Set this attribute to the title of the image.
startid
Default value: 0 | since version: 4.0 | required: no
This attribut defines the directory which should be opened first if no image ist selected
parentid
Default value: 0 | since version: 4.0 | required: no
With setting this attribute you could define wich directory is the root dir for the selection of this image.
align
Default value: - | since version: - | required: no
Set this attribute to define the orientation of the image relative to its surrounding elements.
Allowed values:
- left
- right
- top
- bottom
- absmiddle
- middle
- texttop
- baseline
- absbottom
thumbnail
Default value: - | since version: - | required: no
Use this attribute to show a thumbnail instead of the original image. To do so, set the attribute to a value you have previously defined in the webEdition settings under thumbnail
showcontrol
Default value: - | since version: 3.0.0.0 | required: no
Setting this attribute to "true" or not setting it at all displays the "Select Image" and "delete" Buttons. Set it to "false" to hide these buttons.
Allowed values:
- true
- false
showimage
Default value: - | since version: - | required: no
Allowed values:
- false
xml
Default value: - | since version: - | required: no
Setting this attribute to "true" generates code conforming to the XHTML standard. Leaving it unset or setting it to "false" generates HTML code.
Allowed values:
- true
- false
showinputs
Default value: - | since version: - | required: no
Allowed values:
- true
- false
cachelifetime
Default value: 0 | since version: 4.2.0.0 | required: no
With this attribute you define the validity of the Cache in seconds for this we:Tag. This attribute is used only if cache type defined in the template is we:Tag Cache or Cache is disabled.
Syntax
<we:img name="attribute" [only="width|height|alt|src"] [id="attribute"] [width="attribute"] [height="attribute"] [border="attribute"] [hspace="attribute"] [vspace="attribute"] [alt="attribute"] [title="attribute"] [startid="attribute"] [parentid="attribute"] [align="left|right|top|bottom|absmiddle|middle|texttop|baseline|absbottom"] [thumbnail="attribute"] [showcontrol="true|false"] [showimage="false"] [xml="true|false"] [showinputs="true|false"] [cachelifetime="attribute"] />
Examples
new Example