However, to do create this I ended up adding to the following files Vanilla.Class.Discussion.php Vanilla.Class.DiscussionManager.php
In the Discussion Manager I added (amoung other things) // Get first comment body $s->AddJoin('Comment', 'tcb', 'CommentID', 't', 'FirstCommentID', 'left join'); $s->AddSelect('Body', 'tcb', 'CommentBody');
And in Discussion I ended up adding (amoung other things) $this->CommentBody = '';
To have it populating etc
So ... is it possible to extend the system through a theme only? It'd be kinda silly to say "Download this theme, but only if you have Blog 2.0 installed" Any help, pointers etc .... much appreciated
Only if you can somehow replicate in the output what those bits of code do to the internal workings. Which i think you'd struggle to do. I dont really think it's such a problem to have extension-theme dependancies though.
yeah I kinda was thinking that ... I mean the whole idea of MVC/Themes is that we remove the core code, and themes just display - their is NO processing done in them. Hmm ... okay ... I guess that means I have to finally tackle extensions!