Change number of posts al home page

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
ABS

Change number of posts al home page

Post by ABS »

I think that by default are 15 posts. How can I change it? I have not found it... :(

Thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Change number of posts al home page

Post by garvinhicking »

Serendipity 0.8: Configuration, Numer of frontpage entries

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ABS

Re: Change number of posts al home page

Post by ABS »

I have Serendipity v.0.7.1 :(

Editing any file?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Change number of posts al home page

Post by garvinhicking »

Please search the forums - you'll need to edit your layout.php file and replace 15 with your wanted number. :)

Regards,
garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ABS

Re: Change number of posts al home page

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Change number of posts al home page

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ABS

Re: Change number of posts al home page

Post by ABS »

It works good now :)

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

Thanks for your time!
Xanthouos
Regular
Posts: 115
Joined: Wed Mar 02, 2005 6:59 pm
Contact:

along those lines

Post 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!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: along those lines

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Xanthouos
Regular
Posts: 115
Joined: Wed Mar 02, 2005 6:59 pm
Contact:

Thank you

Post by Xanthouos »

I appreciate your readiness to heelp us in need. :wink:

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