rejetto forum
May 25, 2012, 09:58:11 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Tree Panel Framed template  (Read 806 times)
0 Members and 1 Guest are viewing this topic.
MJ
Guest


Email
« on: September 04, 2009, 12: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:
<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 Smiley
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #1 on: September 04, 2009, 01:04:25 PM »

jea thats simple:

yu have this code:
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'>&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> .}
Logged
5th Element
Occasional poster
*
Offline Offline

Brazil Brazil

Posts: 3


View Profile
« Reply #2 on: September 04, 2009, 01:17:15 PM »

Thank you kaler  Grin
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?
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #3 on: September 04, 2009, 01: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...
Logged
5th Element
Occasional poster
*
Offline Offline

Brazil Brazil

Posts: 3


View Profile
« Reply #4 on: September 04, 2009, 01:24:32 PM »

Thanks again kaler
I will be waiting the anwser Smiley
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #5 on: September 05, 2009, 10:42:26 AM »

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.
Logged
rejetto forum
« Reply #5 on: September 05, 2009, 10:42:26 AM »

Do you like this software? Consider even $2
 Logged
5th Element
Occasional poster
*
Offline Offline

Brazil Brazil

Posts: 3


View Profile
« Reply #6 on: September 05, 2009, 12:19:09 PM »

Thank You rejetto Smiley

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
Logged
kaler
Experienced poster
***
Offline Offline

Germany Germany

Posts: 94


View Profile
« Reply #7 on: September 06, 2009, 02: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...
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 17, 2012, 07:44:53 AM
anything