rejetto forum

Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: yopen on April 23, 2010, 08:17:30 AM

Title: Problem with filelist
Post by: yopen on April 23, 2010, 08:17:30 AM
There was a problem when generating Filelist.
(http://thumbnails9.imagebam.com/7767/cb838a77660053.gif) (http://www.imagebam.com/image/cb838a77660053)

I tried to change the encoding, but does not help.Very ugly percents %20-%20%

Does the program generates a file list like this below. And if possible can anyone help me with code for filelist.tpl.I use the HFS with RAWR-Template only from a few days and I am not familiar
(http://thumbnails3.imagebam.com/7767/cbdbc577660051.gif) (http://www.imagebam.com/image/cbdbc577660051)

Sorry for my bad english.
Title: Re: Problem with filelist
Post by: TSG on April 23, 2010, 09:37:13 AM
Looks correct to me, that's just the encoding.

Take a look at the symbols for HFS:

http://www.rejetto.com/wiki/index.php/HFS:_Template_symbols

If you take a look in the packaged resources of our templates, I think we supply a nicer file list that Richard worked on. But keep in mind the file list isn't THAT helpful. Its more there for other uses.
Title: Re: Problem with filelist
Post by: yopen on April 23, 2010, 05:13:55 PM
Looks correct to me, that's just the encoding.
Thanks for your answer,but I do not understand how to solve the problem with the encoded characters?I found this code in the source
<a href="?tpl=list&amp;folders-filter=%5C{.if|{.get|can recur.}|&amp;recursive.}" ,but don't know what to do, to get proper result like the second sample image on my first post folder/filename.ext without %20-%20%  instead of empty spaces..I'am not a coder!
Please provide some help.
Thanks in advance!
Title: Re: Problem with filelist
Post by: TSG on April 24, 2010, 09:58:31 AM
Well you need to customise the filelist.tpl file. Instead of using %item-full-url% or %item-url%, you would need to use.... %host%%folder%%item-name%%item-ext%, this should print a full link without the encoding.

However if Macro can be used in the filelist.tpl, there is a one that can remove the uri encoding... But Macro may just confuse you further...

Something like:

[file]
%item-full-url%

to

[file]
%host%%folder%%item-name%%item-ext%

filelist.tpl is separate to the main template, its usually used for other purposes, beside the accessible HFS template.
Title: Re: Problem with filelist
Post by: yopen on April 24, 2010, 02:09:58 PM
Thank  you very much.The problem is solved!