The UID is now generated by the Repository, not by the CMS anymore. You
can always introduce a third UUID (the URI is also a unique ID) based on
your own business rules and use that in your queries. I'd insert it in
the XML first and then extract it instead of the other way around. 

Regards,

Jasha

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: donderdag 23 oktober 2008 19:49
> To: [email protected]
> Subject: RE: [HippoCMS-dev] last modified date
> 
> Thanks Jasha! You can always point out issues that I 
> overlooked and provide creative workarounds! I'll give that a try. 
> 
> Another question related to extracting webdav properties: 
> what if I want to extract the hippo uid and put it in my xml? 
> Or, is there anyway that I can override the default hippo uid 
> creation so the uid is created based on my business rules? 
> 
> Thanks a lot!
> Jun 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Jasha Joachimsthal
> Sent: Thursday, October 23, 2008 12:29 AM
> To: Hippo CMS development public mailinglist
> Subject: RE: [HippoCMS-dev] last modified date
> 
> Hi Jun,
>  
> I can't use the value of the property because the PROPPATCH 
> will be executed after the PUT (save). Use the current 
> timestamp (I hope you can live with a possible difference of 
> 1 second). You can override [1] the default postprocessing 
> pipeline by creating a sitemap called override.xmap inside 
> /extensions/editing (assuming you are using the extension 
> mechanism [2].
> Pass the current timestamp to the postprocessing XSL as a 
> parameter using the date input module. This will look something like:
> <map:parameter name="now" value="{date:yyyy-MM-dd'T'HH:mm:ss'Z'}"/>
> I haven't tested it and it may not be in the correct date 
> format which depends on the property you are using 
> (getlastmodified or modificationdate), but I hope you get the idea.
> 
> [1] http://www.hippocms.org/display/CMS/Overriding+core+CMS+code
> [2] http://www.hippocms.org/display/CMS/08.+Extending+Hippo+CMS
> 
> Regards,
> 
> Jasha Joachimsthal 
>  
> [EMAIL PROTECTED] - [EMAIL PROTECTED]
>  
> www.onehippo.com
> Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam 
> +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, 
> suite Q Petaluma CA
> 94952-3329 +1 (707) 773-4646
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > [EMAIL PROTECTED]
> > Sent: vrijdag 17 oktober 2008 23:16
> > To: [email protected]
> > Subject: RE: [HippoCMS-dev] last modified date
> > 
> > Hi Jasha,
> > I just started looking into the postprocessing, but this 
> just strikes
> > me: how do I get last modified date out of the webdav 
> > property in my xsl? I know how to update the webdav property 
> > using extractors, but not the other way around. Is there any 
> > example that I can take a look at?
> > 
> > Thanks a lot!
> > Jun
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > Jasha Joachimsthal
> > Sent: Thursday, October 16, 2008 12:08 AM
> > To: Hippo CMS development public mailinglist
> > Subject: RE: [HippoCMS-dev] last modified date
> > 
> > Hi Jun, 
> > 
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > > [EMAIL PROTECTED]
> > > Sent: donderdag 16 oktober 2008 2:11
> > > To: [email protected]
> > > Subject: [HippoCMS-dev] last modified date
> > > 
> > > Hi all,
> > > 
> > > I know I can pre-populate the xml with a creation date with 
> > > insertcontent.xsl, and I can extract values from the xml 
> > and set the 
> > > webdav attribute of a file.
> > > 
> > > But what happens when I want to keep a last modified date 
> in my xml 
> > > file? I would imagine that I need to write a "reverse"
> > > extractor that gets the last modified time from file 
> attribute and 
> > > populate the xml file, or I set a trigger to write the 
> current date 
> > > upon save. Has anyone
> > > done anything like that before?   Could you please share 
> > your how-tos?
> > 
> > Writing data after the extrator did its job would create an 
> > infinite loop. Every save triggers the extractors. If you 
> > need the last modified dat in the XML instead of a WebDAV 
> > property you have to use postprocessing [1]. You even may 
> > have to override the default postprocessing and insert the 
> > current timestamp in the XSLt. Create a new sitemap in 
> > extensions/editing called override.xmap. Put yopur custom 
> > postprocessXML (original is in /editing/cf2/sitemap.xmap) and 
> > create a matcher on ** that sends all other requests to 
> > site://editing/sitemap.xmap  
> >   
> > > 
> > > Also, a related question is: how to make a date widget 
> > read-only?  I 
> > > tried "value" widget, but as soon as I click save, the 
> > value is gone.
> > 
> > That's a known bug [2]. It used to be possible by setting 
> > @readonly="true" on the widget and it should be possible again.
> > 
> > [1] http://www.hippocms.org/display/CMS/03.+Developing+templates
> > [2] http://issues.hippo.nl/browse/CMSSIX-192
> > 
> > 
> > Jasha Joachimsthal 
> >  
> > [EMAIL PROTECTED] - [EMAIL PROTECTED]
> >  
> > www.onehippo.com
> > Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam 
> > +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, 
> > suite Q Petaluma CA
> > 94952-3329 +1 (707) 773-4646
> > 
> > ********************************************
> > Hippocms-dev: Hippo CMS development public mailinglist
> > 
> > Searchable archives can be found at:
> > MarkMail: http://hippocms-dev.markmail.org
> > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> > 
> > 
> > ********************************************
> > Hippocms-dev: Hippo CMS development public mailinglist
> > 
> > Searchable archives can be found at:
> > MarkMail: http://hippocms-dev.markmail.org
> > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> > 
> > 
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> 
> 
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> 
> 
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to