Modify

Opened 7 years ago

Last modified 6 years ago

#2306 new defect

TOC Macro should work with Include Macro

Reported by: jimbydamonk Owned by: coderanger
Priority: normal Component: TocMacro
Severity: normal Keywords:
Cc: leho@… Trac Release: 0.10

Description

I have a main page called Main. Main has the TOC macro. Works great.
The problem comes when I include subpage into Main page. The TOC Macro does note pick up the headings in the include page.

Let say I had something like this on the main page.
Main
TOC(Somepages)

Heading 1

stuff stuff stuff
Include(wiki:SubPage?)

SubPage

SubPageHeading

stuf stuff stuff.

I would like the Toc to have SubPageHeading in it

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by leho@…

  • Cc leho@… added

thank you jim for opening this, i'm in the exact same spot!

i am combining a page with several wikiincludes and using CSS to get nice automating paragraph numbering on everything. but it only works if i specify the exact page that has the real text. TOC cannot display any headings from a page that is wikiincluding others.

i'm going to look at the code to see if i can figure it out on my own, perhaps coderanger could give me some tips if he doesnt have the time to do it himself? is this even doable at all?

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.