Page 1 of 1

Change number of posts al home page

Posted: Thu Mar 31, 2005 1:44 am
by ABS
I think that by default are 15 posts. How can I change it? I have not found it... :(

Thanks!

Re: Change number of posts al home page

Posted: Thu Mar 31, 2005 2:50 pm
by garvinhicking
Serendipity 0.8: Configuration, Numer of frontpage entries

Regards,
Garvin

Re: Change number of posts al home page

Posted: Thu Mar 31, 2005 3:18 pm
by ABS
I have Serendipity v.0.7.1 :(

Editing any file?

Re: Change number of posts al home page

Posted: Thu Mar 31, 2005 3:47 pm
by garvinhicking
Please search the forums - you'll need to edit your layout.php file and replace 15 with your wanted number. :)

Regards,
garvin

Re: Change number of posts al home page

Posted: Thu Mar 31, 2005 4:14 pm
by ABS
I changed 15 for 25, but apparently it does not work:

Code: Select all

# cat serendipity_layout* |grep -i 25
                        serendipity_printEntries(serendipity_fetchEntries(null, true, 25));
                        serendipity_printEntries(serendipity_fetchEntries(null, true, 25));
And I have proven it with another navigator.

Re: Change number of posts al home page

Posted: Thu Mar 31, 2005 6:43 pm
by garvinhicking
I told you to change your layout.php file inside the templates/ directory :-)

The serendipity_layout.inc.php has nothing to do with that, it was outdated and removed in Serendipity 0.8 :-)

So please try again :)

Regards,
Garvin

Re: Change number of posts al home page

Posted: Thu Mar 31, 2005 7:00 pm
by ABS
It works good now :)

You told layout.php, but not inside /templates/default/ ;) (confusions...)

Thanks for your time!

along those lines

Posted: Sat Apr 02, 2005 11:36 pm
by Xanthouos
I wanted to have only the sticky post on the main page and all the posts availiable under the catagories show...how to do that?

Thank you!

Re: along those lines

Posted: Sun Apr 03, 2005 2:44 am
by garvinhicking
You would need to write a plugin for that, as there currently is no plugin available for that.

I once posted a solution to this forum how to only show postings of a certain category on the startpage and only show other postings once you click on different categories.

Thus you could create a category "Mainpage" or "Sticky Postings" and make that the default category. For this you'd need to hack the index.php page or write a plugin for that - I think I've described it fairly well, so please search the forum for that.

Regards,
Garvin

Thank you

Posted: Sun Apr 03, 2005 10:31 am
by Xanthouos
I appreciate your readiness to heelp us in need. :wink:

Thank you for making s9y the great appz. that it is.