Adding email sort to com_contact admin - Joomla! Forum - community, help and support
i have joomla site group uses com_contact getting email appropriate people within group (president, activities, ...) there 60 email contacts used, route 30 individual email address. unfortunately members email addresses tend change , searching through list of contacts find occurrences of changed email address tedious. came following hack of com_contact allow viewing , sorting email address in admin contact manager.
i added following 3 code edits
/administrator/components/com_contact/admin.contact.html.php
first @ (or about) line 64
then @ (or about) line 102
and @ (or about) line 126
i have shown few lines above , below additions give reference. line numbers reference original code (joomla version 1.5.10)
this seems work well, wondered if there better way...
thanks,
david
i added following 3 code edits
/administrator/components/com_contact/admin.contact.html.php
first @ (or about) line 64
code: select all
<th class="title">
<?php echo jhtml::_('grid.sort', 'name', 'cd.name', @$lists['order_dir'], @$lists['order'] ); ?>
</th>
<?php /* beginnewcodeedit */ ?>
<th class="title" nowrap="nowrap">
<?php echo jhtml::_('grid.sort', 'email', 'cd.email_to', @$lists['order_dir'], @$lists['order'] ); ?>
</th>
<?php /* endnewcodeedit */ ?>
<th width="5%" class="title" nowrap="nowrap">
<?php echo jhtml::_('grid.sort', 'published', 'cd.published', @$lists['order_dir'], @$lists['order'] ); ?>
</th>
then @ (or about) line 102
code: select all
$published = jhtml::_('grid.published', $row, $i );
/* beginnewcodeedit */
$email = $row->email_to;
/* endnewcodeedit */
$row->cat_link = jroute::_( 'index.php?option=com_categories§ion=com_contact_details&task=edit&type=other&cid[]='. $row->catid );
and @ (or about) line 126
code: select all
<a href="<?php echo $link; ?>">
<?php echo $row->name; ?></a> </span>
<?php
endif;
?>
</td>
<?php /* beginnewcodeedit */ ?>
<td>
<?php echo $email;?>
</td>
<?php /* endnewcodeedit */ ?>
<td align="center">
<?php echo $published;?>
</td>
i have shown few lines above , below additions give reference. line numbers reference original code (joomla version 1.5.10)
this seems work well, wondered if there better way...
thanks,
david
Comments
Post a Comment