Hello,
Has anyone figured out a possibility to disable QuickEdit per document and/or template.
By disabling I refer to the automatically inserted QuickEdit signatures (below) in <head> and <body>.
Some documents contain pure PHP and database inserts. In such cases there is no need to load the page with redundant scrips and characters.
Disabling the plug-in is a poor method because of its site-wide effect.
Thanks.
<!-- Start QuickEdit headers -->
<script type="text/javascript" src="/manager/media/script/mootools/mootools.js"></script>
<script type="text/javascript" src="/assets/modules/quick_edit/javascript/QuickEdit.js"></script>
<link type="text/css" rel="stylesheet" href="/assets/modules/quick_edit/styles/toolbar.css" />
<script type="text/javascript">
Window.addEvent('load',function() {
qe = new QuickEdit(2,116,'/manager/','assets/modules/quick_edit',$('QE_Toolbar'));
});
</script>
<!-- End QuickEdit headers -->
<!-- Start QuickEdit toolbar -->
<div id="QE_Toolbar">
<h1>QuickEdit</h1>
<ul>
<li>Content
<ul>
<li><a href="#" onclick="qe.open('content');return false;" title="Edit Document content">Document content</a></li><li><a href="#" onclick="qe.open('description');return false;" title="Edit You can enter an optional description of the document here.">Description</a></li><li><a href="#" onclick="qe.open('introtext');return false;" title="Edit Type a brief summary of the document">Summary (introtext)</a></li><li><a href="#" onclick="qe.open('longtitle');return false;" title="Edit Here you can enter a longer title for your document. This is handy for search engines, and might be more descriptive for your document.">Long title</a></li><li><a href="#" onclick="qe.open('pagetitle');return false;" title="Edit Type the name/ title of the document here. Try to avoid using backslashes in the name!">Title</a></li>
</ul>
</li> <li>Settings
<ul>
<li><a id="QE_ShowLinks" class="checkbox" href="javascript:qe.toggleLinks();">Show links</a></li><li><a href="#" onclick="qe.open('alias');return false;" title="Edit Here you can select an alias for this document. This will make the document accessible using:\n\nhttp://yourserver/alias\n\nThis only works if you're using friendly URLs.">Document's alias</a></li><li><a class="checkbox checked" href="#" onclick="qe.ajaxSave('cacheable', 'cacheable', '');return false;" title="Edit Leaving this field checked will allow the document to be saved to cache. If your document contains snippets, make sure this field is unchecked.">Cacheable</a></li><li><a class="checkbox" href="#" onclick="qe.ajaxSave('hidemenu', 'hidemenu', '1');return false;" title="Edit Select this option to show document inside a web menu. Please note that some Menu Builders might choose to ignore this option.">Show in menu</a></li><li><a href="#" onclick="qe.open('menuindex');return false;" title="Edit Menu Index is a field you can use for sorting document in your menu snippet(s). You can also use it for any other purpose in your snippets.">Menu index</a></li><li><a href="#" onclick="qe.open('menutitle');return false;" title="Edit Menu title is a field you can use to display a short title for the document inside your menu snippet(s) or modules.">Menu title</a></li><li><a class="checkbox checked" href="#" onclick="qe.ajaxSave('published', 'published', '');return false;" title="Edit Check this field to have the document published immediately after saving it.">Published?</a></li><li><a class="checkbox checked" href="#" onclick="qe.ajaxSave('searchable', 'searchable', '');return false;" title="Edit Checking this field will allow the document to be searched. You can also use this field for other purposes in your snippets.">Searchable</a></li><li><a href="#" onclick="qe.open('template');return false;" title="Edit Here you can select which template the document uses.">Template</a></li>
</ul>
</li> <li>Go
<ul>
<li><a id="QE_Manager" href="/manager/">Manager</a></li><li><a id="QE_Help" href="http://www.modxcms.com/quickedit.html">Help</a></li><li><a id="QE_Logout" href="index.php?id=116&QuickEdit_logout=logout">Logout</a></li>
</ul>
</li>
</ul>
</div>
<!-- End QuickEdit toolbar -->