Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Sample events > Appearance

Hide repeating values on the List page

Scroll Prev Next More

 

Here is the typical List page with the list of cars sorted by make.

hide_repeating_values1

 

Sometimes you may need to make this screen less cluttered by removing the repeating values in the Make column. Something like this:

hide_repeating_values2

 

Here is how this can be done:

 

1. Add the following code to the List page: BeforeProcess event:

 

$_SESSION["Make"]="";

 

2. Set the 'View as' type of the Make field to 'Custom' and paste the following code there:

 

if ($value==$_SESSION["Make"])
$value="";
else
$_SESSION["Make"]=$value;

See also:

"View as" settings

AJAX-based sorting

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software