Commit ab3c423b authored by Ivan Tyagov's avatar Ivan Tyagov

Allow to clone any object not just documents.

parent 5201b9c4
...@@ -58,7 +58,9 @@ ...@@ -58,7 +58,9 @@
document_url python: test(is_permanent_document, \n document_url python: test(is_permanent_document, \n
getattr(here, \'editable_absolute_url\', absolute_url), \n getattr(here, \'editable_absolute_url\', absolute_url), \n
absolute_url);\n absolute_url);\n
http_parameters string:${request/http_parameters}">\n http_parameters string:${request/http_parameters};\n
is_document here/isDocument;\n
is_clone_allowed python: portal_type in here.getParentValue().getVisibleAllowedContentTypeList();">\n
\n \n
<ul>\n <ul>\n
<!-- Edit button menu -->\n <!-- Edit button menu -->\n
...@@ -202,9 +204,22 @@ ...@@ -202,9 +204,22 @@
XXX - This is not so good to create new content in a section\n XXX - This is not so good to create new content in a section\n
Behaviour should be to create content in section / site\n Behaviour should be to create content in section / site\n
-->\n -->\n
<li class="toolboxSection"\n
id="clone-document-toolbox"\n
tal:condition="python: not is_document and is_clone_allowed">\n
<h3 class="menu_title">\n
<span id="create_new_document_title"></span>\n
<span id="clone_document_title">\n
<a href="Base_createCloneDocument"\n
tal:content="string:Clone $portal_type"/>\n
</span>\n
</h3>\n
\n
</li>\n
\n
<li class="toolboxSection" \n <li class="toolboxSection" \n
id="clone-document-toolbox"\n id="clone-document-toolbox"\n
tal:condition="python:here.isDocument()">\n tal:condition="python: is_document">\n
<h3 class="menu_title">\n <h3 class="menu_title">\n
<span id="create_new_document_title"></span>\n <span id="create_new_document_title"></span>\n
<span id="clone_document_title">\n <span id="clone_document_title">\n
......
1084 1085
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment