.. include:: /Includes.rst.txt .. _content-elements: Content elements ---------------- New Content Elements """""""""""""""""""" It's possible to add drop zones for new content elements in a custom content elements. This is done by the class called ContentEditableWrapperService. - Example of usage. .. code-block:: typoscript page = PAGE page.1001 = USER page.1001 { userFunc = Your\NameSpace\YourWrappingClass->wrapWithDropZone } - Create your PHP class with user function .. code-block:: php wrapContentWithDropzone( 'tt_content', // table name $uid, // CE uid -1, // page uid, pid $content, 0, // colPos // additional fields if needed [ 'subheader' => 'default subheader' ] ); } return $content; } } .. _custom-dropzone-modifier: Custom Dropzone modifier (using frontend editing together with Grid Elements) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Here is a full example of how to use the hook (wrapWithDropZone) together with `Grid Elements`_ and multi column splitters: .. _Grid Elements: https://extensions.typo3.org/extension/gridelements https://gist.github.com/joekolade/674ecba5c2615901581d6c4e4c272b4a