xedit: provide icon and a macro for embedding xedit links
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1172 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
3499889a13
commit
b59c342fff
4 changed files with 16 additions and 2 deletions
|
@ -67,7 +67,6 @@
|
|||
</tal:block>
|
||||
</div>
|
||||
|
||||
<!--<h2 tal:content="controller/macros/css" />-->
|
||||
<metal:content define-slot="body">Here comes the body</metal:content>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -5,15 +5,23 @@
|
|||
xmlns:zope="http://namespaces.zope.org/zope"
|
||||
i18n_domain="zope">
|
||||
|
||||
<resource name="edit.gif" file="edit.gif" />
|
||||
|
||||
<pages for="loops.interfaces.IResource"
|
||||
class=".browser.ExternalEditorView"
|
||||
permission="zope.ManageContent">
|
||||
|
||||
<page name="external_edit" attribute="load" />
|
||||
<!--
|
||||
<page name="save" attribute="save" />
|
||||
<page name="lock" attribute="lock" />
|
||||
<page name="unlock" attribute="unlock" />
|
||||
<page name="unlock" attribute="unlock" />-->
|
||||
|
||||
</pages>
|
||||
|
||||
<page for="*"
|
||||
name="xedit_macros"
|
||||
template="xedit.pt"
|
||||
permission="zope.View" />
|
||||
|
||||
</configure>
|
||||
|
|
BIN
xedit/edit.gif
Normal file
BIN
xedit/edit.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 879 B |
7
xedit/xedit.pt
Normal file
7
xedit/xedit.pt
Normal file
|
@ -0,0 +1,7 @@
|
|||
<metal:editlink define-macro="editLink">
|
||||
<a href="#" title="External Editor"
|
||||
tal:define="url xeditObjectUrl | context/@@absolute_url"
|
||||
tal:attributes="href string:$url/external_edit"
|
||||
><img src="edit.gif" alt="External Editor"
|
||||
tal:attributes="src context/++resource++edit.gif" /></a>
|
||||
</metal:editlink>
|
Loading…
Add table
Reference in a new issue