Modify

Opened 8 years ago

Closed 3 years ago

#8557 closed enhancement (fixed)

TOC macro should be replaced by PageOutline

Reported by: stoecker Owned by: stoecker
Priority: normal Milestone:
Component: Trac Version:
Keywords: Cc: AlfonZ

Description

Newer Trac has PageOutline, so TOC macro is no longer required.

Attachments (0)

Change History (17)

comment:1 Changed 8 years ago by skyper

PageOutline and TOC are not the same but in most cases PageOutline is probably the better choice.

Thanks for the info.

comment:2 Changed 8 years ago by skyper

I tried to replace the TOC on wiki:Help/Preferences/Plugins but I failed. How do I replace [[TOC(inline)]] ? [[PageOutline(inline)]] produces an error: ValueError: invalid literal for int() with base 10: 'inline'

Last edited 8 years ago by stoecker (previous) (diff)

comment:3 Changed 8 years ago by stoecker

See here: macro description.

comment:4 Changed 8 years ago by stoecker

Should be like
[[PageOutline(1-3,,inline)]]

comment:5 in reply to:  4 Changed 8 years ago by skyper

Replying to stoecker:

Should be like
[[PageOutline(1-3,,inline)]]

Strange, I tried [[PageOutline(,,inline)]] to get all headings but that does not work either. It is different to other macros as you have a certain order. This is not really documented.

comment:6 Changed 8 years ago by stoecker

I think it is pretty clear:

This macro accepts four optional parameters: The first ...

comment:7 in reply to:  6 Changed 8 years ago by skyper

Replying to stoecker:

I think it is pretty clear:

This macro accepts four optional parameters: The first ...

No word about the importance of order, no word about the saperator. Why do I have to add any number if I do not want to change it (using default e.g. all).

This macro accepts four optional parameters as comma separated list with following order: The first ...

Still think an unordered, comma separated list and with title in quotation marks would be nicer and more consistent to other macros behaviour.

Last edited 8 years ago by skyper (previous) (diff)

comment:8 Changed 8 years ago by skyper

Cc: AlfonZ added

comment:9 Changed 8 years ago by skyper

This needs to be mentioned at the TOC macro description.

comment:10 Changed 3 years ago by Don-vip

Resolution: fixed
Status: newclosed

comment:11 in reply to:  10 Changed 3 years ago by Klumbumbus

comment:12 Changed 3 years ago by Don-vip

Resolution: fixed
Status: closedreopened

Clearly my search didn't work...

comment:13 Changed 3 years ago by stoecker

I think I got all base pages. Only translations missing. Down to 95.

comment:14 Changed 3 years ago by stoecker

comment:15 Changed 3 years ago by stoecker

60.

comment:16 Changed 3 years ago by stoecker

20...
Loosing motivation...
To much old (icon) links to fix in the same go.

comment:17 Changed 3 years ago by stoecker

Resolution: fixed
Status: reopenedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain stoecker.
as The resolution will be set.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.