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 &quot;<span style="myshop-eval:{$SearchValue};font-weight: bold;color:red">stopcontact</span>
                                        &quot; you searched for did not yield any results.<br/>
                                </td>
                        </tr>
                </table>
        </body>
</html>

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment