summaryrefslogtreecommitdiff
path: root/doc/recentchanges/change_5430d5dc3bc37df92eb01cd65382c0f2be78b8e7._change
blob: 68bd2fc0c9f7beaa7525af9f10ad3ab29439d5ef (plain)
  1. [[!meta author="""http://jmtd.livejournal.com/"""]]
  2. [[!meta authorurl="""http://jmtd.livejournal.com/"""]]
  3. [[!meta title="""change to bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date on ikiwiki"""]]
  4. [[!meta permalink="http://ikiwiki.info/recentchanges/#change-5430d5dc3bc37df92eb01cd65382c0f2be78b8e7"]]
  5. <div id="change-5430d5dc3bc37df92eb01cd65382c0f2be78b8e7" class="metadata">
  6. <span class="desc"><br />Changed pages:</span>
  7. <span class="pagelinks">
  8. <a href="http://git.ikiwiki.info/?p=ikiwiki;a=blobdiff;f=doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn;h=83093895b37a4fb3be524cd237fc5ce8f5b2169d;hp=5485bba9ca2244260ae4ecb0894e935817bf377d;hb=5430d5dc3bc37df92eb01cd65382c0f2be78b8e7;hpb=62fc5d0c3cfdde0ae87c5364db6f6ebfa6794b14" title="diff" rel="nofollow">[[diff|wikiicons/diff.png]]</a><a href="http://ikiwiki.info/ikiwiki.cgi?page=bugs%2Fargument_isn__39__t_numeric%3A_mixing_templates_and_creation__95__date&amp;do=goto" rel="nofollow">bugs/argument isn&#39;t numeric: mixing templates and creation&#95;date</a>
  9. </span>
  10. <span class="desc"><br />Changed by:</span>
  11. <span class="committer">
  12. <a href="http://jmtd.livejournal.com/" rel="nofollow">jmtd [livejournal.com]</a>
  13. </span>
  14. <span class="desc"><br />Commit type:</span>
  15. <span class="committype">web</span>
  16. <span class="desc"><br />Date:</span>
  17. <span class="changedate"><span class="relativedate" title="Mon, 15 Nov 2010 10:43:35 -0400">10:43:35 11/15/10</span></span>
  18. <span class="desc"><br /></span>
  19. </div>
  20. <span class="revert">
  21. <a href="http://ikiwiki.info/ikiwiki.cgi?rev=5430d5dc3bc37df92eb01cd65382c0f2be78b8e7&amp;do=revert" title="revert" rel="nofollow">[[revert|wikiicons/revert.png]]</a>
  22. </span>
  23. <div class="changelog">
  24. not quite done yet: if/included() doesn&#39;t work that way.<br />
  25. </div>
  26. <div class="diff">
  27. <pre>
  28. diff --git a/doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn b/doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn
  29. index 5485bba..8309389 100644
  30. --- a/doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn
  31. +++ b/doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn
  32. @@ -46,8 +46,7 @@ A workaround is to move the template outside of the srcdir into the external tem
  33. \&#91;&#91;!template id=all_entry.tmpl year=2010 current=true&#93;&#93;
  34. -An alternative fix is to wrap the entire template inside a test to see whether the page is included or not. E.g.
  35. -
  36. +I believed (until I tested) that the &#91;&#91;ikiwiki/directive/if&#93;&#93; directive, with the `included()` test, would be an option here, E.g.
  37. \&#91;&#91;!if test=&quot;included()&quot; then=&quot;&quot;&quot;
  38. ...template...
  39. @@ -55,6 +54,4 @@ An alternative fix is to wrap the entire template inside a test to see whether t
  40. Nothing to see here.
  41. &quot;&quot;&quot;&#93;&#93;
  42. -In fact, this is probably best practice for in-srcdir templates. I&#39;d consider this done if the documentation for the directive suggested it. -- &#91;&#91;Jon&#93;&#93;
  43. -
  44. -&gt; &#91;&#91;done&#93;&#93; with &lt;http://git.ikiwiki.info/?p=ikiwiki;a=commitdiff;h=da9e1ea667f82d5fca9168dbed19be08040570ff&gt; -- &#91;&#91;Jon&#93;&#93;
  45. +However this doesn&#39;t work. I assume &quot;included&quot; in this context means e.g. via an `inline` or `map`, not template trans-clusion. -- &#91;&#91;Jon&#93;&#93;
  46. </pre>
  47. </div>
  48. <!-- 5430d5dc3bc37df92eb01cd65382c0f2be78b8e7 -->