joomlaexpert.com
 
Link to new Content-Item in admin notification (11659 hits)
Written by Thomas Kahl

If you have authors on your site, that are not allowed to publish content-items on their own, you may know the problem that there is no link to the new content in the notification message. So you have to search the message on your own.

That can be changed: open the file /components/com_content/content.php and replace this line (should be line 1415)


$msg->send( $my->id, $user_id, "New Item", sprintf( _ON_NEW_CONTENT, $my->username, $row->title, $section, $category ) );


with this line (it is on line!):


$msg->send( $my->id, $user_id, "New Item:" . ' <a xhref="'.$GLOBALS['mosConfig_live_site']. '/administrator/index2.php?option=com_content&sectionid=0 &task=edit&hidemainmenu=1&id='.$row->id.'">'.$row->title.'</a>', sprintf(_ON_NEW_CONTENT, $my->username, $row->title, $section, $category ) );

After that, every new message has a link to the new content-item in the subject.
Comments (1)add
What version? : Guest
To which versiosn is this applicable?
January 13, 2006
Write comment


Write the displayed characters


busy
 
Home