rejetto forum

Tree Panel Framed template

Guest · 8 · 11452

0 Members and 1 Guest are viewing this topic.

MJ

  • Guest
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 :)


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
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> .}


Offline 5th Element

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
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?


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
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...


Offline 5th Element

  • Occasional poster
  • *
    • Posts: 3
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
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.


Offline 5th Element

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
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


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
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...