New Template

Creating and modifying plugins.
Post Reply
codetwists
Regular
Posts: 44
Joined: Sat Dec 20, 2008 5:46 pm

New Template

Post by codetwists »

I would like for my front page to be a list of articles rather than the latest article. Ideally, there'd be a single line for each entry, possibly with the title, author, and date, which would then link to the actual article.

I'm currently using style Idea. I'm guessing there's already another style that does this somewhere. Rather than start from scratch it would make a lot more sense to re-use some code. I'm assuming that the template will pull style from a single CSS. Any ideas or comments about this?

Thanks,

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

Re: New Template

Post by garvinhicking »

Hi!

You can access the s9y configuration and configure the amount of entries that are shown on the frontpage. Usually this defaults to 15 entries., so yuo must already have intentioanlly changed that to 1...

This is a style-independent setting, it works in all templates for s9y.

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/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: New Template

Post by yellowled »

garvinhicking wrote:This is a style-independent setting, it works in all templates for s9y.
Actually, not all of them. Some of the more sophisticated templates like Hemingway and Mimbo skip this by using serendipity_fetchPrintEntries.

YL
codetwists
Regular
Posts: 44
Joined: Sat Dec 20, 2008 5:46 pm

List of Entries

Post by codetwists »

Yes, I saw that, and that's how mine behaves currently. But, it shows the entire article, not just a listing linked to the article. What I'm looking for is a list of articles - one line listings - much like you get in the plug-in for Recent Entries.

What would really be cool is if that list could be sorted by title, author, or date. What would be even more cool would be to have it filterable by title, author, or date as well.

Thanks,

Myron
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: List of Entries

Post by yellowled »

codetwists wrote:What would really be cool is if that list could be sorted by title, author, or date. What would be even more cool would be to have it filterable by title, author, or date as well.
You might want to check out the event plugin "Customizable Entries Archive" (serendipity_event_customarchive) :-)

YL
codetwists
Regular
Posts: 44
Joined: Sat Dec 20, 2008 5:46 pm

Re: List of Entries

Post by codetwists »

yellowled wrote:You might want to check out the event plugin "Customizable Entries Archive" (serendipity_event_customarchive) :-)
I actually had installed that, but it says, "The link to this page should be inserted into a HTML nugget." I wasn't sure exactly where I'd have to include the link and what the link code should be.
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Sorting change the scenario a bit, and you might want to investigate Yellowled's suggestion a bit further.

If you are merely looking for a list of entries, you might want to read this thread: http://board.s9y.org/viewtopic.php?t=14285
=Don=
codetwists
Regular
Posts: 44
Joined: Sat Dec 20, 2008 5:46 pm

Perfect timing!

Post by codetwists »

That was what I call Perfect Timing! I was just reading through the code if the index.tpl, found the $CONTENT, figured out that it was a reference to the Content.tpl and was getting ready to see what was there. That saved me a lot of code study!

Thanks!

Myron
Post Reply