rejetto forum
Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: MJ on September 04, 2009, 05:10:07 PM
-
Hi, please:
I have a framed layout
its have a tree (3) frames
Hi
I have a framed layout
its have a tree (3) frames
1. left that are the ~nodefault
2. center.html (the content tegeted)
3. right.html
<frameset cols="25%,*,25%">
<frame src="/~nodefault" />
<frame src="center.html" />
<frame src="right.html" />
</frameset>
I want know if is possible the a COMMENT FOLDER command to be targeted to RIGHT.html when I click in. And how to do this.
Im usind the "default.tpl" (hfs.tpl)
To the files will be targetd to center.html I made this (and works)
[file]
<tr><td>
{.if|{.get|can delete.}{.and|{.get|can access.}|{.get|can archive item.}.}| <input type='checkbox' name='selection' value="%item-url%"> .}
{.if|{.get|is new.}|<span class='flag'> NEW </span>.}
{.if not|{.get|can access.}|<img src='/~img_lock'>.}
<a href="%item-url%" target="center.html"><img src="%item-icon%"> %item-name%</a>
{.if| {.?search.} |{:<div class='item-folder'>{.!item folder.} {.breadcrumbs|{:<a href="%bread-url%">%bread-name%/</a>:}|from={.count substring|/|%folder%.}/breadcrumbs.}:} .}
{.if| %item-comment% | <div class='comment'>%item-comment%</div> .}
-----
But I cant (until now to make the COMMENT FOLDER will be targeted to RIGHT.html
Thanks for any help :)
-
jea thats simple:
yu have this code:<frameset cols="25%,*,25%">
<frame src="/~nodefault" />
<frame src="center.html" />
<frame src="right.html" />
</frameset>
you changed into:
<frameset cols="25%,*,25%">
<frame id="default" src="/~nodefault" />
<frame id="center" src="center.html" />
<frame id="right" src="right.html" />
</frameset>
Now you must change you [file] into:
[file]
<tr><td>
{.if|{.get|can delete.}{.and|{.get|can access.}|{.get|can archive item.}.}| <input type='checkbox' name='selection' value="%item-url%"> .}
{.if|{.get|is new.}|<span class='flag'> NEW </span>.}
{.if not|{.get|can access.}|<img src='/~img_lock'>.}
<a href="%item-url%" target="center"><img src="%item-icon%"> %item-name%</a>
{.if| {.?search.} |{:<div class='item-folder'>{.!item folder.} {.breadcrumbs|{:<a href="%bread-url%">%bread-name%/</a>:}|from={.count substring|/|%folder%.}/breadcrumbs.}:} .}
{.if| %item-comment% | <div class='comment'>%item-comment%</div> .}
-
Thank you kaler ;D
I made your mods in my template
Can you tell me if is possible a Folder comment will be displayed in the right.html frame?
-
i think not, cause you use one '.tpl' and the other cant use the macros you need...
but wait for an other person who can answer you...
-
Thanks again kaler
I will be waiting the anwser :)
-
so, you want "right" to display the comment of the folder displayed in "left" ?
yes, it's possible.
you must put a javascript in "left" that will manipulate the content of "right".
you already have the comment in "left", so only the manipulation is the problem.
it's javascript, that has nothing to do with HFS, and i don't know how to do it.
once you know how to put 'hello' in right panel, it's easy to put the comment.
this would be probably the best method, but not the only one.
-
Thank You rejetto :)
I made this
In the "folder.comment" file I put a link targeting to the "right" frame:
<a href="http://blablabla:8011/../../info.txt" target="right">iNFO</a>
Letf frame: ~nodefault
Center frame: Content
Right frame: info about the folder content
-
that is a good idea...
but when you want, that every link from the center would be opend in the right, you must change the header, but that i will tell you tomorrow, because today i have no time...