<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
    <title></title>
  </head>

  <body>
    <span>Dear all<br />
    <br />
    I would like to use a Pier wiki as a Seaside component as Lukas
    Renggli suggested in<br />
    <br />
    http://lists.squeakfoundation.org/pipermail/squeak-dev/2008-October/131787.html</span><br />
    <br />
<pre>
&gt; <em>
I suggest that you use Pier. I do that for many of my projects. Pier<br />

</em>&gt; <em>
can be easily embedded into any application, as well as you can embed<br />

</em>&gt; <em>
any application into Pier. For simple wikis it might be a bit overkill<br />

</em>&gt; <em>
to have to load the whole code-base that is more a CMS, so it would<br />

</em>&gt; <em>
probably be worthwhile to have a simple Seaside component that just<br />

</em>&gt; <em>
reuses the document model.<br />

<br />

</em><span style="font-size: 80%">
The code I would like to use (Pseudo class and method names)</span>:<br />

<br />

<br />

<span style="font-family: courier new,courier; font-size: 80%">
myModel := PierStructure on: (AFileDirectory on: &#39;S:\wikiDirectoryWithACollectionOfTextFilesInWikiSyntax&#39;.<br />

<br />

myPierComponent := PierSubclassOfWAComponent on: myModel.</span><br />

<br />

<br />

<span style="font-size: 80%">
May I ask for help replacing this pseudo-code with actual code which does the job.<br />

<br />

In addition I would like to have as well<br />

</span><br />

<br />

myModel exportContentAsTextFileInWikiSyntaxToDirectory: aDirectorySpecification<br />

myModel exportContentAsStaticHTMLToDirectory: anotherDirectorySpecification<br />

<br />

<br />

and to create the model in the first place<br />

<br />

<span style="font-family: courier new,courier; font-size: 80%">
myModel := PierStructure on: (AFileDirectory on: &#39;S:\wikiDirectoryWithACollectionOfStaticHTMLfiles&#39;.</span><br />

<br />

<br />

Thank you in advance for all hints and contributions<br />

<br />

<br />

Hannes Hirzel<br />

<br />

<br />

P.S. I have installed Pier-Seaside version 1.0.16.272 (it is the latest version available in the Squeak 3.10.2 &quot;Universe&quot; repository as of today).<br />

<br />

Utilities classCategoriesStartingWith: &#39;Pier&#39;<br />

<br />

gives<br />

<br />

#(#&#39;Pier-Model-Core&#39; #&#39;Pier-Model-Magritte&#39; #&#39;Pier-Model-Kernel&#39; #&#39;Pier-Model-Persistence&#39; #&#39;Pier-Model-Structure&#39; #&#39;Pier-Model-Command&#39; #&#39;Pier-Model-Document&#39; #&#39;Pier-Model-Exception&#39; #&#39;Pier-Model-Visitor&#39; #&#39;Pier-Model-Utilities&#39; #&#39;Pier-Seaside-Core&#39; #&#39;Pier-Seaside-Libraries&#39; #&#39;Pier-Seaside-Magritte&#39; #&#39;Pier-Seaside-Model&#39; #&#39;Pier-Seaside-View&#39; #&#39;Pier-Seaside-Widgets&#39; #&#39;Pier-Seaside-Visitors&#39;)<br />

<br />

<br />

For me it is not easy to find the entry points. Pier-Seaside-Model for example seems to be a good candiate for creating a model. However there are only two classes there: PRComponent and PRSettingsCommand. The first one has no class documentation at all and the second one only a terse comment. So this seems to be a dead end.<br />

<br />

Then there is the class category Pier-Model-Document whith quite a number of classes: On particular class jumps into the eye: PierDocument. The documentation says &#39;I am the root of a document composite.&#39; On the class side there are no examples. However browsing the class references leradis to<br />

<br />

PRpage&gt;&gt;defaultDocument<br />

<br />

with the code<br />

<br />

defaultDocument<br />

  ^ super defaultDocument<br />

           add: (PRParagraph new<br />

                     add: (PRText content: &#39;Edit this page ...&#39;);<br />

                      yourself);<br />

                yourself<br />

<br />

A possible useful track .......<br />

<br />

<br />

<br />

<br />

P.S.2<br />

I have loaded Pier 1.0.16 through the Squea 3.10.2 package &quot;Universe&quot;. I am ready to update to 1.0.17 as it was announced on<br />

http://lists.squeakfoundation.org/pipermail/squeak-dev/2008-September/131633.html<br />

How is this easily possible (as it is not yet in the Universe?)<br />

<br />

</pre>
    <br />
  </body>
</html>