[opencms-dev] Code 300 - Resource loader not template enabled ???

Alexander Kandzior alex at opencms.org
Fri May 28 09:42:02 CEST 2004


Chage the import to "org.opencms.file.*". As announced on the opencms.org
homepage the 6.0 release will use the "org.opencms" package names, so you
must do some renaming.

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com


> -----Original Message-----
> From: opencms-dev-admin at opencms.org 
> [mailto:opencms-dev-admin at opencms.org] On Behalf Of Jakob Lemler
> Sent: Thursday, May 27, 2004 10:23 PM
> To: opencms-dev at opencms.org
> Subject: AW: [opencms-dev] Code 300 - Resource loader not 
> template enabled ???
> 
> 
> Alex,
> 
> first of all Thanks, most pages are working.
> 
> Except for one where I import "com.opencms.file.*" and use an 
> object "cms.getCmsObject()", it's in my login.form for the 
> CUG.. Can you tell me what I have to import to use the object 
> mentioned above?
> 
> Regards
> Jakob
> 
> -----Ursprüngliche Nachricht-----
> Von: opencms-dev-admin at opencms.org 
> [mailto:opencms-dev-admin at opencms.org] Im Auftrag von 
> Alexander Kandzior
> Gesendet: Donnerstag, 27. Mai 2004 13:51
> An: opencms-dev at opencms.org
> Betreff: RE: [opencms-dev] Code 300 - Resource loader not 
> template enabled ???
> 
> 
> You will have to change your templates. 
> 
> The import should have converted your "page" files (old 
> resource type in
> 5.0) to "xmlpage" files (new resource type since 5.3). The 
> whole mechanism around the loading of the pages has changed. 
> Not longer are pages 2 separate files, with the content 
> actually being stored in the /system/bodies/ folder. Instead 
> there is just one file where you created it. You can verify 
> this by using "Edit controlcode" on the file, which should 
> display the new XML structure. Old 5.0 content is 
> automatically changed to the new structure during import. 
> 
> What you must do is modify your template. The XMLTemplate 
> "mastertemplate" is gone, as is the old mechanism for 
> selecting the template. Now the template is just a property 
> on the resource called "template". This template property 
> must point to a JSP which in turn load the content pretty 
> much the same way as in version 5.0. 
> 
> To see a working example check out the 5.0 relaes note pages 
> and templates. You will need to adjust your templates accordingly.
> 
> Best Regards,
> Alex.
> 
> Alexander Kandzior
> Alkacon Software - The OpenCms Experts
> http://www.alkacon.com
> 
> 
> 
> > -----Original Message-----
> > From: opencms-dev-admin at opencms.org 
> > [mailto:opencms-dev-admin at opencms.org] On Behalf Of Kai Schliemann
> > Sent: Thursday, May 27, 2004 1:05 PM
> > To: opencms-dev at opencms.org
> > Subject: AW: [opencms-dev] Code 300 - Resource loader not
> > template enabled ???
> > 
> > 
> > Hi Jakob,
> > 
> > I have the same problem. Did you already find a solution?
> > 
> > TIA Kai
> > 
> > 
> > > -----Ursprungliche Nachricht-----
> > > Von: opencms-dev-admin at opencms.org 
> > > [mailto:opencms-dev-admin at opencms.org]Im Auftrag von Jakob Lemler
> > > Gesendet: Dienstag, 25. Mai 2004 21:43
> > > An: opencms-dev at opencms.org
> > > Betreff: [opencms-dev] Code 300 - Resource loader not
> > template enabled
> > > ???
> > >
> > >
> > > Hi,
> > >
> > > Installed version 5.3.4 under Tomcat 4.0.25 and imported my old 
> > > site,seemed to be ok but when I try to call a page I get 
> always the
> > > error:
> > >                       Code 300 - Resource loader not
> > template enabled
> > >
> > > Hope it is not a faq, but I did not found anything in the mail 
> > > archive...
> > >
> > > Thanks in advance
> > > Jakob
> > >
> > > _______________________________________________
> > > 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
> > 
> > _______________________________________________
> > 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
> > 
> > 
> > 
> 
> _______________________________________________
> 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
> 
> _______________________________________________
> 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
> 
> 
> 




More information about the opencms-dev mailing list