[pmwiki-users] Second level ul strange output

Peter Kay petya_98 at yahoo.com
Wed May 27 13:42:09 CDT 2009


Oliver Betz wrote:
> Hello All,
> 
> why uses PmWiki this HTML output:
> 
> <dl><dd>
>  <ul>
>   <li>foo</li>
>   <li>bar</li>
>  </ul>
> </dd></dl>
> 
> for this markup:
> ** foo
> ** bar
> 


It's a way to make all 2-deep lists have the same tabbing.  I prefer it 
to the alternative of using nested <ul>s (see 
http://www.pmwiki.org/wiki/Cookbook/SlimTableOfContents for both examples).


> The original problem is to get a second level in the side bar, filled
> by a page list.
> 
> * item1
> (:pagelist generating **subitems :)
> * item2
> ** subitem2.1
> ** subitem2.2
> * item3
> 
> The dl has much larger indentation.


I'm under the impression that the Sidebar doesn't tend to handle such 
things well...  You might consider using %sidehead% for item1, item2 and 
item3, and having all subitems be only one * deep.

HTH,

--Peter




More information about the pmwiki-users mailing list