Understanding jdoc statements
Any Joomla! template will need to insert content managed by Joomla! into your website. This is done with the jdoc
statements in the Joomla! template.
Getting ready
Open the index.php
file of the rhuk_milkyway template, which is located in the templates\rhuk_milkyway
directory of your Joomla! installation.
How to do it...
Each "block" of content within Joomla! is inserted with a different jdoc
statement within the index.php
file. There are four fundamental statements that we'll look at:
Component
jdoc
statementsHead
jdoc
statementsModule
andmodules
statements
Component jdoc statements
Component jdoc
statements insert the main content for the current component into your Joomla! template. You can insert the primary page content for a particular page in Joomla! with this jdoc
statement, within the<body>
element of your page:
<jdoc:include type="component" />
Simple! This statement ensures that any page title and content associated with the page is inserted...