You can try to write a custom resource type. A good starting point
is the xhtml example included in Lenya.
Lenya 1.2.x
http://lenya.apache.org/1_2_x/how-to/custom_resourcetype.html
Lenya 1.4.x
http://lenya.apache.org/1_4/reference/resource-types.html
http://lenya.apache.org/1_4/reference/modules/index.html
If you have any questions, feel free to ask on this list.
HTH, Felix
Huang Lei wrote:
Thanks for your reply, Renaud! I understand how to upload assets to
lenya but my problem is, I'm trying to retrieve the assets I have
uploaded programmatically rather than going through an editor such as
BXE. For instance, rather than displaying "Welcome to the default Lenya
publication..." after a new document is created, I would like the page
to display a list of documents/assets that's been uploaded and also
allow user to sort the documents by title, date and such. Hope I have
clarified my questions a little. Thanks in advance!
Lei
-----Original Message-----
From: Renaud Richardet [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 10, 2006 3:47 PM
To: [email protected]
Subject: Re: Dynamically list all attachments (Assets)
Hello Lei,
You can add assets (doc, pdf, pictures) to a page in Lenya. Try to edit
a document with BXE, and click on the "Add Asset" button on the right of
the taks bar.
What do you mean by sorting capabilities? In Lenya, Editors can edit the
link to an asset with the BXE.
You can have a look at one of the demos, eg
http://lenya-1.2.demo.wyona.org/default/ , but the asset upload function
is unfortunately disabled on this public demo (security reason).
HTH,
Renaud
Huang Lei wrote:
Hi,
I'm brand new to Lenya. I'm trying to use Lenya as more of a document
management tool for now. I was asked my my client to provide the
capability of uploading documents (mainly word documents) by admins
and display them to the general user and allow the users to sort
through the documents. I was wondering if there is a way to
programmatically display all the assets to user and have sorting
capability. Thanks in advance.
Lei
--
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]