TYPO3 v12.3—FREEZE
The last sprint release of the v12 series is out. Today we proudly released TYPO3 version 12.3, including all features we have planned for the…
Although we use text for the links we should also use the title tag to give additional information what the visitor can expect on the pages.
From the point of usability the list entry of the page where you currently are should not be linked. Otherwise a web reader would read this as normal link and the visitor might expect another page in the list.
Adding design
With CSS you can make designs for <ul> lists which don´t need to fear comparison with graphical menus. The fact that you can style the <li> tag and the <a> tag gives you a wealth of possibilities to build designs far beyond a change of the link color on mouse over. Together with the different link states you can define in Typoscript you have a variety of options to add visual guides for graphical browsers to your menus.
Menus and
That kind of navigation discussed above you usually integrate into your design template by substituting some ###MAINNAVI### subpart with the dynamic menu from some temporary cObject temp.mainnavi which defines a TMENU structure. As you can define in your Typoscript what to wrap around elements you have full control over the way your menu is styled and rendered.
But there is also a page content element "site map" that offers some menu types and if you are using the static template CSS Styled Content you will have noticed that the menus generated do not have any list structure but are paragraphs and you can´t distinguish the branches or levels if you don´t have the visual guide given by the CSS classes. On the other hand, as the TMENU structures are already provided by CSS Styled Content with some change of the Typoscript you can have these as correctly nested <ul> lists, too.
Now back to the order numbers that would not only be nice to have but make <ul> list menus really accessible.
Although a list menu already reflects the structure of a website if you imagine you have a really huge website with many branches and all have some sub levels it is still difficult to get an overview. In the linearized presentation of a text browser or a web reader you still can´t distinguish the branches and levels because the list is just displayed from top to bottom without any hint where a sub level ends or the next branch starts. This disadvantage of unnumbered lists can be compensated by the usage of order numbers and the <dfn> tag. <dfn> is logical markup and it has the meaning: "this is a definition". In a <ul> menu structure the <dfn> is used to define order numbers for the list items considering their position in the hierarchical structure.
<ul>
<li><a href="me.html"><dfn>1: </dfn>about me</a>
<ul>
<li><a href="house.html"><dfn>1.1: </dfn>my house</a></li>
<li><a href="car.html"><dfn>1.2: </dfn>my car</a></li>
<li><a href="boat.html"><dfn>1.3: </dfn>my boat</a></li>
</ul>
</li>
<li><a href="company.html"><dfn>2: </dfn>about my company</a>
<ul>
<li><a href="desk.html"><dfn>2.1: </dfn>my desk</a></li>
<li><a href="computer.html"><dfn>2.2: </dfn>my computer</a></li>
<li><a href="secretary.html"><dfn>2.3: </dfn>my secretary</a></li>
</ul>
</li>
</ul>
Please note that the order number must be finished by a colon otherwise web readers might read something like 2.1. as 2nd of January (or 1st of February).
For graphical browsers which can use visual guides to order list menus the <dfn> section might be set hidden by means of CSS whereas with custom CSS, text browsers, web readers etc. the order numbers are your guide through the website´s architecture even if this is very complex.
For the <dfn> support in TYPO3 Jan Wischnat has written a function that can be easily integrated in TMENU structures.
Just add something like
page.includeLibs.dfn = fileadmin/scripts/dfn_iproc_tmenu.inc
to your page configuration Typoscript and
....
temp.mainnavi.1 = TMENU
temp.mainnavi.1.IProcFunc = user_IProc_dfn
....
to your menu configuration.
The last sprint release of the v12 series is out. Today we proudly released TYPO3 version 12.3, including all features we have planned for the…
On 20 and 21 April 2023, members of at least four open-source projects will meet at the TYPO3 office in Düsseldorf, Germany, to bring PHP-based…
Be part of an important moment in the democratic life of the TYPO3 project. The next TYPO3 Association General Assembly will be held 18 April 2023.…
The nomination phase for the upcoming elections to the TYPO3 Association Board and Business Control Committee (BCC) has ended and we're happy to…
With our announcement to introduce Content Blocks as a TYPO3 Core system extension at the TYPO3 Developer Days 2022, we have been very busy to make it…
The version 11.5.25 of the TYPO3 Enterprise Content Management System has just been released.