I have a calendar application where I want to be able to enter and edit a limited number of calendar item types.  This calendar (for a Cable Access TV organization) is designed to hold four types of items:  MEETING, CLASS, SHOOT, EVENT.
<br><br>To date I have created four directives for the standard meeting types and documented these markups for users to enter and edit calendar items:<br><p style="text-align: left; margin-left: 40px;" class="vspace"><font size="4">
<span style="font-size: 120%;"><strong>Markup Examples for Calendar Entries</strong></span></font>
</p>
<table style="text-align: left; margin-right: 0px; margin-left: 40px;" class="markup vert">
      <tbody><tr><td class="markup1" valign="top"><pre><font size="4">(:meeting &#39;Meeting Title&#39; time=1pm place=&#39;Cary Library&#39;:)<br></font></pre></td></tr><tr><td class="markup2" valign="top"><p><font size="4">
<b><font color="blue">MEETING</font></b><br>1pm <b>Meeting Title</b><br>Location: <b>Cary Library</b><br><br></font>
</p>
</td></tr></tbody></table><div style="text-align: right; margin-left: 40px;">
</div><table style="text-align: left; margin-right: 0px; margin-left: 40px;" class="markup vert">
      <tbody><tr><td class="markup1" valign="top"><pre><font size="4">(:class &#39;Class Title&#39; time=7pm place=&#39;Kites End&#39;\<br>attending=&#39;Larry, Moe, Curley&#39; instructor=&#39;Mike&#39;:)<br></font></pre>
</td></tr><tr><td class="markup2" valign="top"><p><font size="4"><b><font color="orange">CLASS</font></b><br>7pm <b>Class Title</b><br>Location: <b>Kites End</b><br>Attending: <b>Larry, Moe, Curley</b><br>Instructor: <b>Mike
</b><br><br></font>
</p>
</td></tr></tbody></table><div style="text-align: right; margin-left: 40px;">
</div><table style="text-align: left; margin-right: 0px; margin-left: 40px;" class="markup vert">
      <tbody><tr><td class="markup1" valign="top"><pre><font size="4">(:shoot &#39;Selectmens Meeting&#39; time=7:30pm place=&#39;Cary Hall&#39;\<br>staff=&#39;Jen, George&#39;:)<br></font></pre></td></tr><tr><td class="markup2" valign="top">
<p><font size="4"><b><font color="red">SHOOT</font></b><br>7:30pm <b>Selectmens Meeting</b><br>Location: <b>Cary Hall</b><br>Staff/Vols: <b>Jen, George</b><br><br></font>
</p>
</td></tr></tbody></table><div style="text-align: right; margin-left: 40px;">

      </div><table style="text-align: left; margin-right: 0px; margin-left: 40px;" class="markup vert"><tbody><tr><td class="markup1" valign="top"><pre><font size="4">(:event &#39;Discovery Day&#39; time=10am place=&#39;Lexington Center&#39;:)
<br></font></pre></td></tr><tr><td class="markup2" valign="top"><p><font size="4"><b><font color="green">EVENT</font></b><br>10am <b>Discovery Day</b><br>Location: <b>Lexington Center</b></font><br></p></td></tr></tbody></table>
<br clear="all">This all works quite well, but I am finding that people in the organization still feel uncomfortable with using free form markup to specify and edit their calendar entries.&nbsp; So, I would like to see if I can use a form to create and edit a calendar entry.
<br><br>This brings up two related considerations relating to the production of PmWiki markup as the result of the output of a form and (in a related but different issue) how to create a new directive that expands into PmWiki markup (instead of HTML).&nbsp; I really like the power of PmWiki markup, but frequently would like to create these &quot;macros&quot;.
<br><br>Since each entry can be represented on a separate line in the buffer, and I know how to parse a single line to get the various tokens of the directive, I know how to take an existing PmWiki page buffer of my restricted markup, and represent it in a form.
<br><br>The part that I do not know how to do is how to get at the contents of the PmWiki markup in a page and the related issue of how to replace the contents of a PmWiki marked up page with the output of a form.&nbsp; I assume I am going to have to have a separate 
<span style="font-weight: bold; font-style: italic;">edit</span> link in the output representation of the calendar items.<br><br>Can anyone help me revealing how I can do this?<br><br>Thanks,<br><br>&nbsp;&nbsp;&nbsp; Harry<br><br>-- <br>
Harry Forsdick<br>781.861.6149 (home)&nbsp;&nbsp;781.799.6002 (cell)<br><a href="http://www.forsdick.com">http://www.forsdick.com</a><br><a href="http://forsdick.blogspot.com">http://forsdick.blogspot.com</a><br><a href="http://www.lexdig.com">
http://www.lexdig.com</a>