Change tooltip between list view and form view

I have a tooltip that I would like to have a different message between list and form view.
I am putting this in the Publishing/Tip Text and setting eval to Yes.


PHP:
if ('{placeholder to test}')
{
return 'This is a list';
}
else
{
return 'This is a form';
}

I'm not sure what value to test ?
 
Try (I didn't test)
if ('{view}' == 'list')

To fetch a URL option in general:
$myapp = JFactory::getApplication();
$myview = $myapp->input->get('view','your-default');
if ($myview == 'list')

should do in any case.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top