rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - stonecooper

Pages: 1
HTML & templates / How to download a file in a new page?
« on: August 27, 2011, 02:38:46 AM »
Does anyone know how to download a file in a new page? In 2.3 279 default.dpl, when you click the file, the file is donwload directly. How could change the templates when click the file, it will jump to a new page, and this page I will write some warming message and another link to the file, this link is the real link for the file.

I modidied the default.tpl file link to ~files.lst like this:
Code: [Select]
<tr class='{.if|{.mod|{.count|row.}|2.}|even.}'><td>
        <input type='checkbox' class='selector' name='selection' value='%item-url%' {.if not|{.or|{.get|can delete.}|{.get|can access.}|{.get|can archive item.}.}|disabled='disabled'.} />
{.if|{.get|is new.}|<span class='flag'>&nbsp;NEW&nbsp;</span>.}
{.if not|{.get|can access.}|<img src='/~img_lock'>.}
<a [color=red]href="~files.lst"[/color]><img src="%item-icon%"> %item-name%</a>
{.if| {.?search.} |{:{.123 if 2|<div class='item-folder'>{.!item folder.} |{.breadcrumbs|{:<a href="%bread-url%">%bread-name%/</a>:}|from={.count substring|/|%folder%.}/breadcrumbs.}|</div>.}:} .}
{.123 if 2|<div class='comment'>|{.commentNL|%item-comment%.}|</div>.}

And then modified the filelist.tpl to :
Code: [Select]



The new page will display when you click the file, but the new page contain all the files %item-url% in the current folder, I think this is because the marco %list% expand to all the file list in the current folder.

Any one konw how to implement this feature?

Hi, I'm using hfs 2.3-279 to build up a file share server. But the search function seems not work well on Chinese characters, English works well.
See the attachment,
I was trying to search "测试" in search box, the search result not only return only contain "测试" files and folder, but actually return all the files and folder which are contain any Chinese characters.

I'm not sure it's a bug a somthing I did a wrong config in somewhere...

Could you please help me.

Thanks a lot.

Pages: 1