Forum OpenACS Q&A: Re: RFC: Remake of file-storage

Collapse
Posted by Malte Sussdorff on
Hamilton, is this version of ajax-file-storage already in HEAD? Furthermore is the help system committed and do you have some documentation on how to include it on the pages?
Collapse
Posted by Hamilton Chua on
Hi Malte,

My target for putting the code on head is end of this week. I am still deliberating whether I should make ajaxhelper a dependency.

It's possible to make it stand alone from ajaxhelper if I were to grab only the relevant javascript and style sheets, minify and then compress. This will result in much lighter code as far as javascript is concerned.

Let me know if you need it sooner.

The help system you see in the demo is UI only. I had originally intended to use it for the help system that Nima wrote but I wasn't able to contact Nima about it. The one in the demo uses a flat file with help text. The system knows which help text to display based on the url.

I can send you a zipped copy of the code if you like.

Best,

Ham

Collapse
Posted by Hamilton Chua on
The version of ajaxfs-ui that you see on the demo has bee committed to openacs cvs HEAD along with an updated version of ajaxhelper.
Collapse
Posted by Jose Agustin Lopez Bueno on
Hi, Hamilton!

I am testing ajax-filestorage-ui. I have installed the package rightly but when I open one folder I get the next error:

"Sorry, we encountered an error rendering the tree panel"

and nothing is displayed. In the log I have not any message.
The same in Firefox and IE.
I have download ajax* packages from head.

Do you know where could be the problem, please?

Thanks,
Agustin

Collapse
Posted by Hamilton Chua on
Hi Agustin,

Thanks for downloading and trying out ajaxfs-ui.
Can you double check the mount point for ajaxfs-ui in site-map.

I think it should be ajaxfs2. If it's not mounted as ajaxfs2, can you try to delete it and mount ajax-filestorage-ui as ajaxfs2.

Let me know if that fixes the problem.

Best,

Ham

Hi Hamilton!

Yes, now it is working.

I will like to use that filestorage alternatively
with the old. That will be user election. Is it possible?
One parameter to do that? One flag in the index.adp?

Thanks,
Agustin

Collapse
Posted by Hamilton Chua on
Hi Agustin,

I'm glad you got it working. My recommendation is to add a parameter in the file storage package (e.g. UseAjaxUi)

Then in the index.tcl and index.adp of your file storage package. You can check for the value of this parameter.

Best,

Hamilton

Hi again!

I have put one toggle in the index.tcl / index.adp for
every user can change the file viewer.

Some ideas I have seen:

-How to "Copy" files and folders?
-Perhaps "Download" for files in file contextual menu?
-Menu contextual for folders (left window) ?
-Drag and drop from file explorer?
-Lost two labels in catalog: File and CopyLink

Thanks for you time!
Agustin