FluidTYPO3\Vhs\ViewHelpers\Content\AbstractContentViewHelper::initializeArguments PHP Method

initializeArguments() public method

Initialize
public initializeArguments ( )
    public function initializeArguments()
    {
        $this->registerArgument('column', 'integer', 'Name of the column to render', false, 0);
        $this->registerArgument('order', 'string', 'Optional sort field of content elements - RAND() supported. Note that when sliding is enabled, the ' . 'sorting will be applied to records on a per-page basis and not to the total set of collected records.', false, 'sorting');
        $this->registerArgument('sortDirection', 'string', 'Optional sort direction of content elements', false, 'ASC');
        $this->registerArgument('pageUid', 'integer', 'If set, selects only content from this page UID', false, 0);
        $this->registerArgument('contentUids', 'array', 'If used, replaces all conditions with an "uid IN (1,2,3)" style condition using the UID values from ' . 'this array');
        $this->registerArgument('sectionIndexOnly', 'boolean', 'If TRUE, only renders/gets content that is marked as "include in section index"', false, false);
        $this->registerArgument('loadRegister', 'array', 'List of LOAD_REGISTER variable');
        $this->registerArgument('render', 'boolean', 'Render result', false, true);
        $this->registerArgument('hideUntranslated', 'boolean', 'If FALSE, will NOT include elements which have NOT been translated, if current language is NOT the ' . 'default language. Default is to show untranslated elements but never display the original if there is ' . 'a translated version', false, false);
        $this->registerSlideArguments();
    }

Usage Example

Beispiel #1
0
 /**
  * Initialize ViewHelper arguments
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->overrideArgument('limit', 'integer', 'Optional limit to the number of content elements to render', FALSE, 1);
 }
All Usage Examples Of FluidTYPO3\Vhs\ViewHelpers\Content\AbstractContentViewHelper::initializeArguments