[Typo3] dfn lists for accessible menus
Robert Markula
robert.markula at gmx.net
Tue May 3 16:28:17 CEST 2005
Sacha Vorbeck wrote:
> Hi,
>
>> I can just fetch messages newer than 19th of june 2004. Can you repost
>> his posting?
>
>
> yes, here you are:
>
>>>> Instead they recommend to use unordered list in combination with
>>>> numbers
>>>> wrapped in the <dfn>-Element.
>>
>>
>>
>> I was able to produce <dfn>-tags inside my <ul><li> TMENU with this (not
>> very sophisticated) IPROC:
>> (see it in beta-action on http://www.schwangau.de/834.0.html )
>>
>> ------------SNIP-----------------
>>
>> function user_IProc_dfn($I,$conf) {
>>
>> $itemRow = $conf['parentObj']->menuArr[$I['key']];
>> $level = $conf['parentObj']->menuNumber;
>>
>> switch ($level) {
>> case 1:
>> $dfn = ($I['key']+1);
>> $GLOBALS['TSFE']->register['dfn_lev1'] = $dfn;
>> break;
>>
>> case 2:
>> $dfn = $GLOBALS['TSFE']->register['dfn_lev1'].".".($I['key']+1);
>> $GLOBALS['TSFE']->register['dfn_lev2'] = $dfn;
>> break;
>>
>> case 3:
>> $dfn = $GLOBALS['TSFE']->register['dfn_lev2'].".".($I['key']+1);
>> $GLOBALS['TSFE']->register['dfn_lev3'] = $dfn;
>> break;
>>
>> case 4:
>> $dfn = $GLOBALS['TSFE']->register['dfn_lev3'].".".($I['key']+1);
>> break;
>>
>> default:
>> $dfn = "";
>> break;
>> }
>> $I['parts']['before'].='<dfn>'.$dfn.':</dfn>';
>> return $I;
>> }
>> ?>
>>
>> -------------SNAP---------------------
Hi Sacha,
Thank you very much for the re-post. Where and how do I integrate this
function?
Regards,
Ro
More information about the TYPO3-english
mailing list