Skip to content

Instantly share code, notes, and snippets.

@typo3ua
Last active April 12, 2017 06:41
Show Gist options
  • Save typo3ua/7644252 to your computer and use it in GitHub Desktop.
Save typo3ua/7644252 to your computer and use it in GitHub Desktop.
<f:debug>{categories}</f:debug>
<v:form.select id="categories" options="{categories}" property="categories" name="categories" optionValueField="uid" optionLabelField="title"/>
@typo3ua
Copy link
Author

typo3ua commented Nov 25, 2013

I need form

<form>
<select>
<option value="category 1">category 1</option>
<option value="category 2">category 2</option>
<option value="category 3">category 3</option>
</select>
</form>

@typo3ua
Copy link
Author

typo3ua commented Nov 25, 2013

I need a menu of categories of news.

@typo3ua
Copy link
Author

typo3ua commented Nov 25, 2013

<f:debug>{categories}</f:debug> 

output

Extbase Variable Dump
array(4 items)
   1 => array(2 items)
      item => Tx_News_Domain_Model_Categoryprototypepersistent entity (uid=1, pid=24)
         sorting => 256 (integer)
         crdate => DateTimeprototypeobject (2013-11-20T00:26:17+02:00, 1384899977)
         tstamp => DateTimeprototypeobject (2013-11-20T00:26:17+02:00, 1384899977)
         starttime => NULL
         hidden => 0 (integer)
         endtime => NULL
         sysLanguageUid => 0 (integer)
         l10nParent => 0 (integer)
         title => 'Santé' (6 chars)
         description => '' (0 chars)
         parentcategory => NULL
         image => '' (0 chars)
         shortcut => 0 (integer)
         singlePid => 0 (integer)
         importId => '' (0 chars)
         importSource => '' (0 chars)
         feGroup => '' (0 chars)
         countRelatedNews => 0 (integer)
         uid => 1 (integer)
         _localizedUid => 1 (integer)modified
         _languageUid => 0 (integer)modified
         pid => 24 (integer)
      parent => NULL
   2 => array(2 items)
   3 => array(2 items)
   4 => array(2 items)

@typo3ua
Copy link
Author

typo3ua commented Nov 25, 2013

<select name="categories"><option value="1"></option>
<option value="2"></option>
<option value="3"></option>
<option value="4"></option>
</select>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment