Hi, I currently have the following code which displays perfectly the number of k2 items/articles within a category. <?php $cat_id = $this->item->category->id; $db = JFactory::getDBO(); $select = "SELECT COUNT(*) FROM #__k2_items WHERE...
Hi Mohamed, So sorry to post again so soon, am just desperate to get this job finished (this is the last thing I have left to complete). I just wondered if you have any ideas what might be wrong from the errors? Once again any help would...
Hi Mohamed, Thanks again for this, much appreciated!!! :) Sorry I should have turned on error reporting and included this error in my previous post (sorry about that!) here is the error: Undefined property: stdClass::$relatedItems in...
Hi Mohamed, Firstly thanks so much for this, very kind of you, much appreciated and also sorry for the delay in my response. I very much hoped to only be thanking you, but im afraid to say (after checking everything 3 times) im afraid to...
Hi Krikor, Thanks again for your reply/help much appreciated! :) Sorry to bother you again, I was just wondering if you know where abouts I have to copy the related function to, im must be not putting it in the correct place/file, as im...
@Alex no worries, thanks anyway, I thought so. Is anoying how difficult such a simple requirement is proving to be. @Krikor sorry to bother you again, but i dont suppose you know the file I need to copy the function get relateditems to do you?
@Krikor, many thanks, could you possibly clarify what you mean by triggered in category view, yes this is what i need I believe just simply the get related items function in the relevant file. @Alex, many thanks, although that module is...
Hi Krikor, Many thanks for your reply/help! Could you possibly suggest an extension/k2 plugin that might do the trick? Ive looked but haven't found anything. Basically, what im aiming to achieve is, simply a count (only the integer) of...
I have the following code which I use within the k2 template file 'item.php' <?php echo $this->relatedItems[0]->title->value ;?> Id simply like to use this same code in the k2 template file 'category_item.php' Ive found the function...
More