Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 2 Hours, 59 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

Conflict with JomComment [resolved]
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Conflict with JomComment [resolved]
#9739
Conflict with JomComment [resolved] 1 Year, 7 Months ago  
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() );
Last Edit: 2010/06/30 17:45 By imhuis.
The administrator has disabled public write access.
 
#9748
Re: Conflict with JomComment [resolved] 1 Year, 7 Months ago  
Thanks
Peter van Westen
Admin
Posts: 9169
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Moderators: Peter van Westen
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support
hosting joomla