Andreas Hartmann wrote:
Michael Wechner wrote:

Hi

I am currently using the Lenya source as follows within the sitemap

lenya://lenya/pubs/blog/content/authoring/feeds/all/index.xml

But actually I would like to call it without the lenya/pubs/blog/content
prefix.


This issue has been discussed some time ago. One original idea of
the lenya:// protocol was that you can get rid of the content, area
etc. stuff in source URIs.

Actually we started to implement it like this, but when the "shorthand"
lenya:// URIs were used, a big problem occured:

When you call an internal pipeline which contains a URI like this
from inside a usecase for an arbitrary document, the document belonging
to the originally called page is read instead of the requested document.

For instance - imagine you traversing a document set and fetch some
content from some internal pipeline. If this internal pipeline uses
the shorthand URI (based on the page envelope) for source access, you
end up with the content from a wrong document.

The problem is that shorthand URIs have to rely on context information,
for instance the page envelope. This requires to set this context
information for each request to such a URI, which requires great care
(because it is implicit and happens in the background). That's why
I'm against shorthand URIs.

Up to now, no solution was found to this problem.

-- Andras


If I have a look at the lenya protocol, e.g.

lenya://lenya/pubs/blog/content/authoring/feeds/all/index.xml
        ^^^^^^^^^^      ^^^^^^^

the parts marked with ^ are used in a static fashion and may be
omitted. What do you think about using an abbreviated version of the
lenya protocol, like

  lenya://<publication>/<area>/<doc-id>

e.g.

  lenya://blog/authoring/feeds/all

A further improvement may be omitting the publication as well
if you want to stay in the current publication. The url may
look like this:

  lenya:/<area>/<doc-id>

e.g.

  lenya:/authoring/all

Note: only one / is used

What do you think about the proposal? At least, it helps us
avoid a lot of typing ... :-)

Cheers,

Felix


--
Felix Röthenbacher                  [EMAIL PROTECTED]
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to