rejetto forum
May 25, 2012, 04:53:09 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Problem with filelist  (Read 712 times)
0 Members and 1 Guest are viewing this topic.
yopen
Occasional poster
*
Offline Offline

Bulgaria Bulgaria

Posts: 11



View Profile
« on: April 23, 2010, 03: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.
Logged
TSG
Moderator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #1 on: April 23, 2010, 04: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, 04:38:57 AM by TSG » Logged

yopen
Occasional poster
*
Offline Offline

Bulgaria Bulgaria

Posts: 11



View Profile
« Reply #2 on: April 23, 2010, 12: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, 12:59:05 PM by yopen » Logged
TSG
Moderator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #3 on: April 24, 2010, 04: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, 05:10:38 AM by TSG » Logged

yopen
Occasional poster
*
Offline Offline

Bulgaria Bulgaria

Posts: 11



View Profile
« Reply #4 on: April 24, 2010, 09:09:58 AM »

Thank  you very much.The problem is solved!
« Last Edit: April 24, 2010, 02:17:27 PM by yopen » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 23, 2012, 03:12:34 AM
anything