Page 1 of 1
Only title and Posted by line?
Posted: Fri Jun 15, 2007 9:05 am
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
Re: Only title and Posted by line?
Posted: Fri Jun 15, 2007 10:24 am
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
Posted: Fri Jun 15, 2007 12:34 pm
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?
Posted: Fri Jun 15, 2007 2:09 pm
by PurpleCow
Is it atleast quite safe to download and use the nightly build - s9y_200706142342.tar.gz ?
Thanks
Posted: Fri Jun 15, 2007 2:23 pm
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
Posted: Fri Jun 15, 2007 3:00 pm
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
Posted: Fri Jun 15, 2007 3:26 pm
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