edwin2win wrote:
[quote]
By default, the slave sites have their own menu, articles, ...., content and therefore it is not connected on your master.
This is for a component submenu NOT a menu item or menulist
The submenu is found in helper.php so IS THE SAME for slave and master
eg
helper.php
Code: |
public static function addSubmenuDefault($vName)
{
JSubMenuHelper::addEntry(
"Setup",
'index.php?option=com_markets&view=saasmarkets',
$vName == 'markets'
);
JSubMenuHelper::addEntry(
"Manage Profiles",
'index.php?option=com_markets&view=profiles&task=listProfiles',
$vName == 'profiles'
);
|
see administrator/components/weblinks/helper/weblinks.php for similar code
so what I want is:
Code: |
public static function addSubmenuDefault($vName)
{
if(!$slave_site){
JSubMenuHelper::addEntry(
"Setup",
'index.php?option=com_markets&view=saasmarkets',
$vName == 'markets'
);
}
else{
JSubMenuHelper::addEntry(
"Manage Profiles",
'index.php?option=com_markets&view=profiles&task=listProfiles',
$vName == 'profiles'
);
}
|
What do you think?