--- Patrick R. Michaud [EMAIL PROTECTED] wrote:
Will you consider adding something to help
complete paging support now? ...
I'm still looking into this, but my feeling is that
the math recipe approach is overkill (and over
complex).
Examples of how to page by ten using {$?get_var}
It's actually beta 37 that I'm testing now. This template insists on
including page Group.Group even though that page should be excluded by the
defaults section.
!!!include Group pages by title excluding Group.Group
comment
[[#includegrouppages]]
(:template defaults
On Sun, Mar 18, 2007 at 08:24:03AM +0100, SteP wrote:
It's actually beta 37 that I'm testing now. This template insists on
including page Group.Group even though that page should be excluded by the
defaults section.
!!!include Group pages by title excluding Group.Group
comment
Group G3 has 3 pages: G3,A,B. In G3:
[[#f1]]
(:template defaults group=G3 list=simple name=-G3,-RecentChanges:)
(:template each:)[[{=$FullName}|{=$Titlespaced}]]\\
[[#f1end]]
(:pagelist fmt=#f1 count=1..10:)
(:pagelist fmt=#f1 count=11..20:)
prints:
A
B
B
Shouldn't it be:
A
B
the second
Patrick R. Michaud wrote:
(:template list=normal order=title:)
Ok, I got it. A couple more questions.
You didn't add name=-RecentChanges in the defaults above. But if I don't
add it I get the RecentChanges page even though list=normal is specified.
This always happens to me when I use
SteP wrote:
Is there a way in the defaults to exclude pages that *don't have* a
PTV set to a certain value? I was thinking
(:template defaults -$:var=value:)
Today's other thread
http://permalink.gmane.org/gmane.comp.web.wiki.pmwiki.user/40242
gave me a clue so I tried
(:pagelist
On Mon, Mar 19, 2007 at 12:06:13AM +0100, SteP wrote:
SteP wrote:
Is there a way in the defaults to exclude pages that *don't have* a
PTV set to a certain value? I was thinking
(:template defaults -$:var=value:)
[...]
Then I tried moving $:fmtinclude=-?* into the defaults markup
I've been experimenting with the new template markups and I find them
wonderful! Thanks Pm for a very nice new syntax. It is much easier
to use!
Cheers,
Dan
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
On 3/16/07, Patrick R. Michaud [EMAIL PROTECTED] wrote:
I've just released 2.2.0-beta36, which adds some new features
to pagelist templates.
[...]
Thus, instead of writing control breaks using (:if:) directives, as in
(:if ! equal {$Group} {=$Group}:)
Group: {=$Group}
(:if:)
*
On 3/16/07, Patrick R. Michaud [EMAIL PROTECTED] wrote:
In addition, a template may specify default options to be used
in the pagelist command. For example, a pagelist template to
display a list of pages by their titles (and sorted by title)
might use:
[[#bytitle]]
(:template
10 matches
Mail list logo