[Typo3] TMenuItem page id. Possible to get?

Peter Klein peter at umloud.dk
Thu Oct 27 09:06:14 CEST 2005


"Dmitrii Dimandt" <dmitriid at gmail.com> skrev i en meddelelse 
news:mailman.7299.1130332976.10463.typo3-english at lists.netfielders.de...

> But why doesn't you just attach the images as fileresources on the page
> records?
> Then you can select the pages and corresponding images in your menu.
>
> --


Could you run that by me again? :)

The thing is that the menu is displayed on everypage and it is a
"menu.special = list" type menu

If you edit the page record, and change the type to "Advanced", then there's 
a field named "Files".
Here you can attach one or more pictures.

then in your menu you could do something like this to retrieve the images, 
and add them to your menu layout.

-- cut --
before.import.field = media
before.import = uploads/media/
# Gets the 1st image
before.import.listNum = 0
-- cut --

-- 
Peter Klein/Umloud Untd





More information about the TYPO3-english mailing list