This topic is locked
[SOLVED]

how to change the message shown on list page before a search is performed?

9/30/2022 9:53:22 AM
PHPRunner General questions
P
pmuckle authorDevClub member

Hi,

I would like to change the text on the message shown on list pages prior to a search being performed, it currently says, 'Nothing to see. Run some search.'

How do I change this please?

Thanks

Peter

aadham 9/30/2022

Try the following in the Before Display event of the List Page.

if($xt->getvar("records_found") > 0)
{
$xt->assign("message","Search Results");
}
else
{
$xt->assign("message","Enter your message here");
}

Good luck!

P
pmuckle authorDevClub member 9/30/2022

Perfect!

Thanks very much