]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/maps_with_nested_directories_sometimes_make_ugly_lists.mdwn
(no commit message)
[ikiwiki.git] / doc / bugs / maps_with_nested_directories_sometimes_make_ugly_lists.mdwn
1 I'm using the [[map_directive|ikiwiki/directive/map]] to build dynamic navigation menus, and it's working really nicely!
2
3 However on some pages, each nested item each get wrapped in a full set of `<ul>` tags.  This doesn't actually hurt anything, but it's does it inconsistently which seems like a bug.  I don't like it because it puts extra vertical spacing into my menu bar.
4
5 Here's what I expect it to look like:
6
7     <div class="map">
8     <ul> 
9         <li><span class="selflink">Archives</span>
10             <ul>
11                 <li><a href="./2010/" class="mapitem">2010</a></li>
12                 <li><a href="./2011/" class="mapitem">2011</a></li>
13             </ul>
14         </li>
15     </ul>
16     </div>
17
18 And here's what it's actually doing:
19
20     <div class="map">
21     <ul> 
22         <li><span class="selflink">Archives</span>
23             <ul>
24                 <li><a href="./2010/" class="mapitem">2010</a></li>
25             </ul>
26             <ul>
27                 <li><a href="./2011/" class="mapitem">2011</a></li>
28             </ul>
29         </li>
30     </ul>
31     </div>
32
33 I've tried to replicate the problem on this site and cannot, I'm not sure if that's because of exactly how I'm using map or if there's something different with my site.  I just upgraded ikiwiki to the latest Debian unstable as well as most of the required Perl modules and nothing changed.  
34
35 If you look at [this page on my site](http://adam.shand.net/ikidev/archives/) (getsource is enabled) you can see it working as expected in the main page and not working in the side bar. 
36
37 But it also doesn't work on the sitemap page: <http://adam.shand.net/ikidev/site/map/>
38
39 This might be really simple, but I've been staring at it too long and it only looks like a bug to me. :-(   Any suggestions would be gratefully accepted. -- [[AdamShand]]