Hello,
A quick search of the forum didn't tell me the best ways to contribute enhancements back upstream and I'm hoping someone can show me the best way.
I've added a configuration item to the rokstories module which allows the user to append an &Itemid value. When paired with an existing/dummy menuitem, this allows the user to cause target modules to appear on the linked articles.
Against mod_rokstories v0.6 (June)
In helper.php at line 92:
$useItemId = $params->get("itemid");
if ($useItemId!="")
{
$useItemId = "&Itemid=".$useItemId;
}
and append ".$useItemId" to line 237 as shown:
if ($content_type=='joomla') {
$lists[$i]->link = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catslug, $row->sectionid)).$useItemId;
$images = modRokStoriesHelper::getImages($row->introtext,$thumb_size);
} else {
Finally, add the new parameter to modrokstories.xml at line 56:<param name="itemid" type="text" default="" label="Use Itemid" description="" />
Thanks for a great module!