Page 1 of 2
Uploads module - only one upload template?
Posted: Sun Jun 18, 2006 10:21 pm
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.
Re: Uploads module - only one upload templte?
Posted: Mon Jun 19, 2006 12:44 pm
by calguy1000
I just added this into the svn version of the uploads module, and it should be ready for 1.0
Re: Uploads module - only one upload templte?
Posted: Mon Jun 19, 2006 8:56 pm
by sabernar
When is it going to be released?
Re: Uploads module - only one upload template?
Posted: Tue Jun 20, 2006 9:30 pm
by sabernar
Any release date?
Re: Uploads module - only one upload template?
Posted: Tue Jun 20, 2006 11:47 pm
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.
Re: Uploads module - only one upload template?
Posted: Sat Jul 01, 2006 2:50 pm
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!
Re: Uploads module - only one upload template?
Posted: Tue Jul 04, 2006 2:59 pm
by calguy1000
check the help for the uploads module, there are some parameters for specifying different file based templates.
Re: Uploads module - only one upload template?
Posted: Wed Jul 05, 2006 11:21 pm
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.
Re: Uploads module - only one upload template?
Posted: Thu Jul 06, 2006 2:40 am
by calguy1000
Uploads 1.1.14 is available on the forge.
Re: Uploads module - only one upload template?
Posted: Thu Jul 06, 2006 9:51 pm
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.
Re: Uploads module - only one upload template?
Posted: Thu Jul 06, 2006 10:15 pm
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.
Re: Uploads module - only one upload template?
Posted: Fri Jul 07, 2006 12:11 am
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!
Re: Uploads module - only one upload template?
Posted: Fri Jul 07, 2006 12:47 am
by calguy1000
I don't think so. sorry.
Re: Uploads module - only one upload template?
Posted: Fri Jul 07, 2006 1:41 am
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?
Re: Uploads module - only one upload template?
Posted: Sat Jul 15, 2006 2:55 pm
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.