Re: [Zope] URL-problem

2000-11-21 Thread Oliver Bleutgen

> Thanks for your reply, but the main problem is the navigation.
> The admin part is the normal  browse-version + an admin interface at the
> bottom of every side.
> So when you are in root/main/press and you click on the new button a
> script
> adds a new object.
> But how do I solve the navigation problem. The buttons to the other
> objects(pages) are the browse-version this means you leave the admin
> interface every time you change your position.


Just some ideas, not well thought out ...

What about putting
 

   


in your standart_html_footer.
In light of the current search&replace thread, remember to
put admin.website.com in a variable ;->.

You could also play games with mod_rewrite in order to
add a spezial variable to your _apache_-environment variables
(ie. this should work when running zope as cgi, and only then) 

RewriteEngine on
RewriteRule   ^admin.website.com/(.*)   www.website.com/$1   [E=my_admin_trigger:on]

so testing for  REQUEST.environ['my_admin_trigger']=='on' should do the trick.

Or you could add this variable to the url like

RewriteEngine on
RewriteRule   ^admin.website.com/(.*)   www.website.com/$1?my_admin_trigger=on 



Perhaps the siteroot-product might be helpful, just in case your running pure zope,
I don't know though.



cheers,
oliver



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] URL-problem

2000-11-21 Thread Jan Van de Vyle

Thanks for your reply, but the main problem is the navigation.
The admin part is the normal  browse-version + an admin interface at the
bottom of every side.
So when you are in root/main/press and you click on the new button a script
adds a new object.
But how do I solve the navigation problem. The buttons to the other
objects(pages) are the browse-version this means you leave the admin
interface every time you change your position.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] URL-problem

2000-11-21 Thread Martin Winkler

At 12:19 21.11.2000, Jan Van de Vyle wrote:
>The problem is I've got a website which should have an 
>admin-interface.This interface should only be visible if you call i.e. 
>admin.website.com. If you call web.website.com you reach the normal browse 
>view.

If you have Apache in front of Zope (good idea!), you should be able to use 
Apache's mod_rewrite to implement this behaviour. See 
http://www.apache.org/docs/mod/mod_rewrite.html
But beware! The documentation starts with "Despite the tons of examples and 
docs, mod_rewrite is voodoo. Damned cool voodoo, but still voodoo." (-- 
Brian Moore)

Maybe the easier module mod_alias could help you as well: 
http://www.apache.org/docs/mod/mod_alias.html#redirectmatch

You have to split your URLs into parts and redirect to the correct location eg:
User types , Apache sees the 
"admin" and redirects to . On the 
other hand: Is it so hard to type "/manage" after the url to connect to the 
management interface?

hth,

Martin


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] URL-problem

2000-11-21 Thread Jan Van de Vyle



The problem is I've got a website which should have 
an admin-interface.This interface should only be visible if you call i.e. 
admin.website.com. If you call web.website.com you reach the normal browse 
view.
The website shoudn't be doubled, but the links on 
the browse-view normally call the browse-view and not the admin-view.Hope you 
understand the prob.
Thanks in advance!!


[Zope] URL problem

2000-09-27 Thread Marc Breitenreicher

Hi,

I've got a little problem with thr URL returned by a catalog.

The catalog returns, for example, the URL /a/b/c/text.html 
But the link shall go to the URL /a/b/c
How can I manage this?

I use ZCatalog with ZSearch and get the URL with 

Thanks for help

Marc

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )