How to adjust number of entries at Homepage?

Having trouble installing serendipity?
Post Reply
abdallah
Regular
Posts: 16
Joined: Mon Jan 03, 2005 3:05 pm
Contact:

How to adjust number of entries at Homepage?

Post by abdallah »

Hallo!
I am very happy with my new s9y, but i have a little problem:

I would like to limit the shown entries at the mainpage.
My s9y is mainly used as photoblog with big photos, so i would like to limit the entries to 4 or 5.....

I found no possibility to adjust this on my adminpage.

PLEASE HELP!

http://www.licht-klick.de
Ad your blog at blog-sucher.de
tomsommer
Core Developer
Posts: 240
Joined: Tue Sep 02, 2003 6:43 pm
Location: Denmark
Contact:

Post by tomsommer »

in 0.8 this can be done in the configuration, in 0.7 you have to edit layout.php and look for the number 15. I think there is another thread on this, so try and search the forum.
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
abdallah
Regular
Posts: 16
Joined: Mon Jan 03, 2005 3:05 pm
Contact:

It didnt work...

Post by abdallah »

tomsommer wrote:in 0.8 this can be done in the configuration, in 0.7 you have to edit layout.php and look for the number 15. I think there is another thread on this, so try and search the forum.
I am sorry, but it didnt work.
I am using Serendipity v.0.7.1 and i found serendipity_layout.inc.php and serendipity_layout_table.inc.php.
On both i changed the 15 to 5, but it didnt work.....
Then i also changed the following part: (line 45 from serendipity_layout_table.inc.php) serendipity_printEntries(serendipity_fetchEntries($serendipity["GET"]["range"], true, 5));
Even this change brought nu results....
:cry:
Ad your blog at blog-sucher.de
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: It didnt work...

Post by garvinhicking »

No, Tom talked about "layout.php". That file is inside your templates/ directory, in the directory of the template you're using. There you need to change the 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/
abdallah
Regular
Posts: 16
Joined: Mon Jan 03, 2005 3:05 pm
Contact:

Re: It didnt work...

Post by abdallah »

garvinhicking wrote:No, Tom talked about "layout.php". That file is inside your templates/ directory, in the directory of the template you're using. There you need to change the number...

Regards,
Garvin
Hallo, and thank you for your quick answer!
But: In the Themefolder, i am using (idea), there is no layout.php!
:cry:
Ad your blog at blog-sucher.de
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: It didnt work...

Post by garvinhicking »

No problem, then s9y uses the default 'layout.php' which is in templates/default/layout.php :-)

(It's all easier in 0.8, we told you ;-))

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/
abdallah
Regular
Posts: 16
Joined: Mon Jan 03, 2005 3:05 pm
Contact:

Thank you!

Post by abdallah »

I tried to make the change in the tempates/default - folder, and it works!
:D
Ad your blog at blog-sucher.de
Post Reply