
For example, retrieve a set of relevant keywords based on the title, then activate the search function – clicking on this will redirect you to the Empire CMS search page. This is possible only if the Empire CMS search functionality has been enhanced to support fuzzy search!
PHP: Retrieving Baidu dropdown menu
Empire Content Template Call
<h3>相关搜索</h3>
<style>
.searchA{
padding: 0 10px 6px 0;
display: block;
}
</style>
<?php
$otherSearch = getBaiduSuggestion($navinfor['title']);
if($otherSearch){
foreach($otherSearch as $v){
echo "<a class='searchA' href='[!--news.url--]moreSearch/".urlencode($v).".html'>$v</a>";
}
}
?>Pseudo-static rule modification
rewrite ^/moreSearch/(.*?)\.html$ /e/search/index.php?searchget=1&keyboard=$1&show=title&tempid=1&dopost=search last;Modification of the code returned by the search page
Header("Location:$public_r[newsurl]e/search/result/?searchid=$searchid".$dogetvar);