rejetto forum

popup new page

Guest · 7 · 2010

0 Members and 1 Guest are viewing this topic.

kycken

  • Guest
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!!(>_<)


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
can you show the html you are suggesting?


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
<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>
« Last Edit: January 06, 2008, 07:03:56 PM by That_Stevens_Guy »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
what's the point in opening a new window for such files?

note: {{switch}} is case insensitive


kycken

  • Guest
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(>_<)


Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
your browser should cache the thumbnails.  ???


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
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.