zmspublishing-developers Mailing List for ZMS
Brought to you by:
frankhoffmann,
zmsdev
You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|
|
From: Patrick G. <pg...@li...> - 2004-07-15 17:29:23
|
Hello,
right now I am working with the portal features of ZMS.
There I ran into trouble when I deleted the folder of an client site
before I deleted it from the client site list of the portal Master.
With ZMS 2.1 I could not access the managment interface AND the regular
view, and with ZMS 2.2 I could not get any more access to the managment
interface.
I guess for making the the whole thing more robust there needs to be
written methods for accessing the client or master objects which also
check the actual existence of the object. Is there some working going on
in this direction, or can I safely invest some time in this?
Another thing is the ZMS_COMMON directory. I want to create Client Site
by creating a new ZMS instance and deleting all dtml methods in its
directory.
But therefor I need a constant which always points to the common
directory to the master site. I wrote a new constant ZMS_COMMON_PORTAL
in zms/dtml/zms/f_standard_html_request.dtml:
<dtml-if "getConfProperty('Portal.Master')">
<dtml-call
"REQUEST.set('ZMS_COMMON_PORTAL','%s/common'%getattr(getHome(),getConfPrope=
rty('Portal.Master','')).absolute_url())">
<dtml-else>
<dtml-call
"REQUEST.set('ZMS_COMMON_PORTAL',REQUEST.get('ZMS_COMMON'))">
</dtml-if>
The last thing is multi language support with portals.
Within the master site I would like to have links to the client sites.
If the client site supports the same language the user is currently
using, I want him to connect to the correct site.
Of course I could write some logic for this directly into the dtml
templates, but I don't want too much logic inside of these. So I wrote a
small python script. Now I also found this:
ZMSObject.declHref2IndexHtml(REQUEST)=20
This method is nearly exactly what I need, except that it doesn't check,
if my target supports that language, so it can create invalid URLs.
Is there some work going on or can I safely add this feature?
All things are tested with the latest ZMS 2.1 and ZMS 2.2 branch.
Thanks,
Patrick Gerken
--=20
Development, Lightwerk GmbH
Tel: +49-711-489497-130
Fax: +49-711-489497-290
www.lightwerk.com
|