English 中文(简体)
我如何对每个菜单项目采用不同的总结?
原标题:How can I apply a different wrap to every menu item?

我正试图在典型文本中形成一种习俗菜单,我的想法是每个菜单项目有一个<条码>div。

Example

lib.mainMenu = HMENU
lib.mainMenu {
   entryLevel = 0  
   1 = TMENU
   1 {
      NO.allWrap = <div id="forsideknap">|</div> |*| <div id="butikker">|</div> |*| <div id="nyheder">|</div> |*| <div id="arrangementer">|</div> |*| <div id="avis">|</div>
   }
}

我已经创建了5页,其中只有3页正在上<条码>div。 共有3个。 我如何解决这一问题?

最佳回答

你正在使用<代码>option Split概念,这一概念本身有许多不同的选择。 这种做法在首次使用时可能造成混乱。 您无意中界定了first,middle,和last part of You using the <> >dle-/strong>:

first element |*| middle element(s) |*| last element

如果再有一个中间元素,它们就获得中间参数(“丁克”)。 第三版*>的所有内容都被忽视。

What you wanted is a simple sequence of different wraps. This is achieved by using the || separator:

1st element || 2nd element || 3rd element || 4th element || 5th element || etc.

阁下:

NO.allWrap = <div id="forsideknap">|</div> || <div id="butikker">|</div> || <div id="nyheder">|</div> || <div id="arrangementer">|</div> || <div id="avis">|</div>

请注意,如果你的结构更为复杂,你可以把分离者结合起来。

阅读更多:

  • www.un.org/Depts/DGACM/index_french.htm * E/CN.6/2009/1。

  • http://docs.typo3.org/typo3cms/TyposcriptReference/ObjectsAndProperties/Index.html#objects-optionsplit”rel=“nofollow” 页: 1

问题回答

暂无回答




相关问题
TYPO3 extensions and symlinks

Can I create a symlink to the local extension from aonther project folder? I have a common local-server and i need to implement same extension on all local project-installations. I tried to put the ...

TYPO3: Use TCA.php to build Frontend Forms?

I m searching for a solution, to build a frontend form from the TCA.php of my TYPO3 extension. Is there any way, to select TCA.php values, from my extension Class? I want to build a select-element ...

How to automatically reload TYPO3 calendar from external ics

Hi I m using the calendar base extension (cal) for displaying my calendar in a TYPO3 website. I configured an external calendar and it imports all events correctly. How can I automatically reload the ...

Does a svn frontend for git exist

We are planing to migrate our repositories from svn to git. However there are some people using np_subversion which integrates SVN into the TYPO3-Backend. np_subversion calls the svn client to make ...

wurfl2 integration in TYPO3

everytime i try to install the wurfl2 extension in TYPO3 i get the following error message: Fatal error: require_once() [function.require]: Failed opening required (include_path= .:/usr/local/php/...

TYPO3: getTypoLink_URL alternative (generating url aliases)

Is there an alternative way of getting the URL to a page (by id) apart from using cObj->getTypoLink_URL? I m trying to create URL aliases, so a page can have multiple URLs (for example "/about" ...