Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Site Default menu Item with no effect

Re: Site Default menu Item with no effect

Stephen,

It's metatemplate 1.7
I'm using the regular Joomla SEF.
Even if I turn off SEF it still doesn't work.

What is strange is if I put this code in the template:

Code:


<!--
<?php
$menu = &JSite::getMenu();
print_r($menu->getDefault());
?>

-->     

It prints out that according to getMenu the default HAS changed to what it's supposed to. It shows this:

Code:


<!--
stdClass Object
(
    [id] => 61
    [menutype] => mainmenu
    [name] => FAQ
    [alias] => faq
    [link] => index.php?option=com_content&view=article&id=41
    [type] => component
    [published] => 1
    [parent] => 0
    [componentid] => 20
    [sublevel] => 0
    [ordering] => 23
    [checked_out] => 0
    [checked_out_time] => 0000-00-00 00:00:00
    [pollid] => 0
    [browserNav] => 0
    [access] => 0
    [utaccess] => 0
    [params] => show_noauth=
show_title=
link_titles=
show_intro=
show_section=
link_section=
show_category=
link_category=
show_author=
show_create_date=
show_modify_date=
show_item_navigation=
show_readmore=
show_vote=
show_icons=
show_pdf_icon=
show_print_icon=
show_email_icon=
show_hits=
feed_summary=
page_title=
show_page_title=1
pageclass_sfx=
menu_image=-1
secure=0


    [lft] => 0
    [rgt] => 0
    [home] => 0
    [component] => com_content
    [tree] => Array
        (
            [0] => 61
        )

    [route] => faq
    [query] => Array
        (
            [option] => com_content
            [view] => article
            [id] => 41
        )

)

-->   


You can see I set it to show the FAQ page but it does not do that, it shows the default content from the menu.

I don't have anything special going on here. I do a standard

Code:

<jdoc:include type="component" />

in the template.

Also my default menu item is (Itemid 138): index.php?option=com_content&view=article&id=1

You can see that according to the code and reporting, the default is changing from 138 to 61 but it simply does not show on the site.

Joomla version is 1.5.18.

This is incredibly frustrating. Trying to trace it through all the code but getting nowhere.

jclamp
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Site Default menu Item with no effect

Hi jclamp,

wow, looks like you're working hard on the debugging, and doing all the right things.

Just a couple of things:

1 - there's a new version of MetaTemplate (and Pro) out, v1.8. It doesn't contain any changes to the "default menu item" system, but does have some other changes so it would be good to upgrade.

2 - The "default menu item" system is complex, as you have found out. I spent a lot of time getting it to work, so it bugs me that it's still not perfect. Would you be ok with giving me an admin login to take a look at it on your site? I feel like it must be just some very small setup thing, perhaps plugin ordering or something, and that's easier to spot if can log in and look at it. If you're happy for that, then can you please send me login details via the Contact form or via PM?

Sorry for the inconvenience sad

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3320 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1674
Total Polls:
6
Total Posts:
5919
Dormant:
User Info:
 
Total Users:
11798
Newest User:
thomas4936
Members Online:
1
Guests Online:
140

Online: 
thomas4936

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked