Skip to content

Commit

Permalink
[DOC] Usage example for flux:grid.column
Browse files Browse the repository at this point in the history
  • Loading branch information
cweiske committed Nov 6, 2015
1 parent e168761 commit cd53145
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Classes/ViewHelpers/Grid/ColumnViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,27 @@
* and the `colPos` attribute for grids in pages templates.
*
* See `<flux:grid>` for an example.
*
* ### Limit allowed elements
*
* It is possible to limit the elements allowed in the column by setting
* the `allowedContentTypes` variable:
*
* <flux:grid.column name="elements">
* <flux:form.variable name="allowedContentTypes" value="text,shortcut"/>
* </flux:grid.column>
*
* The value is a comma-separated list of content type IDs; they can be found
* in `tt_content.CType` column.
*
* ### Limit allowed fluid content elements
*
* It is also possible to limit the allowed fluid content elements:
*
* <flux:grid.column name="elements">
* <flux:form.variable name="allowedContentTypes" value="fluidcontent_content"/>
* <flux:form.variable name="Fluidcontent" value="{allowedContentTypes: 'Vendor.Extension:ContentElement.html'}"/>
* </flux:grid.column>
*/
class ColumnViewHelper extends AbstractFormViewHelper {

Expand Down

0 comments on commit cd53145

Please sign in to comment.