Wikka Documentation : ListfilesActionInfo

HomePage :: Index :: RecentChanges :: Search :: Login/Register

Listfiles Action Documentation


See also:
Development: ListfilesAction.
This is the documentation page for the Listfiles action.
 


The principle

As many Wikka users, I find the upload process cumbersome. So I propose a new way relying on 3 developments and a few principles.
  1. There will be a menulet action in the header and/or footer menus that will allow the user to:
  1. If you are allowed to read a page then you can read/download the attached files
  2. If you are allowed to write a page then you can manage the attachments (add/delete)
Of course all this has to be compliant with the site policy (authorized mimes and maximum sizes).

My solution

Three developments to provide a complete solution:

How to use it?

This particular action can be called in different ways:
{{listfiles}} displays all the files attached to the current page
{{listfiles page="AnotherPage"}} displays all the files attached to another page (provided that the user is allowed to read it)
{{listfiles file="MyFile"}} displays a link to the file named MyFile attached to the current page (provided the file exists)
{{listfiles file="MyFile" title="My title"}} same as above with "My title" being the text displayed to the link
{{listfiles page="AnotherPage" file="MyFile"}} display a link to the file named MyFile attached to AnotherPage
{{listfiles page="AnotherPage" file="MyFile" title="My title"}} same as above with "My title" being the text displayed to the link

To Do

Nothing I can think about right now.


CategoryDocumentation
There are no comments on this page.
Creative Common Attribution-ShareAlike License
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0067 seconds