Wählen Sie Ihre Sprache:

<we:delete type="object">

Since version: 2.2.0.0 | Requires endtag: no

Description

This tag is used to delete objects accessed via <we:a edit="object" delete="true">.

Specific

Note: Only use these tags with a customer modules and the attributes "admin" or "userid" combined with a "doctype", "pid" or "classid". Not following this warning could theoretically allow mallicious web users to delete webEdition documents and objects.

Attributes

type

Default value: - | since version: 2.2.0.0 | required: yes

Setting this attribute to "document" indicates to webEdition that a document is to be deleted. Setting this attribute to "object" indicates to webEdition that an object is to be deleted.

Allowed values:

  • object

classid

Default value: - | since version: 2.2.0.0 | required: no

webEdition will only allow objects of class "classid" to be deleted by this tag; therfore, set this attribute to the ID of the class in which this tag may delete objects.


userid

Default value: - | since version: 2.2.0.0 | required: no

webEdition will only allow a document to be deleted if the document contains the field <fieldname> and the <fieldname> contains the used ID of the user attempting to erase the document. Therefore, set this attribute to the name of the field in a target document that contains the user ID.


admin

Default value: - | since version: 2.2.0.0 | required: no

Using the customer module pro you can add a field to the details about a user. webEdition will only allow document and objects to be deleted if the field "fieldname" contains a non zero value and is not empty.


forceedit

Default value: - | since version: 3.4.0.7 | required: no

If set to "true", the document is deletable even without the customer-management module (PRO) installed.

Allowed values:

  • true
  • false

mail

Default value: - | since version: 2.2.0.0 | required: no

Set this attribute to an email address if someone should be notified when a document or object is deleted.


mailfrom

Default value: - | since version: 2.2.0.0 | required: no

Set this attribute to the email address that should appear as sender in the notification mail. This tag only operates if the "mail" attribute is set.


charset

Default value: - | since version: 2.2.0.0 | required: no

Set this attribute to the encoding standard for the notification email. Default encoding is "iso-8859-1". This attribute only operates if the attribute "mail" is set.


pid

Default value: - | since version: - | required: no

webEdition will only allow this tag to delete objects that are in the directory with id="<pid>"; therfore, set this attribute to the ID of the directory in which this tag may delete items.


protected

Default value: - | since version: 5.1.0.0 | required: no

Allowed values:

  • true
  • false

Syntax

<we:delete type="object" [classid="attribute"] [userid="attribute"] [admin="attribute"] [forceedit="true|false"] [mail="attribute"] [mailfrom="attribute"] [charset="attribute"] [pid="attribute"] [protected="true|false"] />

Examples

Example

<we:ifRegisteredUser permission="Perms_write">
   <we:delete type="object" userid="Creator" admin="Perms_admin" mail="info@domain.de"/>
</we:ifRegisteredUser>

Example

<we:ifRegisteredUser permission="Perms_write">
   <we:delete type="object" userid="Creator" admin="Perms_admin" mail="info@domain.de"/>
</we:ifRegisteredUser>