Page 1 of 1

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

Posted: Tue Nov 13, 2007 3:14 am
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

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

Posted: Tue Nov 13, 2007 4:20 am
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.?

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

Posted: Tue Nov 13, 2007 8:52 am
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

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

Posted: Tue Nov 13, 2007 3:11 pm
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

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

Posted: Tue Nov 13, 2007 4:27 pm
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

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

Posted: Tue Nov 13, 2007 4:48 pm
by sugna
Thank you brother! perfecto!

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

Posted: Tue Nov 13, 2007 5:05 pm
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

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

Posted: Tue Nov 13, 2007 6:07 pm
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

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

Posted: Wed Nov 14, 2007 4:24 am
by Dr.CSS
The code for calling page alias in menu template is {$node->alias}...

In template {$page_alias}...