Uploads module - only one upload template?

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.
sabernar

Uploads module - only one upload template?

Post by sabernar »

Is it possible to have multiple upload templates?  I have several different upload pages and I need the templates to be slightly different.  Is there a way to do this?  In the Upload Module admin there is only one Upload Template.

Thanks.
Last edited by sabernar on Mon Jun 19, 2006 10:08 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Uploads module - only one upload templte?

Post by calguy1000 »

I just added this into the svn version of the uploads module, and it should be ready for 1.0
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.
sabernar

Re: Uploads module - only one upload templte?

Post by sabernar »

When is it going to be released?
Last edited by sabernar on Mon Jun 19, 2006 10:11 pm, edited 1 time in total.
sabernar

Re: Uploads module - only one upload template?

Post by sabernar »

Any release date?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Uploads module - only one upload template?

Post by calguy1000 »

I'm planning to time it for release when CMS 1.0 comes out, don't know when that'll be, but within the next couple of months I would predict.

The new version of Uploads uses the event model from the CMS 1.0-svn core, so it's kinda glued to 1.0 now.
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.
sabernar

Re: Uploads module - only one upload template?

Post by sabernar »

Is there anyway around this?  I can't wait for the release of 1.0 and I'd be a bit nervous about upgrading all of CMSMS when I'm so close to launching the site for my client.  Is there anyway for me to be able to use multiple upload templates?  Maybe rip out some of the code from the Upoad Module and create some User Defined Tags with them?  I have a bunch of different uploads on the site that I'm creating, and this is one of the last things holding me up, so any and all help is greatly appreciated.

Thanks!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Uploads module - only one upload template?

Post by calguy1000 »

check the help for the uploads module, there are some parameters for specifying different file based templates.
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.
sabernar

Re: Uploads module - only one upload template?

Post by sabernar »

Really?  Where?  I checked the Uploads module Help and didn't see anything about usign separate file-based templates.  I'm using Uploads 1.1.9

Thanks in advance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Uploads module - only one upload template?

Post by calguy1000 »

Uploads 1.1.14 is available on the forge.
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.
sabernar

Re: Uploads module - only one upload template?

Post by sabernar »

Cool, thanks.  Which brings me to another question.  What's the easiest way to upgrade a module without screwing everything up.  I tried a while back and had to undo my changes because things got all screwy.  Is there a simple way to do it?  Thanks.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Uploads module - only one upload template?

Post by calguy1000 »

Well if you hacked the PHP of the module, then uhm, no, there's no easy way to upgrade.

If you haven't hacked the PHP, then it should just be a matter of installing the package overtop of the old one inside the modules directory, and going to Extensions->Modules and clicking Upgrade on the appropriate row.
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.
sabernar

Re: Uploads module - only one upload template?

Post by sabernar »

The upgrade to 1.1.14 worked great.  One last question:  When I submit a file, it just goes back to the upload form page instead of to a Thank You page.  Is there anyway to get it to go to one?

Thanks!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Uploads module - only one upload template?

Post by calguy1000 »

I don't think so.  sorry.
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.
sabernar

Re: Uploads module - only one upload template?

Post by sabernar »

I wonder if I could have a a smarty script surrounding the cms_module call to the Uploads module that would check for a hidden value submitted from the custom upload template that I created.  If the $_POST['formSubmitted'] exists, then don't show the module, but show a Thank You message instead.

What do you think?
sabernar

Re: Uploads module - only one upload template?

Post by sabernar »

So, should I go out on a limb and assume know one knows how to do this? Any help would be greatly appreciated.
Locked

Return to “CMSMS Core”