[Typo3] customize menu items
Christopher
bedlamhotel at gmail.com
Wed Jul 27 18:17:00 CEST 2005
Hello,
On 27/07/05, Guillaume <g.jullien at free.fr> wrote:
> Hi,
>
> How can I set a different image for each menu item ?
>
> Here is my current code :
>
> # TopMenu cObject
> temp.topMenu = HMENU
> temp.topMenu.1 = TMENU
> temp.topMenu.1 {
> NO.allWrap = <span class="topnavno"><img
> src="fileadmin/templates/esp1/img/image1.gif" alt="site" /> |
> </span>
> ACT = 1
> ACT.allWrap = <span class="topnavact"><img
> src="fileadmin/templates/esp1/img/image1.gif" alt="site" /> |
> </span>
> }
>
> Thanks a lot in advance for your help
You need to explore optionsplit [1], [2]. Using optionsplit will allow
you to either a) assign a different id/class to each menu item or b)
insert an image directly into the markup of each menu item.
-Christopher
[1] http://typo3.org/documentation/document-library/doc_core_tsref/optionSplit-1/
[2] http://www.google.ca/search?q=optionsplit+%2B+typo3
More information about the TYPO3-english
mailing list