Help - Search - Members - Calendar
Full Version: Diffrent upload menus for diffrent blogs...
Movable Type Community Forum > Additional Resources > Tips and Tricks
btrott
I think you'll have to hack the MT code for this. The file tmpl/cms/upload.tmpl has the upload screen.
btrott
You could add a new column to the Blog object, but you may be best off just doing string matching on the blog names, to be honest--this latter option is a lot simpler and requires much less modification of the core of the system.
btrott
See where it says

CODE
my $blog = MT::Blog->load($blog_id);


in the code? $blog is the blog object. You can get the name of the blog using

CODE
$blog->name


Obviously, messing about with the MT code is going to require some Perl knowledge.
Waylin
I am currently running 7 different sections of my website via separate blogs in movabletype. Two of which are text sections, three are cam sections, and one is an art gallery. I would like to show different upload menus for these different types so my users cant upload with the wrong settings for a section.. For example: popup images are allowed in the text but not in the cams, and the gallery only allows uploads to a specific folder.

Any ideas?
Waylin
Ok, I tracked down the code that loads the upload template and I would like it to load one of three based on the "Type of blog". I am trying to figure out how to add an option to the edit blog screen that would let me set a parameter with the different types of blogs.
That way I can configure each blog to have a "type" and load the correct templates based on that.

I guess I am trying to figure out how to create a new parameter that I can check in CMS.pm.
Waylin
Where could I find this "blog object?" I would not like the names of my sections hard coded in Movabletype.

Thanks,

Waylin.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.