Hi,
there are different way to do this, Joomla template override allow you also to create many views (menu item type), but this is a bit complex.
You can simply use a single override and add some control, for example you have 2 menu items of type Easy Profile->User List (table)
- "List 1" with ID 201
- "List 2" with ID 202
now you can simply change the code like this:
- in file /templates/your-template-folder/html/com_jsn/list/table.php after line 70 you can add something like this:
if ( JRequest::getVar( 'Itemid' ) == 201 ) {
echo('<th>Field A title</th>');
echo('<th>Field B title</th>');
}
if ( JRequest::getVar( 'Itemid' ) == 202 ) {
echo('<th>Field C title</th>');
echo('<th>Field D title</th>');
}
- in file /templates/your-template-folder/html/com_jsn/list/table_user.php after line 136 you can add something like this:
<?php if ( JRequest::getVar( 'Itemid' ) == 201 ) : ?>
<td>
<?php echo $this->user->getField('fieldA',true); ?>
</td>
<td>
<?php echo $this->user->getField('fieldB',true); ?>
</td>
<?php endif; ?>
<?php if ( JRequest::getVar( 'Itemid' ) == 202 ) : ?>
<td>
<?php echo $this->user->getField('fieldC',true); ?>
</td>
<td>
<?php echo $this->user->getField('fieldD',true); ?>
</td>
<?php endif; ?>