Dies ist eine alte Version des Dokuments!
Joomla - Query parameter
Joomla uses query parameters in the dispatcher and controller logic to decide what part of the application should be executed. Fot that it parses the URL and extract the GET and POST variables into the JInput object of the application. The parameters can be read out and used everywhere inside the application to make the decisions.
This is how a URL with the http network protocol looks like:
The section in the URL marked as „query“ is the section where the query parameters or GET variables are placed. Every parameter consists of a key=value pair and is separated by a and-sign (&). It is also possible to pass query parameters within the data section of the http header if you are using a POST request. Joomla will recognise and use both the same way.
Standard query parameters
Parameter | Description | Default value |
---|---|---|
option | The component (e.g. „com_contact“) to be run | com_cpanel |
task | The task to be performed from the component | display |
controller | The controller to be used to perform the task | display |
view | The view to be chosen to show the result of the task | same as controller |
layout | The layout to be used in the view (view-template) | default |
tmpl | The template to use to render the view (site-template) | the default template |
format | The document format to be responded | html |
lang | The languge to use for replacing the language strings | en-GB |