Jörn Nettingsmeier wrote:
hi thorsten, hi everybody!
i'm trying to add a footer to each page that says "this page was last
edited by <user> on <date>". i've added thorsten's
LenyaMetaDataGenerator into my pipeline, but the workflow field is weird:
<lenya:workflowVersion>
0 event:edit state:authoring user:webmaster machine:127.0.0.1
date:2006-01-24_11:52:02 var:is_live=false
</lenya:workflowVersion>
at the heart of a xml publishing framework, such a data format is a
little, erm, unfortunate, to put it gently.
The reason is that metadata support only string values. Anyway, this is
an internal format and you shouldn't parse it in your XSLT, since the
format might change without notice - your publication won't be "forward
compatible" :)
It would be much cleaner to use an input module which accesses the workflow
history of a document using the WorkflowManager. We could add this
functionality to the WorkflowInputModule. If you need help, I'll be glad
to send an example snippet.
is there any chance that the data can be re-factored into a clean xml
format?
I don't think so.
*.*
i would also like the user name to contain a mailto: link, i.e. i need
to look up the user's email address in the account database. is there
already a method to make this data available to a pipeline?
IIRC there isn't. Maybe you'd like to implement it in the AccessControlModule
and send a patch?
[...]
-- Andreas
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]