Number of Entries Per Page?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
michele
Regular
Posts: 19
Joined: Sat Oct 14, 2006 5:02 am
Location: North Carolina
Contact:

Number of Entries Per Page?

Post by michele »

Hi All,

New here (as if the post count didn't already tell you that :lol: ) and am very glad I found this software. I've been lurking around the forums for a few weeks and have been impressed by how few posts go unanswered - something neither my webhost or the forum for a script I purchased for another site will ever be able to say.

I'm in the final tweaking stages and had a question about the number of entries on a page.

I have my blog set to display one entry per page. Is there any way to keep that setting but use a different one when people search or go to the category listings?

Also, if anyone else is using the matrimony template, I would love to know how to get rid of the 10-15 pixel high line between the header and the beginning of the entry.

Note to David...Would you mind if I left your name as the designer, but got rid of the Matrimony name? My blog is about arts and crafts and it just looks funny.

Thank you for a great script and I look forward to hanging out around here and hopefully helping it to grow.

Regards,

Michele
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

There are couple of ways of making sure your startpage only includes a single entry while all other pages include a greater number, but you are going to have to get your hands dirty with code in your template.

1. Use the static pages plugin, create a new page and make it your startpage. The bring a regular entry into your static page, just follow the instructions in this thread. Then go back to the config screen that sets the number of entries to display and change this back to 15 or whatever you want it to be.

2. Another method (both are correct BTW) is to edit your index.tpl and add an if statement to check if your visitor is trying to access the startpage. If they are, then add an include statement to use a different template file (eg startpage.tpl) to display only a single entry. This approach is too complicated to explain here in a single paragraph, but if you download the hemingway template and study the code in index.tpl you should find what you are looking for.

My recommendation if you are new to Serendipity is option 1, but feel free to play with your template files in the future, you'll find it isn't as hard as it seems.

I can't answer for David regarding the matrimony tag, but he's a great guy who would be thrilled that you want to use his design, so his likely response would be to go ahead and do what you need to do. Feel free to pm him, or make a comment on his themes blog, maybe you could even ask him to modify the template slightly. A couple of silver coins often get a wonderful response. :lol:
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Hi michele

as Carl said, I'm pleased you want to use my matrimony template and quite happy for you to change it in any way you want to suit your own site. If you need any help just get in touch.
I would love to know how to get rid of the 10-15 pixel high line between the header and the beginning of the entry
I'm not too sure what you mean by this but if you make the
.serendipity_title
padding-top: 0px;
margin-top: 0px
in the style.css file it will move the entry up 10px closer to the header. If this isn't what you mean just let me know.

cheers
Dave

ps - my wife said asked if you would post a link to your blog as she has an 'arts & crafts' business herself :-)
michele
Regular
Posts: 19
Joined: Sat Oct 14, 2006 5:02 am
Location: North Carolina
Contact:

Post by michele »

Hi Dave,

A new day, new eyes and I quickly found where the extra space was coming from - the banner div was set higher than my image. Duh!

I would love for you wife to take a peek around. I'm still playing/learning so there's a few comments that are garbage/testing, but the posts aren't.

The title is simple, http://www.BlogAboutCrafts.com

I still don't understand the adding of static pages. I installed the static page plugin and while it creates a page, it is empty and there isn't a link anywhere on the pages for it. I thought I would start with an About Me page before I tackle the posts per page question. For now, that solution continues to elude me; but the day is early yet.

michele
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

The static pages plugin also has a sidebar menu that needs to be installed. In your admin section, go to plugins and add a new sidebar plugin. Scroll down the list until you see the static pages plugin. Now when you view your blog you should see the list of static pages that have been created.

Carl
michele
Regular
Posts: 19
Joined: Sat Oct 14, 2006 5:02 am
Location: North Carolina
Contact:

Post by michele »

Ahh, now I get it I had to install an event plugin and a sidebar plugin. I didn't realize they were two different things. I was looking for 2 different event plugins. :roll:

And, apparently to get the content to show up I have to use an Article type of Article.

Maybe tomorrow I'll get brave and try to figure out how to change the entries per page as per my original question.
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

cool, let us know if you have anymore hiccups.
Post Reply