Page 1 of 1

Menüposition des eigenen Moduls im Adminpanel

Posted: Tue Apr 17, 2007 6:26 pm
by a.rchimedes
Hallo,
ich hab mir ein schönes eigenes Modul auf Basis des Skelletons gebastelt und möchte Dieses nun als Menüpunkt im Bereich "Content"/"Inhalt" des Adminpanels haben, anstatt im Bereich "Erweiterungen".
Welchen Codeschnipsel muss ich da in die Installfunktion des Moduls werfen, damit das klappt?

Danke im Vorraus.
Archi

Re: Menüposition des eigenen Moduls im Adminpanel

Posted: Wed Apr 18, 2007 5:03 am
by cyberman
Hi Archi,
a.rchimedes wrote: Welchen Codeschnipsel muss ich da in die Installfunktion des Moduls werfen, damit das klappt?
Steht eigentlich alles in der skeleton.module.php drin ;)
/*---------------------------------------------------------
  GetAdminSection()
  If your module has an Admin Panel, you can specify
  which Admin Section (or top-level Admin Menu) it shows
  up in. This method returns a string to specify that
  section. Valid return values are:

  main        - the Main menu tab.
  content    - the Content menu
  layout      - the Layout menu
  usersgroups - the Users and Groups menu
  extensions  - the Extensions menu (this is the default)
  siteadmin  - the Site Admin menu
  viewsite    - the View Site menu tab
  logout      - the Logout menu tab
 
  Note that if you place your module in the main,
  viewsite, or logout sections, it will show up in the
  menus, but will not be visible in any top-level
  section pages.
  ---------------------------------------------------------*/
function GetAdminSection()
{
return 'extensions';
}

Re: Menüposition des eigenen Moduls im Adminpanel

Posted: Wed Apr 18, 2007 6:14 am
by a.rchimedes
Großes Dankeschön, manchmal sieht man eben den Wald vor lauter Bäumen nicht.
Greets
Archi