Hello pepebe,
Wow, this is awesome - it is pretty well exactly what I was hoping to use for an intranet with PDF archives in the assets/files directory.
I have it reading the directory ok - the correct file names comes up on the page but the href value is empty so the links don’t work.
The HTML source looks like this:
<ul class="php-file-tree">
<li class="dir"><h3>/files/test/</h3>
<ul>
<li class="file ext-pdf">
<a href="">Name 1.pdf</a>
</li>
<li class="file ext-pdf">
<a href="">Name2.pdf</a>
</li>
</ul>
</li>
</ul>
This is my call
[!phpFileTree? &directory=`/files/test/` &showExtension=`1` &addFile=`pdf` &ignore=`thumb` !]
Any ideas?
Also is it possibly to exclude the folder from the results?
I am very keen on being able to:
+ template the output (ideally the folder name
+ optionally exclude the folder name from the results
+ and include target="blank" as an option
+ and possibly (but much less importantly) include the date created from the file info.
If I throw some beer money at you will that inspire you to tweak it a little more?
Looking forward to your reply.
Many thanks pepebe.