Alter Authortab for CB1.2 RC4

15 years 3 months ago #83184 by r.spierings
Alter Authortab for CB1.2 RC4 was created by r.spierings
I use CB1.2 RC4 When using sh404sef component i get domain.com/?task=view when editing a article.

On this forum i found a solution for the RC3 version.

After some editing in the code the edit link works perfect.

The only thing that's not working at this moment is the return link after saving the edited article. The site redirects to the index.php frontpage instead of the edited article.

Does anyone know how to alter the code in the cb.authortab.php file?

This is the last part of my cb.authortab.php rc3 modification:

}
if ( $_CB_framework->getCfg( 'hits' ) ) {
$hits = "<td>".$item->hits."</td>";
}
if ( $jVer == 1 ) {
$url = cbSef( 'index.php?option=com_content&task=edit&view=article&id=' . $item->slug . '&catid=' . $item->catslug . $itemidtxt );
} else {
$url = cbSef( 'index.php?option=com_content&task=edit&view=article&id=' . (int) $item->id . $itemidtxt );
}

$return .= "<tr class=\"sectiontableentry$i\"><td>".cbFormatDate( $item->created )."</td><td><a href=\""
. $url . "\">"
.$item->title."</a></td>".$hits.$rating."</tr>\n";

}
$return .= "</table>";


return $return;
}
} // end class getAuthorTab.

Post edited by: r.spierings, at: 2008/12/23 00:29

Post edited by: r.spierings, at: 2008/12/23 00:30

Post edited by: r.spierings, at: 2008/12/25 16:10

Post edited by: r.spierings, at: 2008/12/25 16:16
Attachments:

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.161 seconds

Facebook Twitter LinkedIn