EDITPANEL

This content object is inserted only if a backend user is logged in and if a FE-editing extension is installed and loaded. What gets displayed exactly may depend on which FE-editing extension is used. The reference below is related to the "feedit" system extension. In such a case the EDITPANEL also requires that the Admin Panel be displayed (config.admPanel = 1) and that the user has checked the "Display Edit Icons" option. Whenever the edit panel is inserted, page caching is disabled.

The edit panel inserts icons for moving, editing, deleting, hiding and creating records.

In conjunction with css_styled_content, an EDITPANEL will appear for each content element on the page. It is also possible to insert an EDITPANEL as cObject in the template, using TypoScript.

Note

The extension "feedit" needs to be installed for this to work.

Property

label

Data type

string /stdWrap

Description

Title for the panel. You can insert the record title with %s

Example:

label = Section <b>%s</b>

Property

allow

Data type

string

Description

Define which functions are accessible. Further this comma-separated list may be reduced, if the BE_USER does not have permission to perform the action.

Values should be listed separated by comma. These are the options you can choose from:

  • toolbar: is a list of icons regarding the page, so use this for page records only.
  • edit: edit element.
  • new: create new element.
  • delete: delete element.
  • move: move element.
  • hide: hide element.

Property

newRecordFromTable

Data type

string

Description

Will display a panel for creation of new element (in the top of list) on the page from that table.

Property

newRecordInPid

Data type

integer

Description

Define a page ID where new records (except new pages) will be created.

Property

line

Data type

boolean / integer

Description

If set, a black line will appear after the panel. This value will indicate the distance from the black line to the panel.

Property

edit.displayRecord

Data type

boolean

Description

If set, then the record edited is displayed above the editing form.

Property

onlyCurrentPid

Data type

boolean

Description

If set, only records with a pid matching the current id (TSFE->id) will be shown with the panel.

Property

innerWrap

Data type

wrap /stdWrap

Description

Wraps the edit panel.

Property

outerWrap

Data type

wrap /stdWrap

Description

Wraps the whole edit panel including the black line (if configured).

Property

printBeforeContent

Data type

boolean

Description

Normally the edit panel is displayed below the content element it belongs to. If this option is set, the panel is printed in front of the according element.

Example:

tt_content.stdWrap.editPanel.printBeforeContent = 1

This displays the edit panels in front of the according elements, if you use css_styled_content.

Default

0

Property

previewBorder

Data type

boolean / integer

Description

If set, the hidden/starttime/endtime/fe_user elements which are previewed will have a border around them.

The integer value denotes the thickness of the border.

Property

previewBorder.innerWrap

previewBorder.outerWrap

previewBorder.color

Data type

wrap / HTML color

Description

innerWrap: Wraps the content elements (including the icons) inside the preview border (an HTML table).

outerWrap: Wraps the whole content element including the border.

color: Denotes the color of the border.

Property

stdWrap

Data type

->stdWrap

[tsref:(cObject).EDITPANEL]

Example:

page = PAGE
page.10 = EDITPANEL
page.10 {
  ...
}

Here the edit panel is inserted as a cObject. In such a case, there is nothing to edit in the FE, but the panel can be used to create new records, for example.