Tutorial Creating a new Publication
| 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> </li>
<li>Rename the ethz/mat subdirectories - if you like ;-)
<br>for instance: ethz-mat/docs/ethz/mat ==> MY-PUB/docs/standard/t01
<br>and: ethz-mat/stylesheets/ethz/mat ==> MY-PUB/stylesheets/standard/t01<br>
</li><li>Configure <b>sitemap.xmap</b>
<br>for instance: replace ethz-mat by MY-PUB:
<br> ...
<br><map:match pattern="MY-PUB/**">
<br> ...
<br><map:mount uri-prefix="MY-PUB" src="wyona/cms/pubs/MY-PUB/sitemap.xmap" check-reload="true" reload-method="synchron"/>
<br> ...<br>
</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> </li>
<li>Mount <b>sitemap.xmap</b> from the root sitemap.xmap which is located within the wyona-cms directory
<br>...<br>
<code>
<map:match pattern="MY-PUB/**"><br>
<map:mount uri-prefix="MY-PUB" src="wyona/cms/pubs/MY-PUB/sitemap.xmap" check-reload="true" reload-method="synchron"/><br>
</map:match>
</code><br>...<br> </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><xsl:variable name="prefix">/wyona-cms/MY-PUB/live</xsl:variable></code><br>...<br>
<br>File <b>wyona/cms/pubs/MY-PUB/stylesheets/Configuration/read.xsl:</b>
<br>...<br><code><xsl:variable name="prefix">/MY-PUB</xsl:variable></code><br>...<br> </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><xsl:variable name="publication">My Publication</xsl:variable></code><br>...<br> </li>
<li>Start modifying the XML, XSLT and the various sitemaps<br>
<ol>
<li>Create XSLT from HTML with JTidy:
<br><code>export PATH=/usr/local/jdk1.3.1/bin:$PATH</code>
<br><code>java -classpath WYONACMS/build/wyona-cms/classes:WYONACMS/build/wyona-cms/webapp/WEB-INF/lib/jtidy-04aug2000r7-dev.jar org.wyona.util.TidyCommandLine</code>
<br> </li>
<li><b>webapp/wyona/cms/docs/cms/menus/live.xsp:</b>
<br><pre>
...
<context_prefix>/wyona-cms/MY-PUB</context_prefix>
<prefix>MY-PUB</prefix>
...</pre><br> </li>
<li><b>webapp/wyona/cms/pubs/MY-PUB/docs/cms/menus/live.xsp:</b>
<br><pre>
...
<context_prefix>/wyona-cms/MY-PUB</context_prefix>
<prefix>MY-PUB</prefix> </pre><br> </li>
<li><b>wyona/cms/pubs/MY-PUB/sitemap.xmap:</b>
<br><pre>
...
<authenticator type="MY-PUB"/>
<policies>MY-PUB/policies/</ policies>
...
<type>MY-PUB</type>
<passwd>MY-PUB/passwd/</passwd>
...
<map:parameter name="publication_name" value="MY-PUB"/>
<map:parameter name="publication_id" value="MY-PUB"/>
<map:parameter name="wyona_path" value="wyona/cms/pubs/MY-PUB/docs/standard/t01/" />
...
<map:parameter name="publication_name" value="MY-PUB"/>
...</pre><br> </li>
<li><b>webapp/wyona/cms/pubs/MY-PUB/stylesheets/wyona/cms/edit/Page/root.xsl:</b><br>...
<br><a href="/wyona-cms/MY-PUB/switch-user">Switch User</a>
<br> ...
<br><a href="/wyona-cms/MY-PUB/logout">Logout</a><br>...<br>
</li>
</ol>
</li>
</ol>
</font>
</body>
</html>