*bump*
I post it here, don´t know where else (mamboforge is that slow, so I hope there´ll be a faster forge soon):
Bug: Readon - link in blog view has wrong Itemid
Version: 4.5.2.3. (also in 4.5.3. CVS)
Description: If you are on a blog view page (category/section) the readmore button gets a wrong Itemid (in most cases). Itemid is defined with (line 411 content.html.php in 4.5.2.3. and line 801 in content.item.php in my CVS [* @version $Id: content.item.php,v 1.2 2005/08/09 06:11:59 eddieajau Exp $]):
Code:
$_Itemid = $mainframe->getItemid( $row->id, 0, 0, $ItemidCount['bs'], $ItemidCount['bc'], $ItemidCount['gbs'] );
this function looks where this item is published (in which menu item a table/blog category/section etc. the item is published). But this makes no sense, because an item can be published in numerous ways (table for an overview, frontpage as blog and so on).
Problem is: If you are on a page (e.g. blog section) with Itemid=42, the readmore link gets perhaps Itemid=2, because there is a menu link with table section where the item is also published. If you assign a different template to this menu link or an other module selection, then this readmore link will bring you to the template/module selection on this table section. It stays not in the "current" Page.
So the code has to be imho:
Code:
$_Itemid = $Itemid;
I just realise that this function would be correct for the newsflash, because this is displayed on various pages, there it would be correct to select where this Item belongs to. Since newsflash uses the same function show(), it would be better to identify the newsflash call (push a variable with it or so) in the function show() and put an Itemid to it which links to the page where the item is published.
Hope this is understandable.
Greetz Marc
PS: Perhaps a moderator can move this thread where it is better off (but as I said, I don´t know where...).