• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: News module configurations?
PostPosted: Thu Aug 11, 2005 8:29 am 
Hi there,

I am building a site that needs to have the news headlines on everypage. And if people are clicking on any news I want to list all of news written..I know I did this with the old news module but how do I do it now?

First I thought - easy just have {foreach from=$items item=entry} the rest of the detail template {/foreach} but this does not work...

Any suggestions please?

Thanks! / Gnolen


Top
  
 
 Post subject: Re: News module configurations?
PostPosted: Mon Aug 15, 2005 8:18 pm 
Nobody know how to have all of the news on one page?

There MUST be a way..worked with the old one!

Thanks / Gnolen


Top
  
 
 Post subject: Re: News module configurations?
PostPosted: Wed Aug 17, 2005 8:55 am 
Couldn't you just make an empty page with the simple news module tag {cms_module module="News"}?
Or choose "News" as content type when making a page?


Top
  
 
 Post subject: Re: News module configurations?
PostPosted: Mon Aug 22, 2005 3:21 pm 
Alex,

But still all of the news will not be displayed.

Wishy - is this not possible? To have news headers somewhere and then display all of the news(full article) on a page? Sounds pretty normal to me..? Or?

Greetings / Gnolen


Top
  
 
 Post subject: Re: News module configurations?
PostPosted: Mon Aug 22, 2005 3:47 pm 
Offline
Administrator
Administrator
User avatar

Joined: Fri Jun 11, 2004 6:58 pm
Posts: 3334
Location: Fairless Hills, Pa USA
You could do it with 2 different templates.  Use the original summary template for displaying just the headers.  And then make a new template (in modules/News/templates) called blahtemplate.tpl and put summarytemplate="blahtemplate" in the cms_module tag.

Does that make ANY sense?  I'm kind of preoccupied today.

_________________
http://about.me/tedkulp


Top
 Profile  
 
 Post subject: Re: News module configurations?  [SOLVED]
PostPosted: Mon Aug 22, 2005 4:10 pm 
Thanks Wishy and sorry for taking on your time.

This make sense and I been thinking about this to but I do not know how to get the original summary templete(the headers) to point to template I made..?

Thanks / Gnolen


Top
  
 
 Post subject: Re: News module configurations?
PostPosted: Wed Aug 24, 2005 9:23 am 
Please, doesn't anyone know how to do this??? It is the only thing left on the site I am making... :(


Top
  
 
 Post subject: Re: News module configurations?
PostPosted: Wed Aug 24, 2005 10:19 am 
Offline
Administrator
Administrator
User avatar

Joined: Fri Jun 11, 2004 6:58 pm
Posts: 3334
Location: Fairless Hills, Pa USA
{cms_module module='news' summarytemplate='mynewtemplate'}, where mynewtemplate.tpl is in modules/News/templates

_________________
http://about.me/tedkulp


Top
 Profile  
 
 Post subject: Re: News module configurations?
PostPosted: Wed Aug 24, 2005 10:51 am 
Thanks Wishy,

That is not the problem. To make a template. Because if I have headlines and click on them I get directed to the detail page and there I want to list all of the news. Like you have on cmsmadesimple.org with the archive but the archive should also be showed when I click on the title on the indexpage.

Isn't that just a normal news layout?


Top
  
 
 Post subject: Re: News module configurations?
PostPosted: Mon Aug 29, 2005 1:18 pm 
Offline
Power Poster
Power Poster

Joined: Sun Nov 21, 2004 6:35 am
Posts: 1469
Location: Geneva - Switzerland
Hello Gnolen,

No, in my opinion, it's not a normal News layout. Normal layout is logical like it is now, and displays the detail only for the given article. If I understand you well, if you have hundreds of articles, you want them all, with detail, displayed on one single page??

Anyway, for the usage you want, you will have to modify the php code in the news module I guess.
I think this is the line:
$onerow->titlelink = $this->CreateLink($id, 'detail', $returnid, $row['news_title'], $sendtodetail,'',false,false,'',true);

you will have to change the link in order to send it to a page you made which call all news with their detail (your own template). And then, you will not be able to call 1 news detail as it works now.

Not sure if I'm correct or even if this is the line... wishy?
Cheers

EDIT: I'm stupid, no need to edit this line in the module, but simply in the summary template. instead of {$entry->titlelink}, put your link to your full article page...

_________________
Patricia


Last edited by Patricia on Mon Aug 29, 2005 1:36 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: News module configurations?
PostPosted: Sun Sep 11, 2005 11:16 am 
Thanks Patricia! Sorry for the late replay but the forumnotifications are not working sometimes for me.

But how about having the news titles in the startingpage and then when I click I will come to the the detailpage(which have a different CMS template) I tried to create a news-page but this doesn't help me getting there...

Anyone know what to do?

Thanks / gnolen


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner