Difference between revisions of "Site (Application)"

From Joomla! Documentation

m (Rewrap translate tags for image)
m (moving tags)
Line 16: Line 16:
 
==Example== <!--T:4-->
 
==Example== <!--T:4-->
 
</translate>
 
</translate>
<translate><!--T:5-->
+
 
[[File:Home page example.png|left|
+
[[<translate>File:Home page example.png</translate>|left|<translate><!--T:5-->
An example Home Page, the first page of the Site application]]</translate>
+
An example Home Page, the first page of the Site application</translate>]]
 
<translate>
 
<translate>
 
<!--T:6-->
 
<!--T:6-->
 
<noinclude>[[Category:Application]][[Category:Landing Pages]]</noinclude>
 
<noinclude>[[Category:Application]][[Category:Landing Pages]]</noinclude>
 
</translate>
 
</translate>

Revision as of 10:34, 25 June 2014

Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎中文(台灣)‎

The Site application, also known as the Front-end, is the main part of a Joomla website. This is where the general traffic occurs: when a visitor uses your site, he will be using the Site application. You can manipulate this (add/remove content, switch templates etc.) from the Administrator application. Users with appropriate access levels will also be able to edit some aspects of the site from the Front-end.

The Site application is implemented in the JSite class, which is a subclass of the generic JApplication. The JSite object can be retrieved in all versions that support JSite using the following code. The variable $app will be a JSite object when this code is run in the Site application.

$app = JFactory::getApplication();

Example[edit]

An example Home Page, the first page of the Site application