[SOLVED] News system question

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

[SOLVED] News system question

Post 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!
Last edited by christiaans on Wed Mar 12, 2008 11:18 am, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: News system question

Post by Nullig »

What is the content of your news page?
Have you included the {news} tag on it?

Nullig
Last edited by Nullig on Mon Mar 10, 2008 7:29 pm, edited 1 time in total.
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

Re: News system question

Post 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.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: News system question

Post 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
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

Re: News system question

Post 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!
Post Reply

Return to “CMSMS Core”