[solved] Core News Module Links not working

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Core News Module Links not working

Post by Dr.CSS »

uh I believe he meant a link to the site so we can see the link that it makes...
mrcoke
Forum Members
Forum Members
Posts: 14
Joined: Mon Aug 18, 2008 7:04 pm

Re: Core News Module Links not working

Post by mrcoke »

I am so sorry.. http://test4.wsc.k12.ar.us/coopcms

I haven't blown it away yet cause I have been working on some other stuff.  I haven't moved over to cmsms yet but planned to next month
alby

Re: Core News Module Links not working

Post by alby »

mrcoke wrote: I am so sorry.. http://test4.wsc.k12.ar.us/coopcms

I haven't blown it away yet cause I have been working on some other stuff.  I haven't moved over to cmsms yet but planned to next month
You use a detailpage that not exist (id=39)
if you change 39:
... mact=News,cntnt01,detail,0&cntnt01articleid=1&cntnt01origid=58&cntnt01returnid=39
with 15 (Home page) or p.e. 58 (Media Center) you see the news ....

Alby
mrcoke
Forum Members
Forum Members
Posts: 14
Joined: Mon Aug 18, 2008 7:04 pm

Re: Core News Module Links not working

Post by mrcoke »

You are absolutely correct.. i changed it in my browser and it worked

thank you

now..

where do I fix that?  and how did i mess that up.  I looked in templates, style sheets and didn't see anything like that..

thank you
alby

Re: Core News Module Links not working

Post by alby »

mrcoke wrote: You are absolutely correct.. i changed it in my browser and it worked

thank you

now..

where do I fix that?  and how did i mess that up.  I looked in templates, style sheets and didn't see anything like that..
What is your news tag?
Drop detailpage param or correct it to existant page ...

Alby
mrcoke
Forum Members
Forum Members
Posts: 14
Joined: Mon Aug 18, 2008 7:04 pm

Re: Core News Module Links not working

Post by mrcoke »

Alby,

I guess i don't know where to look to fix this problem.  I looked in stylesheets, templates modules etc.  I compared a second cmsms box I set up to test what i possibly did wrong and compared templates, stylesheets etc and even copy/pasted code that looked right with code from the working test box.. I am just really lost on how to do what you are asking.  Is that something in the mysql database that I should be fixing?

sorry for my lack of knowledge.  I am coming over from the fontpage on IIS group and I guess it is obvious
alby

Re: Core News Module Links not working

Post by alby »

mrcoke wrote: Alby,

I guess i don't know where to look to fix this problem.  I looked in stylesheets, templates modules etc.  I compared a second ...
You must search for news tag (I suppose in template that it's used in your pages):
{news .... detailpage='alias_relative_to_id_39'}

Alby
mrcoke
Forum Members
Forum Members
Posts: 14
Joined: Mon Aug 18, 2008 7:04 pm

Re: Core News Module Links not working

Post by mrcoke »

this is going to sound stupid.. but after searching and searching the templates to no avail, i was looking at the news module.. and it wasn't set to active... how in the heck did I miss that .. well i guess i was looking for something really bad to be wrong.. how did it get set nonactive.. i have no idea. 

anyway the problem is solved and I do appreciate all the ideas and assistance.. I learned a lot and found that there are some good people on the made simple forums.  Maybe some day I will get experienced enough to return the favor to some other noob.

again thanks Alby and Mark
L84DNR
Forum Members
Forum Members
Posts: 18
Joined: Fri Aug 29, 2008 10:43 pm

Re: [solved] Core News Module Links not working

Post by L84DNR »

Alby,
I am having the same issue but my News module is set to active
When I click on a news item

Code: Select all

index.php?mact=News,cntnt01,detail,0&cntnt01articleid=4&cntnt01origid=64&cntnt01returnid=39
I get 404 page not found

If i change the returnid=51 i'm good

The sample templates of CMS are still in the Pages but not active and not default

Should I delete these?
Should I reinstall the News Module?

As mrcoke I looked in every template css and even in the database and cannot find the reference to returnid.

Any suggestions?


As always,
Thank you!

EDIT... [Solved again i guess]
I found a work around I think (but i don't have a warm fuzzy feeling about it)  When I installed CMS i elected to have the sample pages put in.  After a few weeks of building the site I went in and deactivated them.  When I go the "Default Extentions / Modules / News" page and activate it all is good.  So that page is returnid=39 as stated in the code above.  SO, I removed it from the menu and left it active and all seems well.
I curious... okay scared to delete the sample data now  :-[
Last edited by L84DNR on Fri Sep 19, 2008 2:59 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [solved] Core News Module Links not working

Post by Dr.CSS »

Most likely if you have to reactivate a page to see the News when clicking the more... on the left or ? it's because in the default install the news is a tag in the template like so {news number='3' detailpage='news'} with news being the detail page that was/is in the default install and it has an ID number so it looks for that page but since inactive can't find it, hence the problem...

Just change the detailpage= parameter to a page you want/have or take that call out to get it to show the detail in the page it's on...

Guess you didn't look at all the templates/code to find this...
Post Reply

Return to “Modules/Add-Ons”