I agree that the CategoryPage class could use some hooks. In the absence of hooks, you can also make your own CategoryPage class that exends CategoryPage and overrides (there's a technical term for this, but I forget what it is) just the methods you want to hook into.
When I did this for SplitCategoryPage.php, it worked, except that I never did figure out how to get CategoryPage.php to autoload the Article class (I assume this means I'm doing something incorrectly). I had to add require_once('Article.php') to CategoryPage.php. Not surprisingly, I forget about this and it breaks every time I upgrade.
Jim On Sep 12, 2007, at 5:54 AM, Andreas Rindler wrote:
Hi, I am thinking about creating a hook extension that would display external content (i.e. a list of bookmarks from another site, e.g. Digg, Scuttle etc.) below the list of articles on an article page. Whenver a category page title corresponds to the description, tag or title of a bookmark, I want it to show up. So users can see all links to local pages in that category, but also some external bookmarks.
I have looked but don't seem to be able to find any hooks that would allow me to inject my content?
I could create a tag extension and display it on top of the page, but that isn't that intuitive for the user (why have external articles before local ones?).
Any help is appreciated!
Thanks, Andi
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054