[Typo3-dev] (no subject)

Bernhard Kraft kraftb at mokka.at
Mon Jan 24 11:42:07 CET 2005


AGILA wrote:

> this is a typical newbie question, as I'm new with Typo3. I'm looking 
> for the correct mailing list to ask the following question (any hint is 
> appreciated:-)

This list is for questions regarding devleopment of Typo3 ...
So this is probably the wrong list ...

You should ask such things on the Typo3.english mailinglist or one for
your specific country  (if you read by newsreader you will notice the
news-folder t.ug. on the newsserver this contains the many local usergroups
for typo3)


> I want a navigation menu with GIFs, but I don't want the GIF builder to 
> create the GIFs automatically. Instead we want to use the GIFs which are 
> made by an advertising agency. So the navigation menu should make links 
> to the different pages and use the GIFs copied to the fileadmin directory.
> Something like
> <a href=whatever?... id=20   ><img src=.....link20.gif
> so the name of the GIF file comes from the page id of the page.
> 
> Is this supported in Typo3? Can it be done with TypoScript or do I have 
> to write my own php file for that or maybe an extension?
> 
> (And please forgive me if this is the absolutely wrong list for such 
> questions...)

But as we are no bad people here we will answer your question ...

Have a look at the "import" functionality of T3 menus ...
(see the TSRef for that on GMENU and GMENU Items ...)

do something like:

temp.customImageMenu = HMENU
temp.customImageMenu.1 = GMENU
temp.customImageMenu.1.NO {
   altImgResource.import = uploads/media/
   altImgResource.import.field = media
   altImgResource.import.listNum = 0
}


then you have to upload a image to each page.
for this go to one of the pages. edit tha page header. change the page
type to advanced. then you will see a field called media/files ... upload
your image there ...

listNum = 0

means it takes the first image ... if you would write listNum = 1 it would always take
the second image ...


greets,
Bernhard
-- 
Bernhard Kraft
MOKKA MEDIENAGENTUR GMBH / www.mokka.at
T: +43 1 895 33 33 50




More information about the TYPO3-dev mailing list