32 lines
1.3 KiB
XML
32 lines
1.3 KiB
XML
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
|
|
metal:use-macro="here/main_template/macros/master">
|
|
|
|
<tal:comment replace="nothing">This page presents results of queries</tal:comment>
|
|
<body>
|
|
|
|
<tal:comment replace="nothing">Disable standard Plone green tabs</tal:comment>
|
|
<div metal:fill-slot="top_slot">
|
|
<metal:block metal:use-macro="here/global_defines/macros/defines" />
|
|
<div tal:define="dummy python:request.set('disable_border', 1)" />
|
|
</div>
|
|
|
|
<tal:comment replace="nothing">We suppose we are in the app folder here.</tal:comment>
|
|
<div metal:fill-slot="main"
|
|
tal:define="appFolder context/getParentNode;
|
|
appName appFolder/id;
|
|
tool python: portal.get('portal_%s' % appName.lower());
|
|
contentType request/type_name;
|
|
searchName request/search|python:''">
|
|
|
|
<div metal:use-macro="here/skyn/page/macros/prologue"/>
|
|
<tal:comment replace="nothing">Query result</tal:comment>
|
|
<div id="queryResult"></div>
|
|
|
|
<script language="javascript"
|
|
tal:define="ajaxUrl python: tool.getQueryUrl(contentType, searchName)"
|
|
tal:content="python: 'askQueryResult(\'queryResult\', \'%s\',\'%s\',\'%s\',0)' % (tool.absolute_url(), contentType, searchName)">
|
|
</script>
|
|
</div>
|
|
</body>
|
|
</html>
|