rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: s4isw4l4qu4tro on January 20, 2009, 05:50:13 AM

Title: Comment on file properties
Post by: s4isw4l4qu4tro on January 20, 2009, 05:50:13 AM
Hi guys,

Please advise if this is possible, or if there are any workarounds...

Build = 219, using terayon 1.3.2

Help is very appreciated
Title: Re: Comment on file properties
Post by: Foggy on January 20, 2009, 12:48:19 PM
I am not quite sure what you are trying to acheive exactly but from first looks you need to use an if macro in the template where the file comment is loaded.
Title: Re: Comment on file properties
Post by: Mars on January 20, 2009, 03:07:37 PM
you have to use no macro macro but javascript:

Quote
<script language="javascript">
if( '%user%' == '' ) document.write('Private section, requires authorization.')
  else document.write('Real comment for this folder');
</script>


but you must unselect

Menu > Virtual file system > List protected item only .......

 ;)
Title: Re: Comment on file properties
Post by: rejetto on January 22, 2009, 11:40:35 PM
{.if not|%user%|Private section of the server, requires authorization.}


try this
Title: Re: Comment on file properties
Post by: Mars on January 22, 2009, 11:49:14 PM
on build 219, don't work, only javascript can do this?
Title: Re: Comment on file properties
Post by: rejetto on January 23, 2009, 01:10:16 AM
you are clearly right mars.

but i don't like this way, i want only macros from external files to be blocked.
internal comments are considered half-safe.
half, because a warning is displayed when loading an untrusted vfs file.

SO, next build will make internal comments (like the one above) work with macros.