Hi, I found a thread that discusses the yearly archive plugin and category support.
It seems that if you change a few lines of code in yearly archive you can add parameter category to {exp:yearly_archives /}.
My problem is that I don´t know where to add the code to “pi.yearly_archives.php” Can someone help me out here. Would be very appreiated 😉 Cheers.
Here is the info:
Add:
$category = $TMPL->fetch_param('category') ? $TMPL->fetch_param('category') : '';
$sql_category = $FNS->sql_andor_string($category, 'cat_id');
and changed SQL query to include:
INNER JOIN
exp_category_posts p
ON
t.entry_id = p.entry_id
This adds parameter category to {exp:yearly_archives /}
[Mod Edit: Moved to the plugins development forum.]
Hey kippi,
Send me a quick PM using the forum with your email address. I’ll email you hacked copy of it that followed those instructions from lodewijk.
Keep in mind this hacked version comes with no warranty or guarantees in any way shape or form. 😊 For a real long term solution it would probably be best to see if lodewijk will add this feature officially.
Jamie
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.