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.


Messages - Alexey227

Pages: [1]
1
HFS ~ HTTP File Server / Re: Links in new tab
« on: May 17, 2017, 05:00:14 AM »
Thank you very much!

2
HFS ~ HTTP File Server / Re: Links in new tab
« on: May 16, 2017, 10:29:47 AM »
Thank you! Now I understand this syntax a little :D

well i use %item-size% to create the condition

Code: [Select]
<a {.if| {.%item-size% != 0 .} | target="_blank" .} href="%item-url%"><img src="%item-icon%"> %item-name%</a>

I hope there is a better version of this ;D

3
HFS ~ HTTP File Server / Re: Links in new tab
« on: May 16, 2017, 08:48:26 AM »
But HFS not just html :)
I use the standard template and this example code сell drawing (line 272)

Code: [Select]

{.if|{.get|is new.}|<span class='flag'>&nbsp;NEW&nbsp;</span>.}
{.if not|{.get|can access.}|<img src='/~img_lock'>.}
<a href="%item-url%"><img src="%item-icon%"> %item-name%</a>
{.if| {.length|{.?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>.}

I understand that I need to write a condition in a string
Code: [Select]
<a href="%item-url%">
But I do not understand how to do it correctly :)

4
HFS ~ HTTP File Server / Links in new tab
« on: May 16, 2017, 07:02:52 AM »
Hello

How can I set a condition?

if link is file then open in an new window/Tab
if link is folder then open In this window


Pages: [1]