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 'Meeting Title' time=1pm place='Cary Library':)<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 'Class Title' time=7pm place='Kites End'\<br>attending='Larry, Moe, Curley' instructor='Mike':)<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 'Selectmens Meeting' time=7:30pm place='Cary Hall'\<br>staff='Jen, George':)<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 'Discovery Day' time=10am place='Lexington Center':)
<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. 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). I really like the power of PmWiki markup, but frequently would like to create these "macros".
<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. 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> Harry<br><br>-- <br>
Harry Forsdick<br>781.861.6149 (home) 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>