I'm trying to insert a link tree on the first page of this mod (the categories page), but for some reason it doesn't look like I expect it to. I'm using the default div tag for this, in the same way as in the other template files:
<div style="padding: 3px;">', theme_linktree(), '</div>
It's inserted into the template_articlesmain function, after the global.
On the category page, the link tree only shows the forum name and not the actual categories page name. If I click one of my two categories though, it looks like it should, showing Forum -> Categories page -> Category.
Got any ideas why this is happening?
Edit: Color me surpised! I managed to fix it myself, by editing Article.php. I moved this:
// Setup the Link Tree
$context['linktree'][] = array(
'url' => $scripturl . '?action=articles',
'name' => $txt['smfarticles_title']
);
GetParentLink($cat);
And inserted it after:
// Set page title
$context['page_title'] = $txt['smfarticles_title'];
Edit 2: Well, apparently that didn't solve the issue after all.

Now I got the categories page in the link tree, but not the categories.