]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/inline_breaks_PERMALINK_variable.mdwn
why this is hard
[ikiwiki.git] / doc / bugs / inline_breaks_PERMALINK_variable.mdwn
1 in 3.20091017 the following inline
2
3 > `\[[!inline pages="internal(foo/bar/baz/*)" show=3 archive="yes" feeds="no" template="sometemplates"]]`
4
5 with sometemplate being
6
7 > `<p><a href="<TMPL_VAR PERMALINK>"><TMPL_VAR TITLE></a> (<TMPL_VAR CTIME>)</p>`
8
9 produced output that links nowhere (`<a href="">`) while the other variables do fine. This problem does not occur in 3.1415926.
10
11 > This must be caused by an optimisation that avoids reading the page
12 > content when using a template that does not use CONTENT. 
13
14 > I guess that it needs to instead check all the variables the template 
15 > uses, and read content if PERMALINK, or probably any other unknown
16 > variable is used. Unfortunatly, that will lose the optimisation
17 > for the archivepage template as well -- it also uses PERMALINK.
18
19 > So, revert the optimisation? Or, make meta gather the permalink
20 > data on scan? That seems doable, but is not a general fix for
21 > other stuff that might be a) used in a template and b) gathered
22 > at preprocess time.
23
24 > For now, I am going with the special case fix of fixing meta. I may need
25 > to go for a more general fix later. --[[Joey]] [[!tag done]]