Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 52 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 54 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 55 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 56 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 59 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 60 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 62 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 146 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 146 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 146 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 52 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 54 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 55 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 56 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 59 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 60 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 62 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 146 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 146 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 146 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 52 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 54 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 55 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 56 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 59 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 60 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 62 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 146 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 146 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 146 Deprecated: Function eregi() is deprecated in /home/lyx/www/wiki.lyx.org/farm.d/cookbook/testlist.php on line 146 LyX wiki | TestList / TestList
Go to page:

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:

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

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

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 15:42 CEST