response
parent
1a677f862c
commit
fe9183a926
|
@ -7,3 +7,17 @@ with a template definition like
|
||||||
<div id="foo">\[[!inline ... pages="<TMPL_VAR raw_pages>"]]</div>
|
<div id="foo">\[[!inline ... pages="<TMPL_VAR raw_pages>"]]</div>
|
||||||
|
|
||||||
It would be much more convenient if the loop over pages happened in the template, allowing me to just stick whatever markup I want around the loop.
|
It would be much more convenient if the loop over pages happened in the template, allowing me to just stick whatever markup I want around the loop.
|
||||||
|
|
||||||
|
> Unfortunatly, I don't think this can be changed at this point,
|
||||||
|
> it would probably break a lot of stuff that relies on the current
|
||||||
|
> template arrangement, both in ikiwiki's internals and in
|
||||||
|
> people's own, customised inline templates. (Also, I have some plans
|
||||||
|
> to allow a single inline to use different templates for different
|
||||||
|
> sorts of pages, which would rely on the current one template per
|
||||||
|
> page approach to work.)
|
||||||
|
>
|
||||||
|
> But there is a simple workaround.. the first template in
|
||||||
|
> an inline has FIRST set, and the last one has LAST set.
|
||||||
|
> So you can use that to emit your div or table top and bottom.
|
||||||
|
>
|
||||||
|
> [[done]] --[[Joey]]
|
||||||
|
|
|
@ -36,6 +36,8 @@ located in /usr/share/ikiwiki/templates by default.
|
||||||
[[plugins/comments]] plugin.
|
[[plugins/comments]] plugin.
|
||||||
* `commentmoderation.tmpl` - This template is used to produce the comment
|
* `commentmoderation.tmpl` - This template is used to produce the comment
|
||||||
moderation form.
|
moderation form.
|
||||||
|
* `recentchanges.tmpl` - This template is used for listing a change
|
||||||
|
on the RecentChanges page.
|
||||||
|
|
||||||
The [[plugins/pagetemplate]] plugin can allow individual pages to use a
|
The [[plugins/pagetemplate]] plugin can allow individual pages to use a
|
||||||
different template than `page.tmpl`.
|
different template than `page.tmpl`.
|
||||||
|
|
Loading…
Reference in New Issue