Hans schrieb:
Monday, September 28, 2009, 1:33:27 PM, noskule wrote:
ah, I found out I can use fmt, so using:
[[#cvsn]]
{=$Name},
[[#cvsnend]]
adds a space after each semicolon, is there a way around this?
try this:
[[#cvsn]]{=$Name},\
[[#cvsnend]]
hi hans, list
Is there a way using to make the pagelist expression outputs only the
names of pages instead of Group.Name?
thanks for any hints
nos
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
Monday, September 28, 2009, 1:33:27 PM, noskule wrote:
ah, I found out I can use fmt, so using:
[[#cvsn]]
{=$Name},
[[#cvsnend]]
adds a space after each semicolon, is there a way around this?
try this:
[[#cvsn]]{=$Name},\
[[#cvsnend]]
~Hans
Friday, January 2, 2009, 2:24:10 PM, Stéphane Heckel wrote:
I'm using the powertools/pagelist function
It works great. ie :{(pagelist group=People $createdby=st...@acme.com)}
However, when combined with a fmt option, pagelist renders as usual
(standard pmwiki by default, with hyperlink
Hans wrote :
By default the {(pagelist ...)} expression outputs a CSV list of page
names, i.e fmt=csv is the default.
Other formats are not supported. Or you get confusing, ill defined
results.
To support a different format, one would need to define it through a
custom function.
Is it
Friday, January 2, 2009, 4:13:01 PM, Stéphane Heckel wrote:
Is it complex to implement ?
Would it be a useful enhancement to powertools to provide dynamic format
driven by the fmt= option ?
I would need something like :
[[#createdby]]
{=$Name}|{=$Title}|{=$CreatedBy}
[[#createdbyend]]
Hans wrote :
yes, it is complex. The whole template based output formatting
does not work with the expression. I could not see a way how to
integrate template formatting.
Custom solutions are difficult, and i cannot offer much help with such.
Sorry!
I have maybe found an alternative, using
Friday, January 2, 2009, 4:13:01 PM, Stéphane Heckel wrote:
Is it complex to implement ?
Would it be a useful enhancement to powertools to provide dynamic format
driven by the fmt= option ?
I would need something like :
[[#createdby]]
{=$Name}|{=$Title}|{=$CreatedBy}
[[#createdbyend]]
Hans wrote :
okay, i played with this, to give you an idea:
Hi Hans, thanks for this. I understand how it works now.
It can be reused as a 'generic/demo template for powertools.
In the meanwhile, I have investigated the alternative MarkupToHTML() path,
... and it works :
// in my main
okay, so after a little further thought, and after looking at
pagelist.php and powertools, i realize that basically what i need is
a version of pagelist that can iterate through fmt=#mycustomfmt
(which is declared on the LocalTemplates page) just as it normally
would, but without adding
hi
is it / could it be possible to use a custom pagelist template with
{(pagecount (pagelist ... ) )}?
the problem i'm having with the powertools pagelist is that it has to
be set to fmt=csv in order to spit out what pagecount needs, and so
it can't use my special fmt=#mypagelistfunction,
Saturday, September 13, 2008, 1:08:56 PM, adam overton wrote:
so again, is it/can it/will it be possible to run {(pagelist)} thru a
custom fmt and have it still spit out as a csv?
this seems to be a contradiction in itself.
If you want a custom formatted output, you won't have a
12 matches
Mail list logo