When is parameter file 'default.xml' loaded? - Joomla! Forum - community, help and support


hello all,

this first post here , want let community know found lot of useful information. thank that.

now question:
i programming component called jpodium. can see on website jpodium.de
under 'showcase' have 2 different views result tables. works fine.
in top left corner there link named 'group by...' links other view. works fine.

but, when new view loaded not read view-specific file 'default.xml'. read when called directly menu.

please following:
- call showcase->results per race on jpodium.de
- use 'group athletes' link
- notice 'armstrong, lance' link (that links nowhere, doesn't matter here)
- notice there no little icon on left 'armstrong, lance'
- notice pageheader still says 'results per race'
- call showcase->results per athlete via menu
- notice little icon appears
- notice correct pageheader 'results per athlete'

what tell me?
i call view don't tell joomla in correct way called view.
this demonstrated wrong page title while switching 'group by...' link.
and therefore 'default.xml' not loaded.

my question:
how call view correctly make sure framework knows want?

thank in advance help.

regards

detlef

detlefvolmer wrote:hello all,

this first post here , want let community know found lot of useful information. thank that.

now question:
i programming component called jpodium. can see on website jpodium.de
under 'showcase' have 2 different views result tables. works fine.
in top left corner there link named 'group by...' links other view. works fine.

but, when new view loaded not read view-specific file 'default.xml'. read when called directly menu.

please following:
- call showcase->results per race on jpodium.de
- use 'group athletes' link
- notice 'armstrong, lance' link (that links nowhere, doesn't matter here)
- notice there no little icon on left 'armstrong, lance'
- notice pageheader still says 'results per race'
- call showcase->results per athlete via menu
- notice little icon appears
- notice correct pageheader 'results per athlete'

what tell me?
i call view don't tell joomla in correct way called view.
this demonstrated wrong page title while switching 'group by...' link.
and therefore 'default.xml' not loaded.

my question:
how call view correctly make sure framework knows want?

thank in advance help.

regards

detlef


i don't know answer want( view specific xml loading ), may work you:

1 - find id of menu item points view

code: select all

$menu =& jsite::getmenu();
$items = $menu->getitems( 'link', 'index.php?option=com_yourcomponentname&view=yourviewname');

if( isset($items[0]) ){
   $itemid = 'itemid='. $items[0]->id;
}


2 - when generating links, add $itemid end

code: select all

<a href="<?php echo jroute::_( 'yourlinkhref'. $itemid ); ?>">your link text here</a>


this way joomla know you're calling data linked menu item , same result clicking on menu item link itself.

hope helps...





Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support