On Mar 2, 2009, at 12:13 PM, Lukas Renggli wrote:
On my pages I
usually use a hidden login link, so editors just have
to
press Ctrl+L to get to the login page
(
http://www.piercms.com/doc/shortcuts). If desired the login page can
also be bookmarked.
Ctrl+L is nice--I'll use that now that I know about it--but isn't good
enough for non-technical users. I want /login.
The difference between '?command=PULogin' and
'/login' is minimal, but
also makes other things more difficult. If commands look the same as
pages, validation of page names becomes difficult and extensibility is
at risk.
For what I have in mind, that seems like an odd reply. Maybe I am not
expressing myself very well. Perhaps I should just mess around in the
code a bit and see what I can come up with.
And while we
are on the subject of commands and rewrite rules, I've
noticed
that commands post to '/' even if they are part of a longer URL (like
mydomain.com/site/login). This behavior is slightly problematic
given that
the default page for one of my sites is not '/' and I have a
rewrite rule to
redirect '/' to that default page. I had to add a 'RewriteCond
%{REQUEST_METHOD} !POST' test to my rewrite rule. It would be nice
if
commands posted to the URL they were called from.
I guess there is something wrong with your Seaside setup, that's not
what is normally happening. You can check that on seaside.st for
example.
Hmm. Yes. I can see that it is not doing this in the default Pier
image. I'll have to look in to this some more. (Maybe it has to do
with setting Server Hostname and/or Server Path?)
David
----
1 Squeak/Seaside/Pier site deployed