[opencms-dev] Module with new structured content type

Arash Kaffamanesh arash.kaffamanesh at pomegranate.de
Sat Dec 2 18:26:58 CET 2006


You shall get only an error, try it simply out ;-)

 

The solution is simply to have a look in opencms-modules.xml, where all
types are registered and get sure that all id's are unique.

 

Regards,

Arash

 

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Andy Bicksbo
Sent: Samstag, 2. Dezember 2006 18:14
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Module with new structured content type

 

Do i only get an error and opencms is running or do i get an error and
opencms is not able to startup?

Do you know a solution for this issue?

Is there something provided by opencms to check all ids at startup and
update a type id at startup ?

 

thanx a lot

Andy

 

2006/12/2, Jonathan Woods <jonathan.woods at scintillance.com>: 

You'd get an error, and there's no automatic handling for this condition.

 

Jon

 

  _____  

From: sfdbfoui at host2.scintillance.com [mailto:
<mailto:sfdbfoui at host2.scintillance.com>  sfdbfoui at host2.scintillance.com]
On Behalf Of Andy Bicksbo
Sent: 02 December 2006 15:31
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Module with new structured content type 

 

Hi

 

I have another question concerning this. 

So if i register a new structurd content with the id say 60, export the
complete module and import it on an unknown opencms system.

So what happens when at the new system this id 60 already exists. Is there a
handling for this provided? or will i get an error at next container startup
when this id already exitsts?

 

Andy 

 

2006/12/1, Andy Bicksbo <schlachtzeuger at gmail.com>: 

Thanks very mauch, that helps a lot

2006/12/1, Carl Alex Friis Nielsen <cfn at kb.dk>: 

From: opencms-dev-bounces at opencms.org@KB On Behalf Of "Andy Bicksbo" <
<mailto:schlachtzeuger at gmail.com>  schlachtzeuger at gmail.com>

> If i want to create a new structured content type i have to register it in
opencms-
> modules.xml. How to do this is very clear to me.
> But how do I have to set up a new Module, that new structred content 
> types get registeres in the opencms-modules.xml for that module at
install?

First you have to insert the registration in some existing module
(you can create a new one for it)

Then when you export that module the registration info in
opencms-modules.xml
is exported as part of the module and when you import that module the
registration
info will be added to the opencms-modules.xml file of the new cms instance.

Cheers,

Carl

_______________________________________________ 
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev 

 







_______________________________________________
This mail is sent to you from the opencms-dev mailing list 
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20061202/fd6c896b/attachment.htm>


More information about the opencms-dev mailing list