Edgewall Software

Opened 15 years ago

Last modified 12 years ago

#8137 closed enhancement

TracQuery count as part of a heading — at Version 5

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)

Internal Changes:

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: 1060

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

Change History (5)

comment:1 by Christian Boos, 15 years ago

Milestone: experimental

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

comment:2 by Christian Boos, 14 years ago

Milestone: experimentalnext-major-0.1X

Milestone experimental deleted

comment:3 by Christian Boos, 14 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, 13 years ago

Milestone: 0.130.14-wikiengine

comment:5 by Christian Boos, 12 years ago

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

This has been implemented for 1.0.

Note: See TracTickets for help on using tickets.