Tutorial Creating a new Publication

[email protected]
Newsgroups gmane.comp.cms.wyona.user
Message-ID <[email protected]>
Hi all!

I have worked a little bit on the turorial 'Creating a new Publication' 
(Integrator's Guide). It is just a more detailed description of the 
steps I have taken to create a new publication - no big deal. 
The file is located at
/webapp/wyona/cms/pubs/wyona-cms-docs/resources/html/tutorial/index.html.
Attached you will find the file and it would be very 
appreciated if you comment on this. Is it all right or
are there some flaws? 

At the Documentation page I missed an item
concerning new doctypes (according to 'group' or
'department'). I would like to create and incooperate a new
doctype and I'm willing to write down the steps I have
taken to do this.

By the way: what about xopus? Is it now open source?

Best wishes
Jürgen




-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
index.html (text/html, 4.4 KB)
<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>WYONA - Content Management System</title>
    <style type="text/css">
      <!--
        a {
            color: #0066FF;
            text-decoration: none;
        }

        a:visited {
            color: #669999;
            text-decoration: none;
        }
      -->
    </style>
</head>

<body bgcolor="#ffffff">
<font face="verdana">

<h1>Tutorial</h1>
<h2>Creating a new publication</h2>
<ol>
  <li>Copy Approriate Sample Publication
      <br>(for instance: <code>cp -r wyona/cms/pubs/ethz-mat wyona/cms/pubs/MY-PUB</code>)<br>&nbsp;</li>

  <li>Rename the ethz/mat subdirectories - if you like ;-)
      <br>for instance: ethz-mat/docs/ethz/mat  ==&gt;  MY-PUB/docs/standard/t01
      <br>and: ethz-mat/stylesheets/ethz/mat  ==&gt;  MY-PUB/stylesheets/standard/t01<br>&nbsp;
   </li><li>Configure <b>sitemap.xmap</b>
      <br>for instance: replace ethz-mat by MY-PUB:
      <br>   ...
      <br>&lt;map:match pattern="MY-PUB/**"&gt;
      <br>   ...
      <br>&lt;map:mount uri-prefix="MY-PUB" src="wyona/cms/pubs/MY-PUB/sitemap.xmap" check-reload="true" reload-method="synchron"/&gt;
      <br>   ...<br>&nbsp;
  </li><li>If you use the html-editor modify 'wyonaPath'
      <br>in the java-class <b>org.wyona.cms.cocoon.acting.EditorMainAction</b>
      <br>for instance: <code>String wyonaPath="wyona/cms/pubs/MY-PUB/docs/standard/t01/";</code><br>
      and recompile.
      <br>&nbsp</li>
  <li>Mount <b>sitemap.xmap</b> from the root sitemap.xmap which is located within the wyona-cms directory
      <br>...<br>
      <code>
     &lt;map:match pattern="MY-PUB/**"&gt;<br>
       &lt;map:mount uri-prefix="MY-PUB" src="wyona/cms/pubs/MY-PUB/sitemap.xmap" check-reload="true" reload-method="synchron"/&gt;<br>
     &lt;/map:match&gt;
      </code><br>...<br>&nbsp;</li>
  <li>Set Prefix for Stylesheets (for instance: replace ethz-mat by MY-PUB)
      <br>File <b>wyona/cms/pubs/MY-PUB/stylesheets/standard/t01/Configuration/read.xsl:</b>
      <br>...<br><code>&lt;xsl:variable name="prefix"&gt;/wyona-cms/MY-PUB/live&lt;/xsl:variable&gt;</code><br>...<br>
      <br>File <b>wyona/cms/pubs/MY-PUB/stylesheets/Configuration/read.xsl:</b>
      <br>...<br><code>&lt;xsl:variable name="prefix"&gt;/MY-PUB&lt;/xsl:variable&gt;</code><br>...<br>&nbsp;</li>

  <li>Set Name of Publication: <b>wyona/cms/pubs/MY-PUB/stylesheets/wyona/cms/conf/conf.xsl</b>
      <br>(for instance: replace "Materials Science" by "My Publication"), i.e. <br>...
      <br><code>&lt;xsl:variable name="publication"&gt;My Publication&lt;/xsl:variable&gt;</code><br>...<br>&nbsp;</li>
  <li>Start modifying the XML, XSLT and the various sitemaps<br>&nbsp;
    <ol>
      <li>Create XSLT from HTML with JTidy:
        <br><code>export PATH=/usr/local/jdk1.3.1/bin:$PATH</code>
        <br><code>java&#160;-classpath&#160;WYONACMS/build/wyona-cms/classes:WYONACMS/build/wyona-cms/webapp/WEB-INF/lib/jtidy-04aug2000r7-dev.jar&#160;org.wyona.util.TidyCommandLine</code>
      <br>&nbsp;</li>
      <li><b>webapp/wyona/cms/docs/cms/menus/live.xsp:</b>
      <br><pre>
        ...
        &lt;context_prefix&gt;/wyona-cms/MY-PUB&lt;/context_prefix&gt;
        &lt;prefix&gt;MY-PUB&lt;/prefix&gt;
        ...</pre><br>&nbsp;</li>
       <li><b>webapp/wyona/cms/pubs/MY-PUB/docs/cms/menus/live.xsp:</b>
       <br><pre>
        ...
        &lt;context_prefix&gt;/wyona-cms/MY-PUB&lt;/context_prefix&gt;
        &lt;prefix&gt;MY-PUB&lt;/prefix&gt; </pre><br>&nbsp;</li>
      <li><b>wyona/cms/pubs/MY-PUB/sitemap.xmap:</b>
      <br><pre>
        ...
        &lt;authenticator type="MY-PUB"/&gt;
        &lt;policies&gt;MY-PUB/policies/&lt;/ policies&gt;
        ...
        &lt;type&gt;MY-PUB&lt;/type&gt;
        &lt;passwd&gt;MY-PUB/passwd/&lt;/passwd&gt;
        ...
        &lt;map:parameter name="publication_name" value="MY-PUB"/&gt;
        &lt;map:parameter name="publication_id" value="MY-PUB"/&gt;
        &lt;map:parameter name="wyona_path" value="wyona/cms/pubs/MY-PUB/docs/standard/t01/" /&gt;
        ...
        &lt;map:parameter name="publication_name" value="MY-PUB"/&gt;
        ...</pre><br>&nbsp;</li>
      <li><b>webapp/wyona/cms/pubs/MY-PUB/stylesheets/wyona/cms/edit/Page/root.xsl:</b><br>...
      <br>&lt;a href="/wyona-cms/MY-PUB/switch-user"&gt;Switch&#160;User&lt;/a&gt;
      <br> ...
      <br>&lt;a href="/wyona-cms/MY-PUB/logout"&gt;Logout&lt;/a&gt;<br>...<br>&nbsp;
      </li>
    </ol>
  </li>
</ol>
</font>
</body>
</html>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.