<we:a edit="document">
Since version: 1.5.2 | Requires endtag: yes
Description
This attribute enables users to edit a webEdition document outside of webEdition on the web.
Specific
No we:tag is allowed between the start- and end-tag
Attributes
edit
Default value: - | since version: - | required: yes
Please use the attribute shop="true" instead of edit="shop" if you are not using webEdition 4.0 or later.
Allowed values:
- document
id
Default value: - | since version: 1.5.2 | required: yes
Set the value of this attribute to the ID of the document to which you would like to link. To link to the current document set this attribute to "self".
target
Default value: - | since version: 1.5.2 | required: no
Set this attribute to the name of the window or frame in which you want the link to open.
Allowed values:
- _top
- _parent
- _self
- _blank
confirm
Default value: - | since version: 2.2.0.0 | required: no
If this sttribute is set, a confirmation window will open which needs to be accepted before the link will execute. The text entered here will be displayed as confirmation text in the window.
button
Default value: false | since version: 2.2.0.0 | required: no
If this attribute is set to "true", the link will be displayed as a form button. The text between the start and end tags will be displayed as button text. If this attribute is set to false, the link will appear as a normal link instead of a form button.
Allowed values:
- true
- false
hrefonly
Default value: false | since version: 2.2.0.0 | required: no
Setting this attribute to "true" will cause the tag to return the href attribute of the link. Not setting it or setting it to "false" will cause the entire link to be displayed.
Allowed values:
- true
- false
class
Default value: - | since version: 2.0 | required: no
Set this attribute to the class name of the CSS style you want to use for the link.
style
Default value: - | since version: 2.0 | required: no
Set this attribute to one or more CSS-Style definitions. This enables you to influence the look and style of the link without defining a CSS-class.
editself
Default value: - | since version: - | required: no
If you set this attribute to "true", the link with the command to edit a webEdition document/object points to the current document/object.
Allowed values:
- true
- false
delete
Default value: - | since version: - | required: no
Setting this attribute to "true" tells the following page that the current webEdition document/object is to be deleted.
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:a edit="document" id="attribute" [target="_top|_parent|_self|_blank"] [confirm="attribute"] [button="true|false"] [hrefonly="true|false"] [class="attribute"] [style="attribute"] [editself="true|false"] [delete="true|false"] [cachelifetime="attribute"]> ... </we:a>
Examples
Example
<we:ifRegisteredUserCanChange admin="Perms_Admin" userid="ReportedFrom" type="listview"> <we:a edit="document" type="listview" id="311">Edit</we:a><br /> <we:a edit="document" confirm="Do you really want to erase your entry?" delete="true" type="listview" id="self">Erase</we:a> </we:ifRegisteredUserCanChange>