rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: MJ on September 04, 2009, 05:10:07 PM

Title: Tree Panel Framed template
Post 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


Code: [Select]
<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'>&nbsp;NEW&nbsp;</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 :)
Title: Re: Tree Panel Framed template
Post by: kaler on September 04, 2009, 06:04:25 PM
jea thats simple:

yu have this code:
Code: [Select]
<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'>&nbsp;NEW&nbsp;</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> .}
Title: Re: Tree Panel Framed template
Post by: 5th Element on September 04, 2009, 06:17:15 PM
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?
Title: Re: Tree Panel Framed template
Post by: kaler on September 04, 2009, 06:20:24 PM
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...
Title: Re: Tree Panel Framed template
Post by: 5th Element on September 04, 2009, 06:24:32 PM
Thanks again kaler
I will be waiting the anwser :)
Title: Re: Tree Panel Framed template
Post by: rejetto on September 05, 2009, 03:42:26 PM
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.
Title: Re: Tree Panel Framed template
Post by: 5th Element on September 05, 2009, 05:19:09 PM
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
Title: Re: Tree Panel Framed template
Post by: kaler on September 06, 2009, 07:54:34 AM
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...