Page 1 of 1

SOLVED: Nothing happens when I click "more" on a news item

Posted: Thu May 03, 2007 2:48 pm
by xGrape
I know I missed some code, I just don't know what.

I've created a new template from scratch, and apart from the design, this is the only cmsms-code I have added:

Code: Select all

{metadata}
in head, and

Code: Select all

{news number='3' detailpage='news'}
News show up fine, but nothing happens when I click "more" to read the full article. Which part have I missed?

Re: Nothing happens when I click "more" on a news item

Posted: Thu May 03, 2007 3:54 pm
by calguy1000
did you creeate a new page with a 'news' alias?

Re: Nothing happens when I click "more" on a news item

Posted: Thu May 03, 2007 4:31 pm
by xGrape
Not quite sure what you mean by alias. I went to the templates section and chose "add new template", then replaced all the code with my own html, and put the code I listed above into the proper locations. Finally making sure to click "set all pages".

You can view it at this URL, if it helps: http://www.tk-teknikk.no/cms/

Re: Nothing happens when I click "more" on a news item

Posted: Thu May 03, 2007 4:46 pm
by calguy1000
the detailpage parameter on the news module tag specifies the page alias of a page to link to when the user clicks on 'more'.

so you need to create a new page, type in something for default content (doesn't have to be much, as it will be replaced anyways). and in the options tab specify 'news' as the page alias. 

Re: Nothing happens when I click "more" on a news item

Posted: Fri May 04, 2007 1:46 pm
by xGrape
I created a copy of my main template, but now I'm stuck. Could you be a bit more specific? I'm quite new to CMSMS.

Re: Nothing happens when I click "more" on a news item

Posted: Fri May 04, 2007 4:01 pm
by calguy1000
Create a new page,
Under (Content >> Pages) click on 'Add New Content'
In that page, type in 'something stupid' in the content text area
click on the options tab, and in the page alias field, type "news"
Click 'Submit'

Assuming you haven't changed your news tag, everything should just work.

Re: Nothing happens when I click "more" on a news item

Posted: Fri May 04, 2007 4:42 pm
by xGrape
Thank you so far. So I have 2 pages now. "Home" and "News", with the aliases "home" and "news" respectively. They both use the same template right now, with the tag

Code: Select all

{news number='3' detailpage='news'}
in it. I still feel like the same page is being loaded when I click "more" however. All entries are still here, and none of them are expanded. I'm guessing maybe I need to use a different template with a different tag for the news page alias?

Re: Nothing happens when I click "more" on a news item

Posted: Sun May 06, 2007 1:39 pm
by xGrape
Solved it myself. Thanks for all the pointers though, I never would've made it all on my own :)

The only thing I had wrong in the end, was I still used the {news} tag on the template for the "more"-page, and I simply swapped it for {content}