Folder View 2 Support Product Page

simle question?

Asked 25 Oct 2009 02:24:07
1
has this question
25 Oct 2009 02:24:07 leo fabiani posted:
hi,
i would like to use folder view to retrieve content of a folder.
than the user should click on the selected folder to select it.
i've looked in behaviours and there is an evenet : when a folder is clicked
then i could go to url to another php page to do soemthing with the selected directory.
like : www.something.com/admin/dirchecked.php?xxxxxx
but which parameter to pass? which is the folder varible when i click on it?
also if i check : when a folder is clicked i can't anymore browse to subdirectories because it opens the requested url instead of expanding the folder.

Replies

Replied 27 Oct 2009 15:44:41
27 Oct 2009 15:44:41 Miroslav Zografski replied:
Leo,

use of {path} as provided parameter inside the folder view behavior connector will provide the path to that folder or file from root of the Folder view.

About opening the url - can you provide a link to a test page to visualize your goal.

Regards,
Replied 27 Apr 2010 16:48:15
27 Apr 2010 16:48:15 simon donnelly replied:
sorry must be missing something here. I have put folder view on a page, from folder view settings, I've told it what folder I want. This displays all the files beautifully, I now want it to change the content of a text field when a file is clicked to the path and name of that file, so I click on behaviours and set text of text field, great then it asks me for the value to set it too. I want the path and filename of the file they've clicked, what do I enter?
Replied 27 Apr 2010 16:56:42
27 Apr 2010 16:56:42 Miroslav Zografski replied:
Hello Simon,

For the value you set {path}. This returns the path to the file(with filename included) or the path to the folder(with folder name included).

Regards,
Replied 27 Apr 2010 17:37:36
27 Apr 2010 17:37:36 simon donnelly replied:
sorry, obviously still missing something, when i enter a value, it works but if I set it to {path} it does nothing, the code it's writing is:

dmxListToTree({
bgcolor : "#FFFFFF",
slide : true,
struct : true,
toolbar : true,
bullets : "plusminus",
clickOn : "row",
icons : true,
theme : "Blue",
objId : "FolderView",
src : "./archive/",
server : "../dmx_folderview.php",
onfileselect : "MM_setTextOfTextfield('link','',''+(path)+'');"
});
Replied 27 Apr 2010 18:10:05
27 Apr 2010 18:10:05 simon donnelly replied:
never mind fixed it by fiddling:

onfileselect : "MM_setTextOfTextfield('link','','{path}');"
Replied 27 Apr 2010 18:23:33
27 Apr 2010 18:23:33 Miroslav Zografski replied:
Quotesorry, obviously still missing something, when i enter a value, it works but if I set it to {path} it does nothing, the code it's writing is:

dmxListToTree({
bgcolor : "#FFFFFF",
slide : true,
struct : true,
toolbar : true,
bullets : "plusminus",
clickOn : "row",
icons : true,
theme : "Blue",
objId : "FolderView",
src : "./archive/",
server : "../dmx_folderview.php",
onfileselect : "MM_setTextOfTextfield('link','',''+(path)+'');"
});


Simon,

As your code shows you have set the path as (path) - normal brackets. Use curly brackets instead .

Regards,

Reply to this topic