How can we set personal books checked by default?

Thanks.

CommentFileSizeAuthor
#7 book_manager-333177.patch1.28 KBjgraham

Comments

jgraham’s picture

If a user only has personal book permissions then they will not be presented with the "Make personal" checkbox and all books they create will be personal books.

Does this solve your issue or do you have users with both 'book' and 'book_manager' permissions?

Perhaps a config setting for this?

Aerodynamo’s picture

Version: 6.x-1.1 » 6.x-1.2

I've tried to arrange my permissions like this and feel I've tried everything I could possibly try with this and my Drupal 6 installation.

I would like it so users won't have to click "Make this a personal book" each time, because I guarantee people won't remember to do so. It seems like it only makes sense to enable this as a default option somewhere...

Am I doing something wrong?

Thanks in advance!

Arhimad’s picture

You can take advantage of "jquery",
Create script.js file in the folder with your theme sites/all/themes /"your_theme"
with the content:
$(document).ready(function(){$("#edit-book-ispersonal").attr("checked", "checked");});

all

marcp’s picture

Title: Personal books checked by default? » Need config setting Personal books checked by default?
Version: 6.x-1.2 » 6.x-1.x-dev

As jgraham mentioned above, in the current version of Book Manager, if a user has only has 'create personal books' permissions then they will not be presented with the "Make personal" checkbox and all books they create will be personal books.

So, this is only an issue for users with both 'create personal books' and 'create new books' rights. A config setting would be nice for that case.

gkelly’s picture

Agreed. That config setting would be a really nice addition. My site needs users to have both 'create personal books' and 'create new books' rights and it would be great to have the 'make personal' checkbox option checked by default. I'm going to give Arhimad's script a go, but that would be a handy addition for a future version.

njathan’s picture

Thanks for reviving the thread Marc! Your comment #4 above was very helpful.. that perm setting isn't as obvious as it seems...

jgraham’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new1.28 KB

Added config option.

jgraham’s picture

Category: support » feature
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.