Page 1 of 1

How to adjust number of entries at Homepage?

Posted: Mon Jan 03, 2005 3:13 pm
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

Posted: Mon Jan 03, 2005 4:36 pm
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.

It didnt work...

Posted: Tue Jan 04, 2005 11:11 am
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:

Re: It didnt work...

Posted: Tue Jan 04, 2005 11:54 am
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

Re: It didnt work...

Posted: Tue Jan 04, 2005 12:02 pm
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:

Re: It didnt work...

Posted: Tue Jan 04, 2005 12:08 pm
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

Thank you!

Posted: Tue Jan 04, 2005 12:12 pm
by abdallah
I tried to make the change in the tempates/default - folder, and it works!
:D