Hi Jun, > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: dinsdag 16 september 2008 1:03 > To: [email protected] > Subject: [HippoCMS-dev] automatic file caption based on file content > > Hi all, > > It would be really nice if we could associate the file > display name with the content of the xml file, eg, if the > title element is defined, it's used as the default caption > name. Has anyone done something like that before?
You can add an extractor [1] for the caption so it will set every time you save the file. Something like: <instruction property="caption" namespace="http://hippo.nl/cms/1.0" xpath="/document/title/text()"/> [1] http://www.hippocms.org/display/CMS/4.+Hippo+Repository+Configure+Extrac tors 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 ******************************************** 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
