Board Logo

text links on directory listing php script
sparrowhawk - 2/17/2006 at 04:34 AM

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 - 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 - 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 - 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,


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/