[opencms-dev] Add new resources type ??? (bis)

Jim 20100 jim20100 at ifrance.com
Tue Mar 9 12:00:04 CET 2004


Thanks but it does not work.

I do not have my new type if I click on New button.

Do you know how to import the workplace without going through the setup.

Regards

-----Message d'origine-----
De: Vincent Hanniet <vhanniet at free.fr>
A: opencms-dev at opencms.org
Date: 04/03/04
Objet: Re: [opencms-dev] Add new resources type ??? (bis)

Hello,
You will also need to create also the class 
com.opencms.workplace.CmsNewResourcePhotoGallery in order to be able to 
create a document with your new type.
Vincent

Olli Aro wrote:
> Hi Jim,
> 
> Those instructions were just for adding a new resource type, so you
can add
> files based on your resource type via your JSP code. If you want to
create
> files based on this resource type as part of the workplace you have to
> modify the workplace accordingly. The JavaScript creating the file
type menu
> is stored in /system/workplace/templates/explorer_files_new, so you
can add
> your option to the list there. However you still have to create
workplace
> action and template files for your new resource type as well. I have
used in
> the past files /system/workplace/action/explorer_files_new_page.html
and
> /system/workplace/templates/explorer_files_new_page as samples to
achieve
> this.
> 
> Regards,
> 
> Olli  
> 
> -----Original Message-----
> From: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org]
> On Behalf Of Jim 20100
> Sent: 03 March 2004 10:30
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] Add new resources type ??? (bis)
> 
> Hello,
> 
> I tried to follow the procedure read in this mailing list but it does
> not work:
> 
> 1) I have changed the registry.xml
> 2) I have created a class com.opencms.file.CmsResourceTypePhotoGallery
> by copying com.opencms.file.CmsResourceTypePlain
> 3) I have added a new "photogallery" in 
> WEB-INF/ocsetup/vfs/system/workplace/restypes
> 
> It does not work ??
> 
> When we try to make a new file in the workspace, we find only seven
> types (folder, page, link., text, XML Template, JSP, Upload new file).
> 
> I believed that a loop was done on the vi.resource Javascript variable
> we can insert in the WEB-INF/ocsetup/vfs/system/workplace/restypes
> files.
> 
> Who knows the solution ?
> 
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France

_____________________________________________________________________
Un mot doux à envoyer? Une sortie ciné à organiser? Faites le en temps
réel avec MSN Messenger! C'est gratuit!   http://ifrance.com/_reloc/m

_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France




More information about the opencms-dev mailing list