|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
table of contents in the left menu?Rather than remembering to put the [{TableOfContents}] plugin in every page
in my wiki, it occurred to me to put it in the LeftMenu page, but this doesn't work so well. Has anyone else considered this, or come up with a more graceful solution? When I put it in the LeftMenu, I doesn't display as well, and it still puts a big "Table Of Contents" header on it even if there are no headings in the page. Ideas? -- Bobman |
|
|
Re: table of contents in the left menu?Bob,
Can you log this in JIRA. So I can improve the css to imrpvoe the style of toc's in left-menu's. This looks to me like a useful use-case. dirk On Thu, Jun 26, 2008 at 6:00 PM, Bob Paige <bobpaige@...> wrote: > Rather than remembering to put the [{TableOfContents}] plugin in every page > in my wiki, it occurred to me to put it in the LeftMenu page, but this > doesn't work so well. Has anyone else considered this, or come up with a > more graceful solution? > > When I put it in the LeftMenu, I doesn't display as well, and it still puts > a big "Table Of Contents" header on it even if there are no headings in the > page. > > Ideas? > > -- > Bobman > |
|
|
Re: table of contents in the left menu?Can you give me a link? The only references to 'jira' I see on the jspwiki
pages are for the plugin. -- Bobman On Thu, Jun 26, 2008 at 12:42 PM, Dirk Frederickx <dirk.frederickx@...> wrote: > Bob, > > Can you log this in JIRA. > > So I can improve the css to imrpvoe the style of toc's in left-menu's. > This looks to me like a useful use-case. > > > dirk > > On Thu, Jun 26, 2008 at 6:00 PM, Bob Paige <bobpaige@...> wrote: > > Rather than remembering to put the [{TableOfContents}] plugin in every > page > > in my wiki, it occurred to me to put it in the LeftMenu page, but this > > doesn't work so well. Has anyone else considered this, or come up with a > > more graceful solution? > > > > When I put it in the LeftMenu, I doesn't display as well, and it still > puts > > a big "Table Of Contents" header on it even if there are no headings in > the > > page. > > > > Ideas? > > > > -- > > Bobman > > > |
|
|
Re: table of contents in the left menu?https://issues.apache.org/jira/browse/JSPWIKI
2008/6/26 Bob Paige <bobpaige@...>: > Can you give me a link? The only references to 'jira' I see on the jspwiki > pages are for the plugin. > > -- > Bobman > > On Thu, Jun 26, 2008 at 12:42 PM, Dirk Frederickx < > dirk.frederickx@...> > wrote: > > > Bob, > > > > Can you log this in JIRA. > > > > So I can improve the css to imrpvoe the style of toc's in left-menu's. > > This looks to me like a useful use-case. > > > > > > dirk > > > > On Thu, Jun 26, 2008 at 6:00 PM, Bob Paige <bobpaige@...> wrote: > > > Rather than remembering to put the [{TableOfContents}] plugin in every > > page > > > in my wiki, it occurred to me to put it in the LeftMenu page, but this > > > doesn't work so well. Has anyone else considered this, or come up with > a > > > more graceful solution? > > > > > > When I put it in the LeftMenu, I doesn't display as well, and it still > > puts > > > a big "Table Of Contents" header on it even if there are no headings in > > the > > > page. > > > > > > Ideas? > > > > > > -- > > > Bobman > > > > > > -- met vriendelijke groet, Harry Metske Telnr. +31-548-512395 Mobile +31-6-51898081 |
|
|
Re: table of contents in the left menu?Janne,
Is there a reason why the TOC is only rendered the first time on a page ? if( context.getVariable( VAR_ALREADY_PROCESSING ) != null ) return rb.getString("tableofcontents.title"); dirk On Thu, Jun 26, 2008 at 6:42 PM, Dirk Frederickx <dirk.frederickx@...> wrote: > Bob, > > Can you log this in JIRA. > > So I can improve the css to imrpvoe the style of toc's in left-menu's. > This looks to me like a useful use-case. > > > dirk > > On Thu, Jun 26, 2008 at 6:00 PM, Bob Paige <bobpaige@...> wrote: >> Rather than remembering to put the [{TableOfContents}] plugin in every page >> in my wiki, it occurred to me to put it in the LeftMenu page, but this >> doesn't work so well. Has anyone else considered this, or come up with a >> more graceful solution? >> >> When I put it in the LeftMenu, I doesn't display as well, and it still puts >> a big "Table Of Contents" header on it even if there are no headings in the >> page. >> >> Ideas? >> >> -- >> Bobman >> > |
|
|
Re: table of contents in the left menu?On Jun 26, 2008, at 23:38 , Dirk Frederickx wrote: > Janne, > > Is there a reason why the TOC is only rendered the first time on a > page ? > > > if( context.getVariable( VAR_ALREADY_PROCESSING ) != null ) > return rb.getString("tableofcontents.title"); Yes. Since we parse the entire page, we need to stop the TableOfContents plugin being re-executed recursively. This has the side-effect of allowing only one ToC per page. /Janne |
|
|
Re: table of contents in the left menu?>> Is there a reason why the TOC is only rendered the first time on a page ?
>> >> >> if( context.getVariable( VAR_ALREADY_PROCESSING ) != null ) >> return rb.getString("tableofcontents.title"); > > Yes. Since we parse the entire page, we need to stop the TableOfContents > plugin being re-executed recursively. This has the side-effect of allowing > only one ToC per page. Janne, Returning the plain string "tableofcontents.title" is not very userfriendly. Why not returning something more usefull, like an in-page link to the actual 'first' rendered toc ? dirk |
|
|
Re: table of contents in the left menu?>
> Returning the plain string "tableofcontents.title" is not very > userfriendly. > > Why not returning something more usefull, like an in-page link to the > actual 'first' rendered toc ? Why not? Or we could also return just an explanatory text. /Janne |
| Free Forum Powered by Nabble | Forum Help |