text field+content selection (1)

backend_contentselector 1.0.0

2009-02-23 23:11 by Helmut Schottmüller

backend_contentselector 1.0.0 stable released

backend_contentselector is an extension for backend text fields. You can add a 'selector' which offers you the content of all text fields of the same type in the TYPOlight database e.g. all CSS classes of a content element. The selector could be either a drop-down box or a list of hyperlinks.
tl_files/images/TYPOlight/backend_contentselector.jpg
By selecting a given content element, the element will be added to the associated text field. If the content element already exists in the text field, then it will be removed by selecting it from the selector.

The selector could be added to any text field by adding a special eval entry in the data container array of the field. The eval entry is called contentselector and it is an array containing the following keys:
  • title (string): The title of the selector
  • type (string): The type of the selector, which is either 'text' for a list of hyperlinks or 'select' for a drop-down box
  • separator (string): A separator which separates unique content elements, like ' ' or ','
If you want to add content selectors for text fields of the type multiple, you may enter the contentselector eval value as an array where the keys of the array are the index positions of the text fields and the values of the array are arrays of the above type.

As a first implementation, backend_contentselector adds content selection for CSS classes of TYPOlight content elements.

Release notes

  • Initial release 1.0.0 stable
backend_contentselector is available in the TYPOlight Extension Repository for Download.