Joomla. Create template. Files and folder structure

Home » Tutorials » CMS » Joomla. Create template. Files and folder structure

In this lesson we will start to create template for Joomla web site. Before it we will consider template positions necessity. We will start template creating from basic structure of files and folders

Any Joomla template needs templateDetails.xml and index.php files.
templateDetails.xml file contains main information about template and its structure (such as files, folders, positions etc.).
index.php is main (entry) template file. A lot of different settings, program logic and site html code contained in this file. Pay attention to two lines of code from index.php.
(*) protects files from direct access via URL with helper constant definition. In index.php constant doesn’t define, that’s why access via url fails.
(**) includes joomla service information (system scripts, tags and so on)

Подписаться на рассылку

Будьте в курсе - получайте последние статьи на свой email

Ваша подписка успешно оформлена

Pin It on Pinterest

Share This