Unfortunately there’s no easy solution around this. I’ll add this to todo list.
I’ll have to investigate if this could be solved with ColorBox bindings by triggering something that removes document lock when user hits the close button.
One another note it would be really nice to be able to add a checkbox tv I can set up for documents that when ticked would remove the "Create Resource Here" button - what do you think. Should just need a check in the initial plugin call to check for the presence of a tv and override the $addbutton value?
This would be in preference to using a custom button as it could still make use of the "inheritTpl" functionality used by the "Create Resource Here" button when needed.
Hi uxello,
Have a look at my signature: Template Rules. Does exactly what you need and works with QM
What I am looking to do is have QM+ display or hide the "Create Resource Here" button depending on the template used. I though the same logic of having a tv to determine if the "Create Resource Here" button should be displayed or not would work quite well.
My opinion is that this functionality is a job for manager user rights...
// Bindings
$().bind("cbox_open", function(){/*$("body").css({"overflow":"hidden"}); $("html").css({"overflow":"hidden"});*/ $("#qmEditor").css({"display":"none"});});
$().bind("cbox_closed", function(){/*$("body").css({"overflow":"auto"}); $("html").css({"overflow":"auto"});*/ $("#qmEditor").css({"display":"block"});});
I commented a part of line 299 and 300 in qm.inc.php
// Bindings $().bind("cbox_open", function(){/*$("body").css({"overflow":"hidden"}); $("html").css({"overflow":"hidden"});*/ $("#qmEditor").css({"display":"none"});}); $().bind("cbox_closed", function(){/*$("body").css({"overflow":"auto"}); $("html").css({"overflow":"auto"});*/ $("#qmEditor").css({"display":"block"});});
BTW: Why is there no link to forum on http://modxcms.com/extras/package/541