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

Jim 20100 jim20100 at ifrance.com
Tue Mar 9 11:44:01 CET 2004


Thanks, I understand that.
But for the moment I just want that my new resource type appears if I
click on the new button.
I looked at the script and there is a loop on the vi.resource
variables from the restypes files.

It does not work for me.

Regards

-----Message d'origine-----
De: "Olli Aro" <olli_aro at yahoo.co.uk>
A: <opencms-dev at opencms.org>
Date: 04/03/04
Objet: RE: [opencms-dev] Add new resources type ??? (bis)

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 ?

20100


_____________________________________________________________________
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

_______________________________________________
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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.605 / Virus Database: 385 - Release Date: 01/03/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.605 / Virus Database: 385 - Release Date: 01/03/2004
 

_______________________________________________
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