Downloadcontrol+wdir scenario

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Tata
Posts: 3110
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Downloadcontrol+wdir scenario

Post by Tata » Thu Jun 23, 2016 9:02 pm

After first test:
1. added 3 files in downloads/protected
2. creating admin/admin member under register plugin
3. Adding Member1/member1 under Memberpages
4. Changing the Downloads page to a memberspage with {{{control}}}
The result is a table without file names (empty column |FIle Size | Last Update | Number of Downloads)
Regardless if I use memberslogin or registerloginform (not at the same time of course).
EDIT
Next test-used call

Code: Select all

{{{control 'protected-1-2-3.txt,protected-1-2-3.txt'.''.''.'test'}}}
Result
Not readable file
./userfiles/downloads/protected/protected-1-2-3.txttest
Still thinking about the backend access similar to fotorama_XH, or even better flexslider_XH, where the list could be constructed via picking the files directly in the backend. Mazbe even a call constructor.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

svasti
Posts: 1649
Joined: Wed Dec 17, 2008 5:08 pm

Re: Downloadcontrol+wdir scenario

Post by svasti » Fri Jun 24, 2016 12:34 pm

Tata wrote:Next test-used call

Code: Select all

{{{control 'protected-1-2-3.txt,protected-1-2-3.txt'.''.''.'test'}}}
Result
Not readable file
./userfiles/downloads/protected/protected-1-2-3.txttest
When using "." instead of "," it cannot work :shock:
Tata wrote:2. creating admin/admin member under register plugin
3. Adding Member1/member1 under Memberpages
Don't use both plugins, take only one.
Tata wrote:4. Changing the Downloads page to a memberspage with {{{control}}}
The result is a table without file names (empty column |FIle Size | Last
Update | Number of Downloads)
Check if you set the correct folder as downloadcontrol base folder. If your
files are in downloads/protected and you call without arguments, the base folder
must be "protected"
Tata wrote:the list could be constructed via picking the files directly in the backend.
Mazbe even a call constructor.
Well, this is what is new in beta 3 compared to beta 2. It is called "Plugin
Call Shortcuts" in the backend.

All files are listed and you just click checkboxes. In the content you call
{{{control 1}}} or {{{control 2}}}, the number being the number of the shortcut.
You can have as many shortcuts as you want (Config setting). No more mixing up
"." with ","

Please check this feature. Here you will see immediately if your base folder
setting is correct. If it is wrong, no files and checkboxes will be shown.
Last edited by cmb on Sat Jun 25, 2016 2:08 pm, edited 1 time in total.
Reason: restored original post by svasti from newsfeed

cmb
Posts: 13274
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Downloadcontrol+wdir scenario

Post by cmb » Sat Jun 25, 2016 2:03 pm

Tata wrote:Next test-used call

Code: Select all

{{{control 'protected-1-2-3.txt,protected-1-2-3.txt'.''.''.'test'}}}
There is the code in the help just as I'd copied/pasted it on the page. Now it works fine.
svasti wrote:
Tata wrote:the list could be constructed via picking the files directly in the backend. Maybe even a call constructor.

Well, this is what is new in beta 3 compared to beta 2. It is called "Plugin Call Shortcuts" in the backend.
All files are listed and you just click checkboxes. In the content you call {{{control 1}}} or {{{control 2}}}, the number being the number of the shortcut...
Ah, now I understand the principle. Technically seems super. Maybe some more illustrative explanation in the help file or some more selfexplaining styling won't be bad for less experienced users.
However, I don't think that one can rely on numbered calls (controll 1, controll 2...) insted of seeing the full call on a page. It would IMHO also provide better control in future editting, without the need to enter the backend for seeing what's set in there. But it's only my opinion, I simply like to see the call with all necessary attributes, so I know what's going to be the final result. Maybe an XML file (like with fotorama) would be good way.
Ayway, excellent so far.
Last edited by cmb on Sat Jun 25, 2016 2:04 pm, edited 1 time in total.
Reason: This comment has been originally posted by Tata
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply