You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Rolf Kulemann <ma...@rolf-kulemann.com> on 2003/10/26 21:28:18 UTC

Re: [RT ] Cloning/Overwriting publications (was: Re: Customizing default publication)

On Sun, 2003-10-26 at 19:40, Michael Wechner wrote:
> Rolf Kulemann wrote:
> 
> > Hello List,
> > 
> > my plan is to copy the default publication and use that copy as basis
> > for a new publication. 
> 
> 
> Since publications are being improved and enhanced, I think we should 
> give it some thought how we can solve the problem of cloning/overwriting 
> publications without entering a maintenance nightmare.
> 
> A very first simple step would be to provide a clone.xml where all the
> files are being listed (to be copied and patched with XSLT) which are 
> necessary for a certain publication.
> 
> Another idea might be that each publication has a "template publication" 
> which contains all the necessary files. This way you wouldn't have to 
> copy them actually.

Sounds for me, that I can not copy an existing pub to use as basis for a
new one? Ok, but what is the best way to start with a new pub then? I
need your help to setup a pub from scratch. I haven't found any docs
about it. 

I think my problem is: Lenya is a cms framework and not a ready to use
cms, as I thought. So I can use the default pub to see how everything
could work and then I have to set up everything by hand?

I'm sure there is a way to use the default pub as a basis for a new one.
I have little time at the mom, but I will continue trying to customize
the default pub.


-- 
Rolf Kulemann

"Why be a man when you can be a success?"
		-- Bertold Brecht


PGP/GPG public key:
	 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA


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


Re: AW: [RT ] Cloning/Overwriting publications

Posted by Rolf Kulemann <ma...@rolf-kulemann.com>.
On Sun, 2003-10-26 at 21:15, Christian Kreutz wrote:
> 
> Sorry maybe I got you wrong but how can you publish something when you
> remove it first from the sitetree?

Of course you publish another site than the removed one :)

I will give it another try now. So stay tuned....


-- 
Rolf Kulemann

The plot was designed in a light vein that somehow became varicose.
		-- David Lardner


PGP/GPG public key:
	 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA


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


AW: [RT ] Cloning/Overwriting publications

Posted by Christian Kreutz <sc...@gmx.de>.

