Page 1 of 1

[SOLVED] News system question

Posted: Mon Mar 10, 2008 1:05 pm
by christiaans
Hey guys, after succesfully editing my template to CMSMS, and everything works absolutely fine, there's one thing I'd like to change to my news pages.

For example: On the homepage there are several news items, and the complete stories are placed on a page called 'news'. Everything works fine and all, but the news page, when clicked on from the menu - obviously - is empty (and I DO want to have it in my menu, so people can scroll through the entire news archive, so "hide from menu" is not an option). So I was wondering if there is an "if" command which I could place on the beginning of the news page, which says something like the following:

'if' referring page is an article link from the homepage > show article only
'if' referring page is NOT an article link from the homepage > show newsarchive

I know this must be possible, but I can't seem to figure it out properly! Can someone please help me out? That would be very much appreciated!

Obviously I'm using the latest CMSMS: 1.2.3, with the integrated news system.

Again, any help is very much appreciated!

Re: News system question

Posted: Mon Mar 10, 2008 7:23 pm
by Nullig
What is the content of your news page?
Have you included the {news} tag on it?

Nullig

Re: News system question

Posted: Mon Mar 10, 2008 7:59 pm
by christiaans
Hi nullig,

Yes I do have the {news} tag on my homepage. For example, it looks something like this:
  {content}


  {news number='10' detailpage='news'}
So basically, what I want is that when you click a news item on the homepage, you get the complete article on the 'news' page, and when you visit the 'news' page from the menu, you get the entire news archive, and not the article itself.

Re: News system question

Posted: Mon Mar 10, 2008 11:56 pm
by Nullig
No, I'm talking about the page called "News", that is in your menu. Do you have the {news} tag on it?

Nullig

Re: News system question

Posted: Tue Mar 11, 2008 8:46 am
by christiaans
Oh my god, I feel so incredibly stupid. Suddenly I realise that there is an extremely easy way to achieve this.

For those who are interested, the way I achieved this:
- Create a 'news' page and let it display in the menu
- On the 'news' page use the {content} tags like you would on any other page
- Whilst editing the page, insert the {news} tags, so that it displays the newsarchive when clicked on from the menu

This way, it only displays the {news} when the page is accessed from the menu.

I'm sorry Nullig, for possibly wasting your time, and thanks for the help anyway!