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

  • 0
  • 0
  • 169
  • 0
  • 3

Answers

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:

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"
    ...