Maven Doxia

Make TOC macro CSS friendly

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.1
  • Fix Version/s: None
  • Component/s: Core
  • Labels:
    None
  • Number of attachments :
    0

Description

The toc macro works great!
But.

It would be nice to make it CSS friendly with a divId= and/or divClass= parameter.

If divId or div/Class parameter exists, the toc macro should change the enclosing <div class="section"> accordingly.
If there is no enclosing <div class="section">, then create an additional <div> around the generated <ul><li> structure, which has the id/class as specified.

Issue Links

Activity

Hide
Albert Kurucz added a comment - - edited

In case the class parameter exists, then the generated TOC (with the speficied class) enclosed by its own <div>, should appear outside of both

  • <div id="bodyColumn">
  • <div id="contentBox">

This would allow the CSS programmer to put the TOC into the navigation column, where it really belongs.

Show
Albert Kurucz added a comment - - edited In case the class parameter exists, then the generated TOC (with the speficied class) enclosed by its own <div>, should appear outside of both
  • <div id="bodyColumn">
  • <div id="contentBox">
This would allow the CSS programmer to put the TOC into the navigation column, where it really belongs.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: