Author Topic: Problem with filelist  (Read 1619 times)

0 Members and 1 Guest are viewing this topic.

Offline yopen

  • Occasional poster
  • *
  • Posts: 11
    • View Profile
Problem with filelist
« on: April 23, 2010, 08:17:30 AM »
There was a problem when generating Filelist.


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


Sorry for my bad english.

Offline TSG

  • Moderator
  • Tireless poster
  • *****
  • Posts: 1934
    • View Profile
    • RAWR-Designs
Re: Problem with filelist
« Reply #1 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.
« Last Edit: April 23, 2010, 09:38:57 AM by TSG »

Offline yopen

  • Occasional poster
  • *
  • Posts: 11
    • View Profile
Re: Problem with filelist
« Reply #2 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!
« Last Edit: April 23, 2010, 05:59:05 PM by yopen »

Offline TSG

  • Moderator
  • Tireless poster
  • *****
  • Posts: 1934
    • View Profile
    • RAWR-Designs
Re: Problem with filelist
« Reply #3 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.
« Last Edit: April 24, 2010, 10:10:38 AM by TSG »

Offline yopen

  • Occasional poster
  • *
  • Posts: 11
    • View Profile
Re: Problem with filelist
« Reply #4 on: April 24, 2010, 02:09:58 PM »
Thank  you very much.The problem is solved!
« Last Edit: April 24, 2010, 07:17:27 PM by yopen »