Mailing List Archive

Basic rendering
Hi,

I'm trying to write a macro which displays a ticket (type, id, summary
and description) in a wiki page.

I'm currently stuck on the rendering step (from the expand_macro()
method). I have the data I need (I mean the required fields for the
concerned ticket). What I want to display is a link to the ticket (text
deduced from type, id, and summary) and the description as displayed in
the ticket browser.

Is there any doc or sample showing how to do this?

Any clue appreciated.

Thanks,

Jean

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/1b4bc1fb-83ee-b641-2565-1054903eac2d%40gmail.com.
Re: Basic rendering [ In reply to ]
Hi

we are using TicketQuery() macro in the following code on Wiki so if you
are able to define the query you are done:

== Title ==

{{{#!div style="float: right; margin: 0 1em;
width:50%;background-color:white; border:solid 2px gray"
== Tickets ==
[[TicketQuery(format=table,col=summary|milestone|estimatedhours|totalhours|owner,project=P_PACKAGING,order=milestone,group=status)]]
}}}

P.C.
Dne sobota 4. prosince 2021 v 16:47:19 UTC+1 uživatel v.jean...@gmail.com
napsal:

> Hi,
>
> I'm trying to write a macro which displays a ticket (type, id, summary
> and description) in a wiki page.
>
> I'm currently stuck on the rendering step (from the expand_macro()
> method). I have the data I need (I mean the required fields for the
> concerned ticket). What I want to display is a link to the ticket (text
> deduced from type, id, and summary) and the description as displayed in
> the ticket browser.
>
> Is there any doc or sample showing how to do this?
>
> Any clue appreciated.
>
> Thanks,
>
> Jean
>
>

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/dff517c0-9809-4d92-b5dc-d276f8aaed72n%40googlegroups.com.
Re: Re: Basic rendering [ In reply to ]
Thanks.

I've finally used trac.web.chrome and a dedicated template.

Jean

Le 04/12/2021 à 18:32, Pavel Celba a écrit :
> Hi
>
> we are using TicketQuery() macro in the following code on Wiki so if
> you are able to define the query you are done:
>
> == Title ==
>
> {{{#!div style="float: right; margin: 0 1em;
> width:50%;background-color:white; border:solid 2px gray"
> == Tickets ==
> [[TicketQuery(format=table,col=summary|milestone|estimatedhours|totalhours|owner,project=P_PACKAGING,order=milestone,group=status)]]
> }}}
>
> P.C.
>
> [...]

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/0e1fb830-658b-c7c5-d8fa-219080b4d72a%40gmail.com.