Help - Search - Members - Calendar
Full Version: "hold" and "release"
Movable Type Community Forum > Additional Resources > Tips and Tricks
btrott
At the moment, no, there's no way to do this; this is a feature we have planned, it's on the todo list.
Koen
I found it: you have to edit "edit_entry.tmpl" in the folder tmpl\cms\
On line 203 there is a line containing:
CODE
<select class="menu" name="status"><option value="1"<TMPL_IF NAME="STATUS_HOLD"> selected</TMPL_IF>>Hold<option value="2"<TMPL_IF NAME="STATUS_RELEASE"> selected</TMPL_IF>>Release</select>

Can't I add
CODE
<TMPL_IF NAME=CAN_UPLOAD><TMPL_ELSE>disabled</TMPL_IF>
in the select tag? (I can't test this right now.. My server is down at the moment...) sad.gif
Wouter
This doesn't seem to work correctly, yet !!!
Wouter
Yes this is working, great job  :D  :p
illnoise
This sounds obvious, but I can't figure it out;

I'm making a blog that will have 9 members, but with two members that want final approval over content. I'm having two problems:

1. Anyone with posting priveleges is allowed to release their post, is there any way to "lock" it to "hold" until an administrator has "released" it?

2. How can I notify the administrator there's a new post waiting to be released? (MT Notifications aren't sent out until the message is released, so that won't work…)

Thanks!

illnoise
Koen
Isn't there a way to link the hold/release box to a privelege of a user?
So if a user is not allowed to upload files or edit authors, he doesn't see the box at all? Can't I change that in a template somewhere?
Which template do I have to edit for adding entries?
btrott
Seems like that would work.
Koen
Well, it didn't.. MT printed an error in the top bar.. With the following code users who don't have the permission to upload files, only have the ability to hold entries.
CODE
<TMPL_IF NAME=CAN_UPLOAD><select class="menu" name="status"><option value="1"<TMPL_IF NAME="STATUS_HOLD"> selected</TMPL_IF>>Hold<option value="2"<TMPL_IF NAME="STATUS_RELEASE"> selected</TMPL_IF>>Release</select><TMPL_ELSE><select class="menu" name="status"><option value="1" selected>Hold</select></TMPL_IF>

Next step: sending an email when an entry has been added with a 'hold status'.
illnoise
I tried Koen's (second) fix, and it does work, so thanks, but I now get two pull-down lists,

-for a "upload files" user, the first is hold/release, the second is blank,
-for a restricted user, the first is blank and the second is locked on "hold".

So it works fine, but it's confusing to the user. Is this the way it's supposed to look, or did I not replace the right chunk of code?

Also, this fix only works on the main editing page, what could I do to get it to work on bookmarklets?

Thanks, Koen! I really appreciate it!

Illnoise
Wouter
I don't have that problem so you might have replaced the wrong code..
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.