<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Patrick,<br>
<br>
I use a whole bunch of immediate substitutions from guibuttons
(actually links) on edit forms like this:<br>
<br>
$GUIButtons['attach'] = array(1101, 'Uploads:{$Group}/','','','
[Uploads:]');<br>
<br>
or these:<br>
<br>
$GUIButtons['datestamp'] = array(1405, '', '', '($CustomDate)',' [date
stamp] ');<br>
$GUIButtons['authordatestamp'] = array(1406, '', '', '($Author -
$CustomDate)',' [author date stamp] ');<br>
<br>
..and they're very popular.<br>
<br>
Intuitively, I would think that some kind of call from
GroupName.Template.php would be the place for immediate substitution of
template variables, though I'm not sure how it would get wired up.<br>
<br>
immediateSubstitution("varname","value");<br>
<br>
or in OO<br>
<br>
templatepage-&gt;immediatesubstitution("varname","value");<br>
<br>
??<br>
<br>
BTW my new webhost looks really good. I'm getting a 40% performance
improvement, and service seems as solid as a rock. Now I'm totally
chomping at the bit to employ your new features (having finally
upgraded from 2.1.27).<br>
<br>
All the best,<br>
<br>
- Henrik<br>
<br>
Patrick R. Michaud wrote:
<blockquote cite="mid:20080410173010.GA32149@host.pmichaud.com"
 type="cite">
  <pre wrap="">On Thu, Apr 10, 2008 at 12:22:53PM -0400, Henrik wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Regarding <a class="moz-txt-link-freetext" href="http://www.pmwiki.org/wiki/Cookbook/EditTemplates">http://www.pmwiki.org/wiki/Cookbook/EditTemplates</a>

Is it possible to automatically update dates, to that the imported text 
contains the current date (as text, not as a variable).

So for example if creating a page today, I would like the title, as 
imported from the template, to have in the edit textbox

!!!!Farmers' Market news for April 10, 2008

Where the date is written in as clear text from the template.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
At present I don't think there's a way to do this.  I've been
thinking about ways to have "immediate substitutions" like
this done, but haven't come up with anything I particularly
like yet (which is why we don't have it).

Pm

  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 

Henrik Bechmann
<a class="moz-txt-link-abbreviated" href="http://www.bechmann.ca">www.bechmann.ca</a>
Webmaster, <a class="moz-txt-link-abbreviated" href="http://www.dufferinpark.ca">www.dufferinpark.ca</a></pre>
</body>
</html>