[TYPO3-templavoila] Create a HMENU using TV

Michael Perkhofer csaa3941 at uibk.ac.at
Mon Jun 11 09:42:35 CEST 2007


Hello!

I am stuck with a problem, I havent solved by myself yet. Perhaps you 
can help. For many times I had to create Menues, that just show an image 
   for each individual subpage instead of the page title.
Better see it:

http://www.tisun.com/cms/en/products/references/ref1/


Till now I solved this, using the 'media' filed of the page property, 
set to 'advanced'.
This is the TS for the solution:


lib.menuref = HMENU
lib.menuref.entryLevel = 2
lib.menuref.1 = GMENU
lib.menuref.1.wrap = <ul id="ref_list">|</ul>
lib.menuref.1.NO {
   ATagTitle.field = title
   altImgResource.import = uploads/media/
   altImgResource.import.field = media
   altImgResource.import.listNum = 0
   altImgResource.width=48
   altImgResource.height=48
   altImgResource.params = -border 1x1 -bordercolor "#333"
   wrap=<li class="ref_no">|</li>
}

It works great, but it would be much better, if you could upload an 
image using the TV page module for each subpage and the HMENU is the 
generated using these images.
Its easy to add an Image field to the DS, but how do I programme the TS 
to use the image for teh menu? altImgResource.import.field = 
field_menuicon does not work.

Thanks in advance, Michael.


More information about the TYPO3-project-templavoila mailing list