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

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
xGrape

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

Post 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?
Last edited by xGrape on Sun May 06, 2007 1:40 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post by calguy1000 »

did you creeate a new page with a 'news' alias?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
xGrape

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

Post 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/
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post 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. 
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
xGrape

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

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
xGrape

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

Post 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?
xGrape

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

Post 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}
Locked

Return to “Layout and Design (CSS & HTML)”