Page 1 of 1

Batch change of public_flag

PostPosted: Mon Oct 06, 2003 4:45 pm
by unclewillie
I found that you can select multiple images and change the public_flag for all of them by doing a batch_update. Doing this makes them not publically available. I haven't been able to figure out how to do a batch change to make them public again. I tried different values (0, 1, 2) but the files stay private. Any help would be appreciated.

Willie

Come on Slug, this question should be easy to answer...

PostPosted: Sat Oct 18, 2003 12:17 pm
by unclewillie
You offer an option to do a batch change of the public field, yet there is no indication of what valid parameters are. I was able to change an entire gallery to be not publicly viewable, but now I need to change it back. It is too slow to do one at a time. Please just let me know what the parameters for the field are.

123 people have viewed this post so I can't be the only one with this question. Thanks.

PostPosted: Sat Oct 18, 2003 12:21 pm
by ilanphoto
did you try the yes or maybe y and no or n prameters?

PostPosted: Sat Oct 18, 2003 12:39 pm
by srijith
ilanphoto wrote:did you try the yes or maybe y and no or n prameters?

Actually 'y' wont do the job, atleast for my images. But 'Y' does it.

So in short, the answer is to set public_flag to 'Y' (capital Y) without the quotes.

In long, this looks like a bit un-userfriendly. The logical values would be:

public_flag=y or Y ot 1 -> image is public.

public_flag=n or N or 0 -> image is not public

Hope slug can add couple more "or" in that "if" statement.