DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

userCategory:

Properties of each user element category.

load

Property

load

Data type

string

Description

If set, the a predefined set of user element is loaded into this category. They are always loaded in the key starting with 100 and then forward in steps of 10.

Current options are:

"images_from_folder": Loads gif,jpg,jpeg,png images from the specified folder (defined by the .path property)

merge

Property

merge

Data type

Boolean

Description

If set, then any manually configured user elements are merged onto the ones loaded by the .load operation.

path

Property

path

Data type

String

Description

(Applies for load=images_from_folder only)

Sets the path of the folder from which to fetch the images (gif,jpg,jpeg,png)

Example:

.path = fileadmin/istate/

[key]

Property

[key]

Data type

string/ userElements

Description

Configuration of the user elements.

The string value is the name of the user element. Language-splitted.

Example:

RTE.default.userElements {
    # Category with various elements
  10 = Various elements | Diverse elements
  10 {
      # An image is inserted
    1 = Logo 1 | Bomærke 1
    1.description = This is the logo number 1. | Dette er logo nummer 1
    1.content = <img src="###_URL###fileadmin/istate/curro.png">

      # The text-selection is wrapped with <sup> tags.
    2 = Subscript
    2.description = Selected text is wrapped in <sup>-tags.
    2.mode = wrap
    2.content = <sup>|</sup>

      # This submits the selected text content to the script, rte_cleaner.php
    5 = Strip all tags
    5.description = All HTML-codes are removed from selection.
    5.mode = processor
    5.submitToScript = typo3/rte_cleaner.php
  }

    # Category with images from the fileadmin/istate/ folder
  2.load = images_from_folder
  2.merge = 1
  2.path = fileadmin/istate/
    # here the logo from "Various elements" is included as well
  2.1 < .10.1
}
  # Show the user-button, if not existing
RTE.default.showButtons = user

[page:->userCategory]