> -----Ursprüngliche Nachricht-----
> Von: Rolf Kulemann [mailto:mail@rolf-kulemann.com]
> Gesendet: Sonntag, 26. Oktober 2003 21:57
> An: Lenya Users List
> Betreff: Re: [RT ] Cloning/Overwriting publications
> 
> On Sun, 2003-10-26 at 20:51, Michael Wechner wrote:
> > Rolf Kulemann wrote:
> >
> > > On Sun, 2003-10-26 at 20:34, Andreas Hartmann wrote:
> > >
> > >>Rolf Kulemann wrote:
> > >>
> > >>>Sounds for me, that I can not copy an existing pub to use as
basis
> for a
> > >>>new one?
> > >>
> > >>I guess it will take several weeks until publication cloning /
> > >>templating is ready to use, even if we really start working on
> > >>it now. Until then, you have to copy the publication by hand.
> > >
> > >
> > > Mhh. I HAVE copied it by hand. I copied pubs/default to
pubs/mindpipe.
> > > After that I removed one entry from sitemap.xml from mindpipe pub.
If
> > > you then try to edit a already published doc and save it and
publish
> > > that doc the changes are not copied to live area. I will now try
to
> > > disable error handling, but I think I won't see anything, because
I
> get
> > > no error. The problem is: I click publish and get no error. If I
then
> > > try to watch the file in live area, I can't see changes in case of
a
> > > already published doc and the error file not published in case of
a
> > > first time publish.
> >
> > maybe you should do a "grep -rl default
> src/webapp/lenya/pubs/mindpipe/*"
> 
> I have already tried that, but I do it again.
> Beside this, the above problem after removing stuff from sitetree.xml
> also happens if I directly use the default pub. This means, remove a
nav
> item from pubs/default/content/authoring/sitetree.xml and try to
publish
> a doc. Nothing happens here.
> 

Sorry maybe I got you wrong but how can you publish something when you
remove it first from the sitetree?

I do constantly work with the default pub to develop new publications
and it works fine. Here is a quick an dirty way.

1) Create your own directories and files in the live area and put the
images into the resources. Change and add styles to the stylsheet
/resource/css/pages.css For example change the stylsheet for the menue
or tabs.

2) Go the xslt/page2xhtml.xsl and create your own layout. Place the
body, menue tabs where and how you want them.

3) Copy the live are to the live area file to the authoring area and
start using cms. It works just fine with some exceptions for the
workflow...

Hope it helps 

Greetings 
Christian


> 
> --
> Rolf Kulemann
> 
> 	A master was explaining the nature of Tao to one of his
> novices.  "The Tao is embodied in all software -- regardless of how
> insignificant," said the master.
> 
> 	"Is Tao in a hand-held calculator?" asked the novice.
> 
> 	"It is," came the reply.
> 
> 	"Is the Tao in a video game?" continued the novice.
> 
> 	"It is even in a video game," said the master.
> 
> 	"And is the Tao in the DOS for a personal computer?"
> 
> 	The master coughed and shifted his position slightly.  "The
> lesson is over for today," he said.
> 		-- "The Tao of Programming"
> 
> 
> PGP/GPG public key:
> 	 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org




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


Re: [RT ] Cloning/Overwriting publications

Posted by Rolf Kulemann <ma...@rolf-kulemann.com>.
On Sun, 2003-10-26 at 20:51, Michael Wechner wrote:
> Rolf Kulemann wrote:
> 
> > On Sun, 2003-10-26 at 20:34, Andreas Hartmann wrote:
> > 
> >>Rolf Kulemann wrote:
> >>
> >>>Sounds for me, that I can not copy an existing pub to use as basis for a
> >>>new one?
> >>
> >>I guess it will take several weeks until publication cloning /
> >>templating is ready to use, even if we really start working on
> >>it now. Until then, you have to copy the publication by hand.
> > 
> > 
> > Mhh. I HAVE copied it by hand. I copied pubs/default to pubs/mindpipe.
> > After that I removed one entry from sitemap.xml from mindpipe pub. If
> > you then try to edit a already published doc and save it and publish
> > that doc the changes are not copied to live area. I will now try to
> > disable error handling, but I think I won't see anything, because I get
> > no error. The problem is: I click publish and get no error. If I then
> > try to watch the file in live area, I can't see changes in case of a
> > already published doc and the error file not published in case of a
> > first time publish.
> 
> maybe you should do a "grep -rl default src/webapp/lenya/pubs/mindpipe/*"

I have already tried that, but I do it again.
Beside this, the above problem after removing stuff from sitetree.xml
also happens if I directly use the default pub. This means, remove a nav
item from pubs/default/content/authoring/sitetree.xml and try to publish
a doc. Nothing happens here.


-- 
Rolf Kulemann

	A master was explaining the nature of Tao to one of his
novices.  "The Tao is embodied in all software -- regardless of how
insignificant," said the master.

	"Is Tao in a hand-held calculator?" asked the novice.

	"It is," came the reply.

	"Is the Tao in a video game?" continued the novice.

	"It is even in a video game," said the master.

	"And is the Tao in the DOS for a personal computer?"

	The master coughed and shifted his position slightly.  "The
lesson is over for today," he said.
		-- "The Tao of Programming"


PGP/GPG public key:
	 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA


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


Re: [RT ] Cloning/Overwriting publications

Posted by Michael Wechner <mi...@wyona.com>.
Rolf Kulemann wrote:

> On Sun, 2003-10-26 at 20:34, Andreas Hartmann wrote:
> 
>>Rolf Kulemann wrote:
>>
>>>Sounds for me, that I can not copy an existing pub to use as basis for a
>>>new one?
>>
>>I guess it will take several weeks until publication cloning /
>>templating is ready to use, even if we really start working on
>>it now. Until then, you have to copy the publication by hand.
> 
> 
> Mhh. I HAVE copied it by hand. I copied pubs/default to pubs/mindpipe.
> After that I removed one entry from sitemap.xml from mindpipe pub. If
> you then try to edit a already published doc and save it and publish
> that doc the changes are not copied to live area. I will now try to
> disable error handling, but I think I won't see anything, because I get
> no error. The problem is: I click publish and get no error. If I then
> try to watch the file in live area, I can't see changes in case of a
> already published doc and the error file not published in case of a
> first time publish.

maybe you should do a "grep -rl default src/webapp/lenya/pubs/mindpipe/*"


HTH

Michi


> 
> 


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org



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


Re: [RT ] Cloning/Overwriting publications

Posted by Rolf Kulemann <ma...@rolf-kulemann.com>.
On Sun, 2003-10-26 at 20:34, Andreas Hartmann wrote:
> Rolf Kulemann wrote:
> > Sounds for me, that I can not copy an existing pub to use as basis for a
> > new one?
> 
> I guess it will take several weeks until publication cloning /
> templating is ready to use, even if we really start working on
> it now. Until then, you have to copy the publication by hand.

Mhh. I HAVE copied it by hand. I copied pubs/default to pubs/mindpipe.
After that I removed one entry from sitemap.xml from mindpipe pub. If
you then try to edit a already published doc and save it and publish
that doc the changes are not copied to live area. I will now try to
disable error handling, but I think I won't see anything, because I get
no error. The problem is: I click publish and get no error. If I then
try to watch the file in live area, I can't see changes in case of a
already published doc and the error file not published in case of a
first time publish.


-- 
Rolf Kulemann

All science is either physics or stamp collecting.
		-- E. Rutherford


PGP/GPG public key:
	 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA


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


Re: [RT ] Cloning/Overwriting publications

Posted by Andreas Hartmann <an...@apache.org>.
Rolf Kulemann wrote:

> On Sun, 2003-10-26 at 19:40, Michael Wechner wrote:
> 
>>Rolf Kulemann wrote:
>>
>>
>>>Hello List,
>>>
>>>my plan is to copy the default publication and use that copy as basis
>>>for a new publication. 
>>
>>
>>Since publications are being improved and enhanced, I think we should 
>>give it some thought how we can solve the problem of cloning/overwriting 
>>publications without entering a maintenance nightmare.

[...]

> Sounds for me, that I can not copy an existing pub to use as basis for a
> new one?

I guess it will take several weeks until publication cloning /
templating is ready to use, even if we really start working on
it now. Until then, you have to copy the publication by hand.

-- Andreas



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


Re: [RT ] Cloning/Overwriting publications

Posted by Andreas Hartmann <an...@apache.org>.
Rolf Kulemann wrote:

> On Mon, 2003-10-27 at 10:20, Andreas Hartmann wrote:
> 
>>Actually, I'm working on such a tutorial. But it takes a lot of time
>>and won't be finished during the next days.
>>
> 
> 
> Maybe you can show me what you already have. So I can validate the steps
> and try to contribute some parts of the tutorial. (If you want)

It's in the cocooncenter publication in the lenya-samples module
(www.wyona.org). There are just a few files, I don't know what
is already included in the sitetree.

-- Andreas



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


Re: [RT ] Cloning/Overwriting publications

Posted by Rolf Kulemann <ma...@rolf-kulemann.com>.
On Mon, 2003-10-27 at 10:20, Andreas Hartmann wrote:
> 
> Actually, I'm working on such a tutorial. But it takes a lot of time
> and won't be finished during the next days.
> 

Maybe you can show me what you already have. So I can validate the steps
and try to contribute some parts of the tutorial. (If you want)

Again a question:

How do you delete a document from sitetree? There is by default no
"delete" option in file menu or so.

I'm sure, that removing it directly from sitetree.xml breaks workflow in
lenya. I'm currently digging in the publish usecase to locate the
problem.


-- 
Rolf Kulemann

Hartley's First Law:
	You can lead a horse to water, but if you can get him to float
on his back, you've got something.


PGP/GPG public key:
	 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA


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


Re: [RT ] Cloning/Overwriting publications

Posted by Andreas Hartmann <an...@apache.org>.
Michael Wechner wrote:
> Rolf Kulemann wrote:

[...]

> If nobody disagrees then I would like to add a "hello-world" pub, which
> has the minimal ingredients. Hey, another pub ;-)

-1 (at least not before 1.2)

>  I
> 
>> need your help to setup a pub from scratch. I haven't found any docs
>> about it. 
> 
> 
> I'm afraid not. But I am sure everyone would welcome a tutorial on this 
> very much ...

Actually, I'm working on such a tutorial. But it takes a lot of time
and won't be finished during the next days.

-- Andreas



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


Re: [RT ] Cloning/Overwriting publications

Posted by Michael Wechner <mi...@wyona.com>.
Rolf Kulemann wrote:

> On Sun, 2003-10-26 at 19:40, Michael Wechner wrote:
> 
>>Rolf Kulemann wrote:
>>
>>
>>>Hello List,
>>>
>>>my plan is to copy the default publication and use that copy as basis
>>>for a new publication. 
>>
>>
>>Since publications are being improved and enhanced, I think we should 
>>give it some thought how we can solve the problem of cloning/overwriting 
>>publications without entering a maintenance nightmare.
>>
>>A very first simple step would be to provide a clone.xml where all the
>>files are being listed (to be copied and patched with XSLT) which are 
>>necessary for a certain publication.
>>
>>Another idea might be that each publication has a "template publication" 
>>which contains all the necessary files. This way you wouldn't have to 
>>copy them actually.
> 
> 
> Sounds for me, that I can not copy an existing pub to use as basis for a
> new one?

sure you can but it's a matter of maintenance. A clone.xml would 
certainly help.

  Ok, but what is the best way to start with a new pub then?


If nobody disagrees then I would like to add a "hello-world" pub, which
has the minimal ingredients. Hey, another pub ;-)

  I
> need your help to setup a pub from scratch. I haven't found any docs
> about it. 

I'm afraid not. But I am sure everyone would welcome a tutorial on this 
very much ...

> 
> I think my problem is: Lenya is a cms framework and not a ready to use
> cms, as I thought. So I can use the default pub to see how everything
> could work and then I have to set up everything by hand?

no, the idea is that you use an existing pub and just need to customize 
the layout (e.g. the "blog" publication: http://127.0.0.1:8080/lenya/blog/)

> 
> I'm sure there is a way to use the default pub as a basis for a new one.
> I have little time at the mom, but I will continue trying to customize
> the default pub.

it sounds to me the most reasonable for the time being

Michi


> 
> 


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org



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