ikiwiki/doc/templates/discussion.mdwn

37 lines
2.2 KiB
Plaintext
Raw Normal View History

2008-09-16 08:15:27 +02:00
This confuses me enormously. Perhaps because I am new to ikiwiki, to perl, to Linux, etc.
2008-09-16 08:28:33 +02:00
note and popups are templates? But they're not in the templates directory, and in my readings here, templates are supposed to be in the ../templates directory.
2008-09-17 19:45:57 +02:00
> Ikiwiki has an basewiki underlay that provides wiki files not included in
> your personal wiki sources. The note and popup template pages are
> installed there, typically in `/usr/share/ikiwiki/basewiki/templates/`
> --[[Joey]]
2010-06-07 15:32:45 +02:00
2010-10-08 17:30:50 +02:00
> > And how am I able to use e.g. links? It's not listed in `/usr/share/ikiwiki/basewiki/templates`.
> > I intend do (mis)use links for a horizontal navigation. Or may I be better off altering page.tmpl?
> > --z3ttacht
2010-06-07 15:32:45 +02:00
Is there a list of the TMPL_VAR-Variables that are defined by ikiwiki?
What I'm trying to achieve is to print the URL of every page on the page itself and therefore I would need the corresponding value in the Template.
Am I missing something? --[[jwalzer]]
2010-06-07 15:40:55 +02:00
> If there isn't a suitable variable (I don't think there is a list at
> the moment), a [[plugin|plugins/write]] to add one would be about 10
> lines of perl - you'd just need to define a `pagetemplate` hook. --[[smcv]]
2011-01-19 15:16:19 +01:00
Is there a list of all the available variables somewhere, or do I just grep the source for TMPL_VAR? And is there a way to refer to a variable inside of a wiki page or does it have to be done from a template? Thanks. -- [[AdamShand]]
2011-03-02 07:45:52 +01:00
I pulled a list of variables and posted it, its in the history for [[templates]] under my name. [[justint]]
2014-06-02 23:48:51 +02:00
I am trying to override `page.tmpl` by providing `templates/page.tmpl` in my `srcdir`- this works, but now `templates/page.tmpl` is created in my `destdir` as well! Is this expected? Is there a way to avoid this? --chenz
I'm seeing some curious behaviour with `$srcdir/templates/` templates not being found when
pushing from a remote computer. Touching the relevant file on the server and
`ikiwiki --setup wiki.setup --refresh -v` sorts it out. I have done `--refresh
--wrappers` just to be sure the hooks aren't out of date. Anyone knows what
might be causing this? I'm running a custom branch of ikiwiki master from a
couple of weeks ago so could be my own doing but my changes are mainly to the
album and img plugins. --[[kjs]]