[Zope-CMF] Re: CMF 1.5 beta coming -- last call before feature freeze!

Florent Guillaume fg at nuxeo.com
Fri Aug 6 13:12:07 EDT 2004


Gregoire Weber wrote:
> Hi Florent!
> 
> 
>>>   1) about adding a 'Script (Python)' to the root with the
>>>      name 'resolve' to get to a content item by unique id?
>>>      (CMFDefault)
>>
>>What would it do exactly ? 
> 
> 
> Good question!
> 
> I see four possibiliies
> 
>    1) return the object
>       This results in http://example.com/permalink/1234 returning the
>       object (good for search engines)

Often you cannot publish an object in a context other than its original 
context. For instance the page could use relative URLs that would break 
(unavoidable in case of user-supplied HTML for instance), or create a 
breadcrumb from the URL (bad idea I know).

>    2) redirect to the object
>       This results in http://example.com/original/location/of/item

Ok for me.

>       (is this good for search engines?)

Don't know.

>    3+4) return/redirect to the view method or to the bare object?
>         Resulting in http://example.com/permalink/1234 or 
>         http://example.com/permalink/1234/view or ...

Should be the view method I guess, yes.

> And doing the permalink/1234 thing looks like it'll be necessary to make a
> new content type (hmmm).

Why ?

>>Anyway 'resolve' is way too generic a name
>>and is probably already used as a propert name or something by many
>>objects.
> 
> 
> I'm not bound to names, do you have a better name?
> 
> What about 'permalink'? 

Works for me.

>    http://example.com/permalink/1234 (where 1234 is the unique id of the document)
> 
> Gregoire

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 71 59  http://nuxeo.com  mailto:fg at nuxeo.com


More information about the Zope-CMF mailing list