Only title and Posted by line?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
PurpleCow
Regular
Posts: 64
Joined: Sun Jan 30, 2005 11:25 am
Contact:

Only title and Posted by line?

Post by PurpleCow »

Hi,

On the home page, subsequent pages and archive pages I just want to show the Title and the Posted By line for each entry.

When the user clicks on the title it should take the user to individual entry page which has the complete entry and other options or mods installed.

How can I do this?

Thanks for any help.

BTW... I am using s9y v0.8x
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Only title and Posted by line?

Post by garvinhicking »

Hi!

First you upgrade to Serendipity 1.1.2 or 1.2-beta. Then you edit the 'entries.tpl' file of the template you are using, and there you can strip/change any text about postings you have.

Best 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/
PurpleCow
Regular
Posts: 64
Joined: Sun Jan 30, 2005 11:25 am
Contact:

Post by PurpleCow »

Can i directly upgrade from 0.8x to 1.2 beta without going though any intermediate updates without causing any damage to my site?
PurpleCow
Regular
Posts: 64
Joined: Sun Jan 30, 2005 11:25 am
Contact:

Post by PurpleCow »

Is it atleast quite safe to download and use the nightly build - s9y_200706142342.tar.gz ?

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

Post by garvinhicking »

Hi!

0.8 is really very old already. But you SHOULD be able to update without a problem, at least it's meant to.

Making a backup first (of files AND SQL database!) is advised, though. Check the s9y.org FAQ on how to perform the upgrade.

The current nightly is advisable and safe, yes.

Best 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/
PurpleCow
Regular
Posts: 64
Joined: Sun Jan 30, 2005 11:25 am
Contact:

Post by PurpleCow »

Gravin...

I believe entries.tpl is a template for individual story page and not for the categories/home page and subsquent pages/search results pages/archive pages. Am i cirrect?

If i edit the entires.tpl it will modify the display for individual story pages and also other mentioned pages i mentioned above. I dont want to modify the individual story pages but i want to modify the other pages display.

Example:

My site is: www.auctionwire.info

On the home page... I want only the Title and Posted By Line below... but all the other content for each story should be available when i click on teh title from Home page.

How can I do that?

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

Post by garvinhicking »

Hi!
I believe entries.tpl is a template for individual story page and not for the categories/home page and subsquent pages/search results pages/archive pages. Am i cirrect?
No, that's not correct. Entries.tpl is used whenever you view an entry. No matter if you view it in a category, on a single entry page or an archive overview, always the information of that file is evaluated.

You can use Smarty IF-Syntax to check if you'Re in category view, or in archives view, and distinct information based on those variable. The full variable documentation can be found in the technical documentation on www.s9y.org.

In your case, you can use {if $is_single_entry} to indicate what should be printed within single-entry mode and what in the other case(s).

Best 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/
Post Reply