Edgewall Software
Modify

Opened 11 years ago

Closed 7 years ago

#8137 closed enhancement (fixed)

TracQuery count as part of a heading

Reported by: anonymous Owned by: Christian Boos
Priority: normal Milestone: 1.0
Component: wiki system Version: 0.11.3
Severity: normal Keywords: TracQuery heading
Cc: Branch:
Release Notes:

Some Wiki macros now produce markup even when used in "inline" context.

API Changes:

Added IWikiMacroProvider.is_inline optional method. If it is present and returns True, then the macro is called even from an inline context (r10905)

Description

It would be nice to be able to have a wiki heading contain a count from a TicketQuery macro, like so:

== New Tickets: [[TicketQuery(status=new,format=count)]]  ==

right now this results in:

New Tickets: 1042

I was hoping to see the number of results instead of !TicketQuery(...) appear as part of the heading.

Attachments (0)

Change History (6)

comment:1 by Christian Boos, 11 years ago

Milestone: experimental

Indeed, something to keep in mind for the next round of improvements of the WikiEngine.

comment:2 by Christian Boos, 10 years ago

Milestone: experimentalnext-major-0.1X

Milestone experimental deleted

comment:3 by Christian Boos, 10 years ago

Milestone: next-major-0.1X0.13
Owner: set to Christian Boos

I've hit the issues a few times myself, in the last couple weeks (with [[span(...)]], IIRC).

The inline renderer should be able to detect if a macro returns inlined content, and should not return a [[<macro>(...)]] shortening in this case.

comment:4 by Christian Boos, 9 years ago

Milestone: 0.130.14-wikiengine

comment:5 by Christian Boos, 7 years ago

API Changes: modified (diff)
Milestone: topic-wikiengine1.0
Release Notes: modified (diff)

This has been implemented for 1.0.

comment:6 by Christian Boos, 7 years ago

Resolution: fixed
Status: newclosed

… in r10905.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.