Page 1 of 1

Need to do a certain thing with CMS

Posted: Wed Mar 08, 2006 12:57 pm
by S-Andersen
Hello

I have just recently started using this CMS, and i think it is very neat! But i now want to create a page, that has certain possibilities for the front end users, but i can't seem to connect the right modules.

Problem statement:
I want a web site, where people can log in (in the front end), for this i suppose i can use FrontEndUsers module. But then i want the frontend users to be able to upload files in directories, that they share with their group. Is this possible? Are there made any modules for frontend users to upload files?

Kindest Regards
Søren Andersen

Re: Need to do a certain thing with CMS

Posted: Wed Mar 08, 2006 2:36 pm
by calguy1000
You need the uploads module to allow uploads, an the customcontent module to limit access to certain users.

Re: Need to do a certain thing with CMS

Posted: Wed Mar 08, 2006 2:51 pm
by S-Andersen
Yep got those too, but I can't seem to present an uploade form in the front end to the user. I got the feeling that the upload module only was to use in the backend.
Can you tell me how to show the upload form at front end?

Re: Need to do a certain thing with CMS

Posted: Wed Mar 08, 2006 3:57 pm
by calguy1000
to present an upload form on the frontend put a tag like this into your page:

Code: Select all

{cms_module module=uploads category=something mode=upload}
of course you need to create the appropriate category in the uploads module, and if you want users to be able to see the list of files, you need to make that category "listable"

if you only want certain people to be able to upload, surround it with the customcontent tags.

i.e:

Code: Select all

<!--customContent: startif group=users -->
{cms_module module=uploads category=something mode=upload}
<!--customContent: else -->
blah blah blah
<!--customContent: endif -->
You can use multiple uploads module tags to do various things, like this for example:

Code: Select all

<!--customContent: startif group=users -->
{cms_module module=uploads category=something mode=upload}<br/><br/>
{cms_module module=uploads category=something mode=summary}
<!--customContent: else -->
blah blah blah
<!--customContent: endif -->