Forums | Mahara Community
Support
/
How to hide Import from Portfolio menu?
08 August 2014, 1:05
Hi, I hope you all had a great time in Brighton.
We've just upgraded to 1.9.2 and I have hidden File and Leap under Plugin type: import but import is still showing on the Portfolio menu. We just get a message saying:
The site administrator did not enable the import plugin. Therefore, you cannot use it.
Marion
31 August 2014, 15:59
Hello Marion,
Normally, plugins that you enable or disable don't affect the menu navigation. Hence why it still displays the entry. I don't know if that could be changed easily. Please feel free to file a wishlist item on our tracker or see if a developer replies here.
In the meantime, you could make a change in your code and comment out the menu item. It is in htdocs/lib/web.php. Search for "myportfolio/import" and comment out the following lines by placing "//" (without the quotation marks) at the beginning of each line or use your preferred method of commenting out code.
'myportfolio/import' => array(
'path' => 'myportfolio/import',
'url' => 'import/index.php',
'title' => get_string('Import', 'import'),
'weight' => 80,
),
Cheers
Kristina
12 February 2015, 14:04
Funny that it works for the "export" plugins but not for the "import plugins".
I've just filed a bug about this: https://bugs.launchpad.net/mahara/+bug/1421022
Cheers,
Aaron