We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Channel Module Month Links extend

Development and Programming

Big Unit's avatar
Big Unit
4 posts
15 years ago
Big Unit's avatar Big Unit

This question may be related to a resolved thread.

I would like to extend the month_links function in the channel module.

I want to add a parameter, ‘start_on’, to limit the months returned (like with channel:entries).

I can see a hook for AFTER the query is run, I could use this, but that would be inefficient - retrieving all the rows from the database and then filtering them.

I want to make it part of the query, like it is for channel:entries.

Now how do you go about that? The whole add-on documentation is woefully inadequate for this kind of thing, I can’t find an answer anywhere.

In CodeIgniter, it is pretty straightforward to extend core classes.

Anyone have any idea how I can achieve this?

NOTE: Just to clarify, I can change the core module itself to do this, I know the code needed, but obviously I don’t like changing core modules.

Moved to Development and Programming by Moderator

I just need to find the ‘corrrect’ way to extend the class.

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
15 years ago
Sue Crocker's avatar Sue Crocker

Hi, Big Limit. This is more of Development forum question.. moving for additional community support.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.