rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: kycken on January 06, 2008, 03:36:24 PM
-
HFS can add a setting when press a link,folder,files or photo
can popup a new page!!
Cause I don't want anytime modify the template to get this
function!!(>_<)
-
can you show the html you are suggesting?
-
<a href="link" target="_blank">link</a>
You will have to edit the template to get it lol.
Sure you can set files to open in browser with hfs, but i find it best to specify them in the template. I do this in the new beta builds of HFS.
[target]
{{switch|{{lower|%item-ext%}}|,|gif,pdf,htm,html,css,js,txt,jpg,png|target="_blank"|}}
and in [file]
the link <a href="moo" {{$target}}>MOO</a>
;) You could do it also with javascript.
<a href="javascript:window.open('%item-url%','%item-name%','width=,height=,left=,top=,scrollbars=1,resizable=1');">MOO</a>
-
what's the point in opening a new window for such files?
note: {{switch}} is case insensitive
-
When the folder have more photo and have a photo thumb preview,
each time press a photo link and popup a new page.
I just close the new page is OK!
But if no popup a new page.When I back to the folder,
it will spend a time reload the photo thumb preview once again!!
so it is a point why I want HFS have a function setting reason(>_<)
-
your browser should cache the thumbnails. ???
-
mm, i have an idea!
instead of editing the template, use the diff template.
by putting only [file] and the other code that TSG posted in the diff tpl, you will have the default tpl untouched. :)
let us know if you don't understand.