-
- 37 Posts
Hi all,
I am always looking for new ways to use the power of MODx to my advantage. Today I decided to build a downloads section.
The structure I imagined was one entry page which lists all of it’s subfolders as categories, and all of the documents within as downloads. I based the documents on a new template for which I have special plans. To manage the downloadable files, I added a TV to this template of the type File.
This gives the page editor the possibility to add a file to the document (the document itself contains the description).
But what happens with these File TV’s? I get a browse button to select a local file. And the filename is saved with the document. But should this file be uploaded to the server automatically? I can’t find it anywhere, and neither does the TV widget.
If the system is working I’ll post it here ofcourse. I plan to include things like number of times downloaded and stuff by using snippets.
-
- 37 Posts
It says "MODx2 TP3 (x2)" in my manager.
-
- 37 Posts
Yep, the bug is in the bugtracker. It has something to do with a variable that is not set. $im_plugin_base_dir, but I haven’t found where it should be set.
-
- 1,732 Posts
Hi
Thanks for pointing this one out I think that variable should be changed to $rb_base_dir
-
- 37 Posts
That was my guess also. The uploading works with that changed, but the file is uploaded in the root of the assets dir. Not really the place I would want those files. And the widget displaying the TV doesn’t work correctly with that new path. The widget links to the file directly in the root of the MODx installation.