Greetings,
Today's question is how I can select a file that is in the server with the aim of getting both web path and absolute path.
The application of this process would be to dynamically create image tiles for my homepage.
I like the Upload element and action, they get me access to file paths but its one way.
Is it possible to get a 'Select File' element that can give me the desired paths?
Today's question is how I can select a file that is in the server with the aim of getting both web path and absolute path.
The application of this process would be to dynamically create image tiles for my homepage.
I like the Upload element and action, they get me access to file paths but its one way.
Is it possible to get a 'Select File' element that can give me the desired paths?
Hi Lesanjo,
You want both the folder path and the URL? I'm not clear. You can convert a path to a URL by using str_replace something like this:
Bob
You want both the folder path and the URL? I'm not clear. You can convert a path to a URL by using str_replace something like this:
<?php
$url = str_replace(JPATH_SITE, JURI::root(), $path);
?>
You may need to replace a // with a single / afterwards to clean it up.Bob
The path issue is settled:-)
Now, how can I explore the server directory from within chronoform? (Like the explorer that is inbuilt in most text editors)
Now, how can I explore the server directory from within chronoform? (Like the explorer that is inbuilt in most text editors)
Hi Lesanjo,
There's no file manager/folder explorer in ChronoForms, I install the Joomla! exTplorer extension to do this.
Bob
There's no file manager/folder explorer in ChronoForms, I install the Joomla! exTplorer extension to do this.
Bob
Hi,
Thus may be the solution we are looking for:
http://www.abeautifulsite.net/blog/2008/03/jquery-file-tree/
Let me test it.
Thus may be the solution we are looking for:
http://www.abeautifulsite.net/blog/2008/03/jquery-file-tree/
Let me test it.
This topic is locked and no more replies can be posted.