Page 1 of 1

Can I change number of posts

Posted: Wed Nov 03, 2004 3:06 pm
by Bogomil_shopov
Can I change number of posts shown to homepage. For exapmple I want to view only 1 post on index page.

Re: Can I change number of posts

Posted: Wed Nov 03, 2004 3:08 pm
by garvinhicking
Sure. Edit your templates/.../layout.php and search for the function serendipity_printEntries(). The number '15' is an argument there, change it to whatever you like to display 10 instead of 15 entries.

For our next version (0.8), we will add a configuration directive for this.

Regards,
Garvin.

re

Posted: Wed Nov 03, 2004 3:12 pm
by Bogomil_shopov
Thank you.

Bogomil

re

Posted: Wed Nov 03, 2004 3:18 pm
by Bogomil_shopov
Waht about if I haven't layout.php in my template folder

Re: re

Posted: Wed Nov 03, 2004 3:30 pm
by garvinhicking
Then you just take the templates/default/layout.php :-)

re

Posted: Wed Nov 03, 2004 3:33 pm
by Bogomil_shopov
Thanks. Is there any possibility to use 2 languages instead of onlu one?

Re: re

Posted: Wed Nov 03, 2004 3:41 pm
by garvinhicking
What do you mean with that? Do you want to have everything displayed in 2 languages? That would seriously affect your layout and look bad.

You can offer a language switcher, if you take the code from the template switcher/Chooser and let user decide which language they want to see. But that only affects strings from Serendipity, the articles you write will only be shown in the language you've written it, of course. :)

Regards,
Garvin.

re

Posted: Wed Nov 03, 2004 3:59 pm
by Bogomil_shopov
Thanks. Yes I am talking about language switcher for serendipity kyes. Thans again

Bogomil