Question David Miranda · Feb 5, 2018

Customize CSP Search Page with CSS

Hello,

I am using CSP:search and would like to customize the appearance of pop-up search page with CSS.  Any help is appreciated.

Thanks.

Dave

Comments

Eduard Lebedyuk · Feb 6, 2018

Here's how you can do it

  1. Extend %CSP.PageLookup class and redefine ShowStyleSheet method there.
  2. Create custom tag calling your new search page

Documentation:

0
Bernd Mueller · Feb 6, 2018

if i remember correctly you do not need to create a custom tag in order to use your customer version of the lookup-class. You can use the default CSP:search tag and provide your modified custom lookup-class by the "searchpage" attribute.

<csp:Search name="FindPerson"
    searchpage="%ZCSP.PageLookup.cls?SEARCH&..."
    onselect="onFindCustomer"
    classname="Sample.Person"
    ...

0