[SOLVED]returnid incorrect for summary template on home page - Any thoughts

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
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm

[SOLVED]returnid incorrect for summary template on home page - Any thoughts

Post by sugna »

I'm having 2 issues.

1. When using the news mod 2.6. and setting the mod on the home page {cms_module module="news"} or {news} to link to the interior "News" main page the "returnid" is setting at"15" but the correct returnid is 63. Same thing is happing for al other module created links. See ad and jobs

Please view
http://site.pbats.com/index.php

2. Is there a way to use the CMS page created navigation with styling like so.



Major League Athletic Trainers
Education Portal
Job Center
News Center
Shop
Blogs
Forums



Thanks all, Shane
Last edited by sugna on Tue Nov 13, 2007 4:49 pm, edited 1 time in total.
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm

Re: returnid incorrect for summary template on home page - Any thoughts

Post by sugna »

Now something is happening.

Now when I click on the link the index content boxes follow the post as if I'm using ajax or something to view the post on the index.?
alby

Re: returnid incorrect for summary template on home page - Any thoughts

Post by alby »

sugna wrote: Now something is happening.

Now when I click on the link the index content boxes follow the post as if I'm using ajax or something to view the post on the index.?
If you don't use detailpage param, news item is diplay in content of same page (in this case index)
I see that an other module (Jobs) have a returnid of 15
Check ID of your DEFAULT page (in listcontent page have a green check), this page have ID 15

Alby
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm

Re: returnid incorrect for summary template on home page - Any thoughts

Post by sugna »

Thanks Alby,

I'm still having the issue. Here is what's in my template to pull the summary to the home page.


News
{cms_module module='news'}



Anythoughts.

Shane
alby

Re: returnid incorrect for summary template on home page - Any thoughts

Post by alby »

sugna wrote: I'm still having the issue. Here is what's in my template to pull the summary to the home page.


News
{cms_module module='news'}

I don't understand, you want that detail news open in news center page?
Call with: {cms_module module='News' detailpage='news-center'}

For second question:
sugna wrote: 2. Is there a way to use the CMS page created navigation with styling like so.


Major League Athletic Trainers
Education Portal
Job Center
News Center
Shop
Blogs
Forums

Yes, in template of MenuManager in tag insert:
class="$page_alias"

For CSS style check alias name in every page: Option > Alias name (p.e. News Center is news-center: look in url for index.php?page=). For your site I see:


Major League Athletic Trainers
Education Portal
Job Center
News Center
Shop
Blogs
Forums


Alby
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm

[Solved]Re: returnid incorrect for summary template on home page - Any thoughts

Post by sugna »

Thank you brother! perfecto!
User avatar
sugna
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 10, 2007 3:04 pm

Re: [SOLVED]returnid incorrect for summary template on home page - Any thoughts

Post by sugna »

Sorry Alby.

For the navigation question #2

Should I look for the edit in the template files for example simple_navigation.tpl and edit

Current page is {$node->hierarchy}: {$node->menutext}

to say this
Current page is {$node->hierarchy}: {$node->menutext}

or is this in another file like MenuManager.module.php

Shane
alby

Re: [SOLVED]returnid incorrect for summary template on home page - Any thoughts

Post by alby »

sugna wrote: Sorry Alby.

For the navigation question #2

Should I look for the edit in the template files for example simple_navigation.tpl and edit

Current page is {$node->hierarchy}: {$node->menutext}

to say this
Current page is {$node->hierarchy}: {$node->menutext}

or is this in another file like MenuManager.module.php
In your template (check sintax I don't have a simple template here), insert red code:

url}" class="$page_alias" {if $node->....}

Alby
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [SOLVED]returnid incorrect for summary template on home page - Any thoughts

Post by Dr.CSS »

The code for calling page alias in menu template is {$node->alias}...

In template {$page_alias}...
Post Reply

Return to “CMSMS Core”