Loading


Advertisement:

Author Topic: How to add submenus and menus in OSClass 3.0  (Read 10843 times)

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2384
How to add submenus and menus in OSClass 3.0
« on: July 13, 2012, 08:37:26 pm »
Now it's easier to add menus and submenus. There's a page explaining this in the documentation: http://doc.osclass.org/Administrator_Menus

Plugin example:

http://dev.osclass.org/2012/07/17/admin-menu-example/
« Last Edit: July 17, 2012, 06:24:25 pm by garciademarina »

tekno

  • Newbie
  • *
  • Posts: 14
Re: How to add submenus and menus in OSClass 3.0
« Reply #1 on: September 27, 2012, 10:29:36 am »
Thank you.

tomshaft

  • Guest
Re: How to add submenus and menus in OSClass 3.0
« Reply #2 on: January 04, 2013, 05:39:56 pm »
Hello,
Hope your day is going great.
Quick question about the link you posted: http://dev.osclass.org/2012/07/17/admin-menu-example/
It shows a "Download" button and suggests this is a plugin but when I click that button, a page opens saying "Not Found"?

I see at the other link it may be able to be done manualy but I'm lazy.... :P

Tom
« Last Edit: January 05, 2013, 12:27:08 am by tomshaft »

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3644
  • osCanyon, the class of Osclass
Re: How to add submenus and menus in OSClass 3.0
« Reply #3 on: January 05, 2013, 08:04:02 am »
Hi Tom,

I happen to have the zip that was available for download. I will attach it.

Jay

tomshaft

  • Guest
Re: How to add submenus and menus in OSClass 3.0
« Reply #4 on: January 05, 2013, 04:55:25 pm »
Jay,
You are everywhere, all the time and seem to have all the answers and I for one am so very glad for it.

Thank you
Tom

Now back to learning so I can get half as smart as you.....
« Last Edit: January 05, 2013, 05:18:52 pm by tomshaft »

tomshaft

  • Guest
Re: How to add submenus and menus in OSClass 3.0
« Reply #5 on: January 19, 2013, 03:40:50 pm »
Hope someone is still following this thread.
I finally got around to trying this. Works great and thank you for the posting. I've made a couple minor changes to please me.
See attached
Tom
 

Gadnus

  • Newbie
  • *
  • Posts: 7
Re: How to add submenus and menus in OSClass 3.0
« Reply #6 on: April 21, 2013, 09:44:11 pm »
please, how do i configure the facebook connect plugin?

juanjo

  • Newbie
  • *
  • Posts: 32
  • Web developer
Re: How to add submenus and menus in OSClass 3.0
« Reply #7 on: August 08, 2013, 09:22:09 pm »
What about v.3.2?

And in function “osc_add_admin_menu_page” there are two variables:
icon_url and position

Any idea of using it?

I don't find any documentation, and all my use attempts have been unsuccessful.

regards

juanjo

  • Newbie
  • *
  • Posts: 32
  • Web developer
Re: How to add submenus and menus in OSClass 3.0
« Reply #8 on: August 08, 2013, 09:45:26 pm »
Hi again, another question.

I'm trying to use the follow code:
Code: [Select]
osc_admin_menu_plugins(
          'my plugin name',
          osc_admin_render_plugin_url(osc_plugin_path(dirname(__FILE__)) . '/admin.php'),
          'my_plugin_name_id',
          'administrator'                                                         
);
(see file: captura-osc_admin_menu_plugins.jpg)

But the submenu doesn't appear, only Plugin Menu Item changes his position to the first position.

and this one:
 
Code: [Select]
osc_add_admin_submenu_page(
          'Plugins',
          'my plugin name',
          osc_admin_render_plugin_url(osc_plugin_path(dirname(__FILE__)) . '/admin.php'),
          'my_plugin_name_id',
          'administrator'
);
(see file: captura-osc_add_admin_submenu_page.jpg)
 
Create a new menu item, without name, and create a Submenu.

this is a bug?

my Osclass versión is 3.2

regards

anakalfa

  • Newbie
  • *
  • Posts: 3
Re: How to add submenus and menus in OSClass 3.0
« Reply #9 on: November 28, 2013, 07:44:54 pm »
evidently easier just follow the instruction to add submenus and menus, thx

jaxaza

  • Newbie
  • *
  • Posts: 1
Re: How to add submenus and menus in OSClass 3.0
« Reply #10 on: April 11, 2014, 08:02:33 am »
thanks for information

bhabeshrai

  • Newbie
  • *
  • Posts: 3
Re: How to add submenus and menus in OSClass 3.0
« Reply #11 on: July 22, 2015, 09:12:36 am »
How do we add position, because when we add menu it appears to be in the first before the dashboard icon. how do we position in the middle