Erweiterungstypen (allgemeine Definition)

From Joomla! Documentation

Revision as of 11:28, 13 April 2019 by Widmann (talk | contribs)

Joomla! ist schon nach der Installation ein Content Management System (CMS) mit vielen Funktionen. Beim Entwickeln einer eigenen Website kann es jedoch vorkommen, dass benötigte Funktionen nicht mit der grundlegenden Installation zur Verfügung stehen. Für diesen Fall bietet Joomla! sehr einfach Möglichkeit, weitere Funktionen hinzu zufügen.

Grundsätzlich sind fünf Typen von Erweiterungen möglich: Komponenten, Module, Plugins, Templates und Sprachen. Jeder dieser Erweiterungstypen ist für bestimmte Funktionen zuständig (einige der Standard Funktionen von Joomla! sind ebenfalls über Erweiterungen umgesetzt).

Komponenten

Komponenten sind die größten und komplexesten Erweiterungen; man kann sie als Minianwendungen betrachten. Die meisten Komponenten bestehen aus zwei Teilen: dem Site-Teil (Frontend) und dem Administrator-Teil (Backend). Jedesmal, wenn eine Joomla! Seite angefordert wird, wird einer dieser Teile angewiesen, die Seite darzustellen. Beispielsweise ist Content (com_Content) eine Komponente die für die Darstellung des Inhalts sorgt; Benutzer können diesen Inhalt auf dem Frontend einer Website sehen und als Administrator kann man den Inhalt dieser Website editieren. Komponenten sind der Hauptteil einer Website, weil eine Komponente durch einen Menüeintrag gesteuert wird und jeder Menüeintrag eine Komponente aufruft.

  • Examples: Content (com_content), Banners (com_banners), Contacts (com_contact), News Feeds (com_newsfeeds) and Web Links (com_weblinks)
  • Management feature: Admin head menu  Components  Contacts (for com_contact)

Modules

Modules are more lightweight and flexible extensions used for page rendering. These modules are mostly known as the “boxes” that are arranged around a component, for example: the login module. The Footer is a module. Modules are assigned per menu item. So, you can decide to show or hide the login module depending on which menu item the user is viewing. Sometimes modules are linked to components such as the “Latest News” module which links to the com_content and displays links to the newest content items. However, modules do not need to be linked to components, as a matter of fact they don't even need to be linked to anything and can be just static HTML or text.

  • Examples: Banners (mod_banners), Menus (mod_menu), Who's Online (mod_whosonline)
  • Management feature: Admin head menu  Extensions  Modules

Plugins

Plugins are more advanced extensions and are in essence event handlers. In the execution of any part of Joomla, be it the core, a module or a component, an event can be triggered. When an event is triggered, plugins that are registered with the application to handle that event execute. For example, a plugin could be used to intercept user-submitted articles and filter out bad words.

  • Examples: Content - Load Modules, Editor - TinyMCE
  • Management feature: Admin head menu  Extensions  Plugins

Templates

A template is basically the design of your Joomla! powered website. With a template you can change the look and feel of your website. Templates have certain fields in which the component (just one) and modules (as many as you like) will be shown. Templates are easy to build or customize and they provide maximum flexibility in how you style your site.

  • Management feature: Admin head menu  Extensions  Templates

Languages

Probably the most basic extensions are languages. Languages can be packaged in two ways: either as a core package or as an extension package. In essence, both the core and the extension language package files consist of key/value pairs, which provide the translation of static text strings, assigned within the Joomla! source code. These language packs will affect both the front and administrator side of your Joomla site. Note: these language packs also include an XML meta file which describes the language.

  • Management feature: Admin head menu  Extensions  Language(s)

Extension Installation

There are 4 methods of installing an extension. You can install from the web, upload an extension, install from a folder or install from a URL.

Administrator Installation