这很奇怪,但我不能让ZCatalog工作。一切都是照本宣科的,结果总是一样的。你知道吗
您可以在这里看到: http://nfp-bg.eionet.eu.int/waste/en/search-results?catalogTextIdx=selection
到目前为止我所做的:
<form action="search-results" method="get">
<input type="text" name="catalogTextIdx" id="catalogTextIdx" value="<dtml-if catalogTextIdx>
<dtml-var catalogTextIdx><dtml-else>Search...</dtml-if>" class="search-field" />
<input type="submit" name="SUBMIT" value="Submit Query" class="button" />
</form>
最后,以下代码用于搜索结果页:
<dtml-with common>&dtml.-Header;&dtml.-left-column;</dtml-with>
<td id="content" valign="top">
<h2>Search Results</h2>
<dtml-in expr="catalog(meta_type=['DTML Document'])">
<h3>Result founded: <a href="<dtml-var "catalog.getpath(data_record_id_)">"><dtml-var title></a></h3>
<dtml-var "filterRenderedHTML(PrincipiaSearchSource)">
</dtml-in>
</td>
<dtml-with common>&dtml.-right-column;&dtml.-Footer;</dtml-with>
它应该有用,但不是。我相信应该是一些小东西,但还是不确定。你知道吗
谢谢你的帮助。你知道吗
ZCatalog有一个怪癖,即如果查询包含目录中不存在的索引,它将返回所有索引对象。在本例中,您的查询似乎涉及一个您没有设置的“meta\ type”索引。因此ZCatalog尝试应用该索引,但没有找到它,因此它返回所有项。你知道吗
相关问题 更多 >
编程相关推荐