When I created my own template (success!), I couldn’t help but notice that the QuickEdit links in my content sections disappeared. The Toolbar was still there up at the left, but the little buttons were gone.
So, I read the QuickEdit instructions on the MODxCMS website and then I compared my template with a few of the default MODx templates.
What I can’t figure out is where the code is on the original MODx templates for these QuickEdit links. The FAQ explains a few different options for implementing them, but none of these tags seem to be in the templates.
When I view the Source Code for the template, I see this:
<!-- 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,1,’/modx-0.9.6/manager/’,’assets/modules/quick_edit’,$(’QE_Toolbar’));
});
</script>
<!-- End QuickEdit headers -->
</head>
<body>
<!-- Start QuickEdit toolbar -->
<div id="QE_Toolbar">
<h1>QuickEdit</h1>
<ul>
<li>Content
<ul>
<li><a href="#" onclick="qe.open(’3’);return false;" title="Edit Space delimited tags for the current document">Tags</a></li><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="/modx-0.9.6/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=1&QuickEdit_logout=logout">Logout</a></li>
</ul>
</li>
</ul>
</div>
<!-- End QuickEdit toolbar -->
But, can’t seem to find any sort of QuickEdit tag or code in the actual template itself...
I copied and pasted the code into a text editor and did a search for the tags listed in the FAQ (
tv-name,
quickedit:, etc.), but there was nothing there.
What am I missing?