[TYPO3] caption split on <ul>

Christopher bedlamhotel at gmail.com
Sat May 20 20:45:31 CEST 2006


Hi,

On 5/20/06, Krystian Szymukowicz <t33k.RE.MO.VE at re.mo.ve.prolabium.com> wrote:
>
>
> hi Christopher
>
> Thx for your answer.
>
>
> What I try to achieve is setting individual width to every drop down menu.
>
> The example of such menu is here http://aplus.co.yu/adxmenu/intro/.
>
> I have to modify ul with id <ul id="projectsMenu"> and put in CSS:
>
> #projectsMenu {
>         width: 6em;
> }
>
>
> This is example of real menu:
>
> <ul id="menuList" class="adxm">
> <li class="submenu active"><a href="index.php?id=9">Projects</a>
>         <ul id="projectsMenu">
>                 <li><a href="index.php?id=24">Project 1</a></li>
>         </ul>
> </li>
> <li class="submenu"><a href="index.php?id=8">About us</a>
>         <ul id="aboutMenu">
>                 <li><a href="index.php?id=39">Firm</a></li>
>         </ul>
> </li>
>   <li class="submenu"><a href="index.php?id=7">Kontakt</a>
>         <ul id="kontaktMenu">
>                 <li><a href="index.php?id=47">Kontakt form</a>
>         </ul>
> </li>
> <li class="submenu"><a href="index.php?id=6">Others</a>
>         <ul id="othersMenu">
>                  <li><a href="index.php?id=54">Others 1</a></li>
>         </ul>
> </li>
> </ul>
>
>
>
> You right - using wrap have no sense here. Now I am trying
> to use IFSUB at first level, but with no luck yet.
>
>
> Is this clearer now what I am trying to archive? Is this possible?


You should be able to do it; play around with stdWrap properties for
getting info directly from the db---things like this:

IFSUB {
  stdWrap.before.cObject = HTML
  stdWrap.before.cObject {
    value.data = field:title
    value.wrap = <ul id="|">
  }
}

It will be slightly tricky to maintain validly nested lists (i.e.
since '.wrapItemAndSub' does not have .stdWrap properties), but it is
possible. You can also use alternate fields in the page record to
place your ids (I sometimes have misused 'nav_title' for this kind of
purpose).


-Christopher



More information about the TYPO3-english mailing list