Feature #15194
closedDeliver a better default sitemap
0%
Description
If you insert a contentelement Menu/Sitemap (Menu Type: Sitemap) the FE-Output will look like the following:
<font size="1" face="verdana">
<a href="index.php?id=1">Page 1 (Level 1)</a><br />
<a href="index.php?id=2">Page 2 (Level 1)</a><br />
<a href="index.php?id=3" >Page 1 (Level 2)</a><br />
<a href="index.php?id=4" >Page 2 (Level 2)</a><br />
<a href="index.php?id=5" >Page 1 (Level 3)</a><br />
<a href="index.php?id=6" >Page 2 (Level 3)</a><br />
</font>
etc...
a better solution would be a nested list:
<ul>
<li><a href="index.php?id=1">Page 1 (Level 1)</a></li>
<li><a href="index.php?id=2">Page 2 (Level 1)</a>
<ul>
<li><a href="index.php?id=3">Page 1 (Level 2)</a></li>
<li><a href="index.php?id=4">Page 2 (Level 2)</a>
<ul>
<li><a href="index.php?id=5">Page 1 (Level 3)</a></li>
<li><a href="index.php?id=6">Page 2 (Level 3)</a></li>
</ul>
</li>
</ul>
</li>
</ul>
validates with http://validator.w3.org/
TS:
tt_content.menu.20.2 >
tt_content.menu.20.2 = HMENU
tt_content.menu.20.2.1 = TMENU
tt_content.menu.20.2.1 {
expAll = 1
wrap = <ul>|</ul>
NO.wrapItemAndSub = <li>|</li>
NO.stdWrap.htmlSpecialChars = 1
}
tt_content.menu.20.2.2 < tt_content.menu.20.2.1
tt_content.menu.20.2.3 < tt_content.menu.20.2.1
tt_content.menu.20.2.4 < tt_content.menu.20.2.1
(issue imported from #M1826)
Files
Updated by Anonymous about 19 years ago
oops, ts is broken. uploaded a .txt file with the right Typoscript inside.
greets, boris
Updated by Sebastian Kurfuerst about 19 years ago
hi,
can you propose the new TS as well?
Greets, Sebastian
Updated by Anonymous about 19 years ago
look inside sitemap_patch.txt
greets, boris
Updated by Michael Stucki almost 19 years ago
Hi Sebistian, I suppose this has been fixed, right?
Updated by Benni Mack over 14 years ago
This has been fixed for quite some time (at least 4.0). Thus, I close this issue.