SearchValue
Entity | Value |
---|---|
Attribute(s) | style, href, title, alt, value |
Type | variable |
Context | document |
Returns the search condition as given by the customer. Only applies when there is a search field in the searchblock in which the customer can give a condition to search for. The variable can be particularly useful in the no-results screen, to show the customer extra information about his search.
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Example of a simple no-results screen</title>
</head>
<body>
<table style="myshop-not-has:results" width="100%">
<tr>
<td valign="top" align="center">
The condition "<span style="myshop-eval:{$SearchValue};font-weight: bold;color:red">stopcontact</span>
" you searched for did not yield any results.<br/>
</td>
</tr>
</table>
</body>
</html>
Post your comment on this topic.