Thank you. I ended up just using the plugin - was exactly what I needed. Thanks much!
On Apr 5, 12:22 am, Colin <[email protected]> wrote: > Hi Manda > > Indeed it's possible and there are two ways of doing it: > > 1. Via a plugin > > The customquery plugin allows you to change the number of posts on the > home page, and others. > > or > > 2. Via code directly in your theme. > > I use the following in my theme.php to limit the number of posts on my > home page to a value I set in my theme's settings (which are stored as > "__CLASS__.'__option_name' " ): > > --- > public function act_display_home( $user_filters = array() ) > { > //To exclude aside tag from main content loop and limit the > number of posts > parent::act_display_home( array( 'not:tag' => Options::get( > __CLASS__ . '__aside_tag' ), 'limit' => Options::get( __CLASS__ . > '__front_posts' ) ) ); > } > --- > > My inspiration came from a combination of the customquery plugin code > and the "asides" wiki page -http://wiki.habariproject.org/en/Asides- > which uses a more generic action. As I was already using a similar > line for asides, I thought I'd just extend it to limit the pages > rather than use a plugin which essentially does just this. > > HTH > Colin > > On Sun, Apr 4, 2010 at 9:42 PM, manda <[email protected]> wrote: > > I'm looking to set my home.php to show only 2 posts, but leave all > > other entry.multiple.php show whatever default number I set in Habari > > options (whether it be 5, 10 or 20). Is there something simple to add > > to home.php to tell it to show only 2 posts? Have not found anything > > on the wiki or forums regarding this, and trying to accomplish without > > a plugin (not even sure if there is a plugin available anyways). using > > trunk version. > > > -- > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group > > athttp://groups.google.com/group/habari-users > > -- > Colin Seymour > Blog:http://colinseymour.co.uk > Tech Stuff:http://www.lildude.co.uk > Barefoot Running:http://barefootrunner.co.uk -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/habari-users To unsubscribe, reply using "remove me" as the subject.
