I use Article Anywhere from within a module. I also have JomComment active. When JomComment tries to create a readmore-link for the AA-article in the module, it fails because slug and catslug aren't present in object $article.
JomComment relies on them, since com_content does fetch those fields, but AA does not.
Here's the patch for helper.php, maybe you want to use it:
--- helper-orig.php 2010-06-23 17:56:02.000000000 +0200
+++ helper-fixedforjomcomment.php 2010-06-30 17:00:04.000000000 +0200
@@ -335,6 +335,8 @@
$joins = '';
if ( $type == 'article' ) {
+ $selects .= ', CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END as slug';
+ $selects .= ', CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug';
$selects .= ', cc.alias as cat';
$joins = ' LEFT JOIN #__categories as cc ON cc.id = c.catid';
}
@@ -410,16 +412,11 @@
}
}
} else {
- $slug = 'id='.$article->id;
- if ( $article->alias != '' ) {
- $slug .= ':'.$article->alias;
- }
+ $slug = 'id='.$article->slug;
if ( $article->catid ) {
- $slug .= '&catid='.$article->catid;
- if ( $article->cat != '' ) {
- $slug .= ':'.$article->cat;
- }
+ $slug .= '&catid='.$article->catslug;
}
+
$link = 'index.php?option=com_content&view=article&'.$slug;
$component =& JComponentHelper::getComponent( 'com_content' );
$menus =& JApplication::getMenu( 'site', array() );