btrott
Feb 21 2002, 03:42 PM
I think you'll have to hack the MT code for this. The file tmpl/cms/upload.tmpl has the upload screen.
btrott
Feb 22 2002, 12:32 AM
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
Feb 24 2002, 04:34 PM
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
Feb 21 2002, 11:30 AM
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
Feb 21 2002, 06:47 PM
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
Feb 24 2002, 01:04 PM
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.