rejetto forum
Software => HFS ~ HTTP File Server => Topic started 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
-
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.
-
you have to use no macro macro but javascript:
<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 .......
;)
-
{.if not|%user%|Private section of the server, requires authorization.}
try this
-
on build 219, don't work, only javascript can do this?
-
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.