Welcome, Guest. Please login or register.
January 07, 2009, 12:25:04 AM

Login with username, password and session length
Search:     Advanced search
Website Baker 2.7.0 (stable) veröffentlicht!
Nähere Informationen findet ihr hier.
Das Diskussionsboard findet ihr hier.
71177 Posts in 11254 Topics by 6876 Members
Latest Member: dicker
* Home Help Search Login Register
+  Website Baker Community Forum
|-+  English
| |-+  Archive (Moderators: Argos, ruebenwurzel, BerndJM)
| | |-+  Help with news settings
Pages: [1] Go Down Print
Author Topic: Help with news settings  (Read 651 times)
eddyfever
Pending Apprentice Baker
**
Offline Offline

Posts: 47



« on: July 24, 2006, 04:08:17 PM »

Hello you all

i have 2 questions about the settings for the news module,

- i would like to have a different template for the long story (so after pressing read more), is that possible?
- Also i would like to have just 3 headlines on my mainpage and not as minium 5, can i change this somewhere?

thank you already for your help.
Logged

eddyfever
Pending Apprentice Baker
**
Offline Offline

Posts: 47



« Reply #1 on: July 25, 2006, 01:39:17 PM »

ok the headlines is solved, but now i still want my read more (Long story) in another template.
Anybody any idea???
Logged

rsmith
Senior Baker
*****
Offline Offline

Posts: 193


« Reply #2 on: July 25, 2006, 04:25:27 PM »

Hi
Sorry to say I cant think of a quick solution...

I can take a look tonight, but I dont think it will be a "quick" fix..

There was a post (ill see if i can find it), about switching templates via the url, this may be able to do what you want with a little tweak to the program....  but other than that.. im not sure of how "easy" it would be...


I'll Let you know if i find anything

Rob
Logged
pcwacht
Guest
« Reply #3 on: July 25, 2006, 05:59:52 PM »

You need to know how news works

When calling the news page the view.php script is executed and gives you the headlines.
When clicking on the read  more link the same view.php is executed, giving the details.

So basicly there is no easy way to make one script having 2 templates!

But we can do a lot with wb.... Wink

In order to make it look like 2 different templates you can easely do this:

make the news page with the template you need, the template you want when clicked read more... link
make another page, in it a code section and choose the template you need for the header list. Give it a code section and paste the code (http://forum.websitebaker.org/index.php/topic,409.0.html) to show the headers.


This way the listing of x newsitems are done in one template with a bit of code and the actual newsitem is displayed using the template for the newspage.

Easy does it Wink


Happy baking,
John
Logged
Pages: [1] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!