[TYPO3-english] Get page settings from typoscript?

bernd wilke t3ng at bernd-wilke.net
Thu Dec 19 14:02:05 CET 2013


Am 19.12.13 10:17, schrieb Rikard B:
> Hey
>
> Is it possible to get the setting of a page when creating a menu
> (HMENU/TMENU) with typoscript? For example, if I would like to know the
> setting of the "Access" checkbox for the page or get the publish date.

as you are rendereing the current menu item you can access any data from 
the current record (which is pages or pages_language_overlay).

10 = HMENU
10 {
	1 = TMENU
	1 {
		NO = 1
		NO {
			wrapItemAndSub = <li>|</li>

		# individual rendering of additional information:
			before.cObject = COA
			before.cObject {
				10 = TEXT
				10.field = lastUpdated
				10.date = 1
				10.wrap = (from: | )
			
				:

			}
  		}
	}
}

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list