sparrowhawk
Newbie
Posts: 1
Registered: 2/17/2006
Location: NH
Member Is Offline
|
| posted on 2/17/2006 at 04:34 AM |
|
|
text links on directory listing php script
Hello,
I am using the php/javascript menu that creates a dynamic tree menu based on the file system of directories/subdirectories and files.
Currently clicking on the + sign next to a folder expands the folder's contents. Clicking on the name of the folder however actually opens a link to
these directories. Because I have disabled directory browsing the server pushes a 403 header.
I am wondering if there is an easy way to make clicking the text name of the folder exhibit the same behavior and clicking the +/- widgets for those
nodes. If not is there a way to disable the text links on folders only and not files.
Thanx in advance.
|
|
|
tigra
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 2/17/2006 at 03:26 PM |
|
|
To disable browser redirection you should leave the link property blank. If you provide the link the tree reasonably assumes you want this item linked
to the URL provided.
If using PRO version you can make the node open on single click. See "Node open on single click" API example in the product documentation.
|
|
|
intramanga
Junior Member
Posts: 2
Registered: 7/4/2006
Location: Spain
Member Is Offline
|
| posted on 7/4/2006 at 06:42 PM |
|
|
| Quote: | Originally posted by tigra
To disable browser redirection you should leave the link property blank. If you provide the link the tree reasonably assumes you want this item linked
to the URL provided.
|
Having the same problem here. The link is not provided by us but from your items.php file from the php_filesystem demo , which produces links on ALL
items , FOLDERS included. How can I remove the links on all folders and only keep the links on the items.
Thanks,
Eddy,
|
|
|
intramanga
Junior Member
Posts: 2
Registered: 7/4/2006
Location: Spain
Member Is Offline
|
| posted on 7/6/2006 at 10:20 AM |
|
|
| Quote: |
Having the same problem here. .......... |
SOLVED , thanks to the great help of support , who has sent me a modified items.php file.
Many thanks to support!!
Eddy,
|
|
|