[opencms-dev] Personalization + General Questions

Manfred Pruntsch manfred.pruntsch at ifcos.com
Wed Aug 14 10:26:01 CEST 2002


Hi beffe,

The absolute root of the current site is for example
/default/vfs. it can be accessed with cms.getSiteRoot(String resourcename);
/default is the sitename. it can be accessed with cms.getSiteName();.
vfs is the start of the virtual file system.

The absolute root of the content object system (cos) is for example
/default/cos.

The methods setContexttoCos and setContexttoVfs are methods of the CmsObject
class.
They can be invoked as cms.setContexttoCos() and cms.setContexttoVfs().
They set the name of the current site root to /vfs and /cos respectively.

cms.setContexttoCos();
//walk on folder (channels)
... code for walking. it will be built in the same way as for folders in
vfs.
//end of walking
cms.setContexttoVfs();    //do not forget to switch back to vfs

A new channel can be created with
createChannel(String parentChannel, String newChannelName);
hope this helps,

best regards
Manfred



> -----Original Message-----
> From: owner-opencms-dev at www.opencms.org
> [mailto:owner-opencms-dev at www.opencms.org]On Behalf Of Beffe
> Sent: Monday, August 12, 2002 9:10 PM
> To: opencms-dev at www.opencms.org
> Subject: RE: [opencms-dev] Personalization + General Questions
>
>
> Hi Manfred,
>
> the last version of the news module is 4 from Aug 9th, 2001. And the cvs
> files aren't newer. Is this version ready for this kind of channels? I
> mean it comes with its own.
> Could you please explain a little more in detail how to set this up?
> setContexttoCos, is it a method? Where?
>
> I think many people on this list will be grateful for this information.
>
> bye,
> beffe
>
> btw (Tomcat classes): there is no need to restart tomcat if the classes
> are only in opencms's vfs. to avoid the
> lock/delete/publish/upload/publish procedure set up synchronization of
> /system/classes folder with your filesystem.
>
>
> > Channels provide a opportunity to divide the content in categories
> > (channels) without the effort to programming it. It is already
> implemented.
> > For example: You write a news module and you need the channels
> news/sport
> > and news/business. The module get the property
> 'rootchannel=/nes'. The part
> > /news of the channel tree is used by your module now. Users can
> easily add
> > more channels under the /news branch.
> > The root of the virtual file system start with: /default/vfs ?
> > The root of the channel system start with: /default/cos ?
> > The access of channels is the same as to folders of vfs. You can sitch
> > between these trees with:
> > setContexttoCos and setContexttoVfs.
> > The newer version of the news module is a good example for channels.
> >
> >
> > >
> > > 2. Can I somehow test new classes whithout restarting Tomcat?
> >
> > see http://www.opencms.org/majordomo/opencms-dev/0207/msg00022.html
> > for further details.
> >
> >
> > best regards
> > Manfred
> >
> >
> > > -----Original Message-----
> > > From: owner-opencms-dev at www.opencms.org
> > > [mailto:owner-opencms-dev at www.opencms.org]On Behalf Of Thomas März
> > > Sent: Monday, July 29, 2002 11:35 AM
> > > To: opencms-dev at opencms.com
> > > Subject: [opencms-dev] Personalization + General Questions
> > >
> > >
> > > Hello,
> > >
> > > I am trying to use personalized content with OpenCms.
> > > But until now I am quite at the beginning with this task.
> > >
> > > First I have some questions to point
> > > 3.4.9 (Personalization) in the Documentation.
> > >
> > > 1. "Web page content is easily adapted
> > >    to each user's profile and preferences."
> > >    But how do I do this?
> > >
> > > 2. "specify their preferences manually or let them
> > >    be automatically generated by enabling
> > >    the system to analyze their surfing habits."
> > >    Where is this done?
> > >
> > > Now I have some other questions.
> > >
> > > 1. Is there a difference between a Web-User
> > >    and a Guest-User?
> > >
> > > 2. If I want to provide a formular to register
> > >    a new user - to provide personalized content -
> > >    do I have to use the addWebUser method?
> > >    And if yes, do I need to to login as Admin
> > >    in my class that adds the user first to add
> > >    this User (with the addUser method I have to)?
> > >
> > > Let's say now I have different users in different groups.
> > >
> > > 1. How do I administer personalized content for every
> > >    user and/or every group of users best?
> > >    Is this done by the permissions of the files?
> > >    And where/how do I store different content
> > >    for different groups/users best?
> > >
> > > 2. Is there already a solution available I didn't see?
> > >     If not could somebody give me a clue how I should
> > >     do this? With a templateselector for every group in every file?
> > >
> > > Now I have some general questions.
> > >
> > > 1. What for is the administration-point "Channels"?
> > >    I still couldn't figure out.
> > >    Probably for personalization? ;-)
> > >
> > > 2. Can I somehow test new classes whithout restarting Tomcat?
> > >
> > >
> > > I hope my questions are not too stupid neither to annoying
> > > and hopefully can somebody help me.
> > >
> > > Thanks a lot.
> > >
> > > Thomas Maerz
> >
>
>




More information about the opencms-dev mailing list