You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Apache Wiki <wi...@apache.org> on 2005/05/14 22:47:17 UTC

[Lenya Wiki] Update of "NewPublicationHowTo" by GregorRothfuss

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.

The following page has been changed by GregorRothfuss:
http://wiki.apache.org/lenya/NewPublicationHowTo

The comment on the change is:
moved to lenya docs

------------------------------------------------------------------------------
- This !HowTo briefly describes how to setup a new ''empty'' publication. Since there is no click and klack function to create new publications (i.e. with a wizard) the instructions given here will focus on editing xml, xslt and xmap files. At time of release 1.2 developers are experimenting Ant task to create a new publication automagically, at the moment threse are the steps that you should follow.
+ deleted
  
- '''Note:''' At the moment, you need the source distribution of Lenya to create new publications.[[BR]]
- '''Note:''' All {{{http://localhost}}} URLs on this page are assuming that you use the Jetty servlet engine.
- 
- Attached is a diagram of a [attachment:lenya-setup.pdf typical Lenya setup].
- 
- First of all make a copy of the default publication and rename it (the new publication is named NEW-PUB).
- 
- Directory structure:
- {{{
- /home/foo/
-           cocoon-lenya/         <- $LENYA_HOME
-           publications/         <- $PUBLICATIONS_HOME
-                        NEW-PUB  <- $NEW_PUB_HOME
- }}}
- 
- 
- Linux
- {{{cd $LENYA_HOME/src/webapp/lenya/pubs
- cp -r default $PUBLICATIONS_HOME/NEW-PUB
- }}}
- 
- Windows
- {{{cd %LENYA_HOME%\src\webapp\lenya\pubs\
- copy -r default %PUBLICATIONS_HOME%\NEW-PUB
- }}}
- 
- Then follow these steps:
-  1. Move to {{{$NEW_PUB_HOME}}} folder and edit the {{{publication.xml}}} file in this directory to describe your new publication. Specifically, edit the {{{/lenya:publication/lenya:name}}} tag to reflect the name of your publication.
-  1. Move to {{{$NEW_PUB_HOME/config/ac/}}} and edit {{{ac.xconf}}} changing every occurence of default with NEW-PUB;
-  1. Move to {{{$NEW_PUB_HOME/config/tasks/}}} and edit {{{targets.xml}}} changing {{{<property name="export.expression" value="/lenya/default/live/"/>}}} to {{{<property name="export.expression" value="/lenya/NEW-PUB/live/"/>}}}.
-  1. Deploy your publication (see DeployPublicationHowTo)
-  1. The should then show up on the page at {{{http://localhost:8888}}};
-  1. Add new users using {{{http://localhost:8888/NEW-PUB/admin/users.html}}} (for security reasons it's better to remove default users or at least change passwords) If you get a !JavaScript error, check if the files under NEW-PUB have the correct permissions to be modified by your servlet engine;
-  1. Delete pages of default publication leaving only the Home page available. Probably you would like to delete german pages (german is labelled with "de" string) and add you language:
-   1. in Authoring mode {{{http:/localhost:8888/NEW-PUB/info-authoring/index.html?lenya.usecase=info-overview&lenya.step=showscreen}}}, click on "de" tab and start removing the german pages
-   1. edit the {{{$NEW_PUB_HOME/config/publication.xconf}}} file removing the element {{{<language>de</language>}}} (be sure you have removed all german page before) and eventually add you language. Pay attention, you can add your language even if there's not an available translation for Lenya CMS interface (i.e. you can add "ru" for russian even if available Lenya is translated only in english or german). The servlet container has to be restarted to apply the changes to the language configuration.
- 
- Optional:
-  1. Move to {{{$NEW_PUB_HOME/config/doctypes/samples/}}} and edit {{{xhtml.xml}}} changing the page that is shown when you create a new document.
-  1. Start changing the look & feel of default publication to the one you want to your new publication. See: ApplicationLookandFeelHowto
-  1. Deploy your publication when you made changes to the source.
- 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org