Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

TestList

<< | Page list | >>

This group is for testing the functionality that lists uploaded files.

See attachlist for the documentation of the new directive (:attachlist:).

Here is a list of pages in this group:

Description of the directive (:attachlist:)

The directive (:attachlist:) is used to list uploaded files, i.e. files that you can link to by writing uploads:<file>.

Two simple examples

Here's a simple example of using the directive where

(:attachlist .:)

produces the following: (:attachlist .:)

Since it is configured to list files referred to by uploads: by default. You can specify the prefix explicitly however, as in eg

(:attachlist uploads:/SiteTest :)

which results in (:attachlist uploads:/SiteTest:)

And here's a slightly more advanced example, where (:attachlist SiteTest/test recurse=yes fmt=detailed:) results in the following:

(:attachlist SiteTest/test recurse=yes fmt=detailed:)

Thoughts, questions and comments

  • What if the parameter 'dir' contains '../../../'. Security risk?
  • Should directories be listed first?
  • Should the listing be sorted?
  • I think $opts.case etc should be boolean rather than strings...
  • Shouldn't the directory separator to trim from $uri always be '/', even on windows systems?
  • Isn't it expensive to always test files against '.*'? Maybe it'd be better to check if the filter is '' and then skip doing a match.
Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2006-07-16 13:42 UTC