Need to do a certain thing with CMS

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
S-Andersen

Need to do a certain thing with CMS

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Need to do a certain thing with CMS

Post by calguy1000 »

You need the uploads module to allow uploads, an the customcontent module to limit access to certain users.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
S-Andersen

Re: Need to do a certain thing with CMS

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Need to do a certain thing with CMS

Post 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 -->
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “CMSMS Core”