<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Timj</id>
	<title>Joomla! Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Timj"/>
	<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/Special:Contributions/Timj"/>
	<updated>2026-08-25T18:27:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=PHP_essentials&amp;diff=64249</id>
		<title>PHP essentials</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=PHP_essentials&amp;diff=64249"/>
		<updated>2012-01-03T23:05:56Z</updated>

		<summary type="html">&lt;p&gt;Timj: /* PHP Round-trip */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{review}}&lt;br /&gt;
Many web designers and casual website owners are not conversant with the&lt;br /&gt;
PHP language in which Joomla! is written and since Joomla! templates&lt;br /&gt;
usually contain PHP statements it is necessary to understand at least a&lt;br /&gt;
little of the language in order to be able to create or customize&lt;br /&gt;
templates. This chunk will describe, in simple terms, how to use each aspect of PHP in the&lt;br /&gt;
context of a Joomla! template. For example, a simple explanation of the PHP&lt;br /&gt;
if-then-else syntax using extracts from a template for illustration.&lt;br /&gt;
&lt;br /&gt;
The best resource to learn PHP is probably hands on experience and Joomla can provide that to you thanks to it&#039;s native PHP code.  This can be overwhelming for people who have not programmed before. Though Joomla is easy enough to [[Installation|install]] with the help of the community and a little of your time you&#039;ll have people asking you to do their websites.&lt;br /&gt;
&lt;br /&gt;
One place that has a nice short list if functions and examples is http://en.wikiversity.org/wiki/25_Essential_PHP_Functions which is good to get familiar with PHP. Though for an extensive function list, explanations, and examples go to http://www.php.net.&lt;br /&gt;
&lt;br /&gt;
Once you have the basics of PHP you&#039;ll need to get the basics of the Joomla PHP syntax.  Start by looking at some existing {{jsite|ext|extensions}} and check out the code and also take a look at some these Tutorials about Joomla:&lt;br /&gt;
&lt;br /&gt;
* [[Developing a Model-View-Controller Component - Part 1]]&lt;br /&gt;
* [[Creating a Plugin for Joomla 1.5]]&lt;br /&gt;
* [[Creating a simple module]]&lt;br /&gt;
&lt;br /&gt;
That will help you get familiar with some of the functions available within Joomla&#039;s system and what they do (using the API).  Take particular care to understand the MVC (model view control) setup.&lt;br /&gt;
&lt;br /&gt;
If however, you are absolutely new to PHP, following may help as very brief introduction to PHP.&lt;br /&gt;
&lt;br /&gt;
==== PHP Introduction ====&lt;br /&gt;
PHP is a scripting language designed primarily for producing dynamic web pages. It is embedded into an HTML page with tags like &amp;lt;?php...?&amp;gt;. When a page is sent to the PHP engine, the PHP tags are translated into HTML, which can then be rendered by a browser. A database is needed during translation since the script may need to pull data from the database. So to create PHP pages, we require the PHP engine, a database (typically MySQL) and the webserver, which will coordinate these actions and forward the final HTML to the browser. These three components can be installed separately; however, we have packages like WAMP (for Windows), MAMP (for Mac) and LAMP (for Linux), for your convenience.&lt;br /&gt;
&lt;br /&gt;
==== PHP Installation ====&lt;br /&gt;
The packages can be downloaded from [http://www.wampserver.com/en/download.php WAMP]. WAMP stands for Windows Apache MySQL PHP. The instructions can be followed as given in the site and is pretty straightforward. The installation can be done is any directory (say D:/wamp). Once installed, it can be started from the program-&amp;gt;start-&amp;gt;WampServer. This should give a small icon in the system tray using which the server can be started/stopped/restarted. It also gives links to all important files like php.ini and other configuration files. For Mac users MAMP can be found [http://www.macupdate.com/info.php/id/16197 here]. For the purpose of this tutorial [http://www.apachefriends.org/en/xampp.html XAMPP] can also be used.&lt;br /&gt;
&lt;br /&gt;
==== PHP Round-trip ====&lt;br /&gt;
Our primary objective here is to write a small PHP page and have it rendered by the Apache web server. WAMP renders a page by looking in the www folder of the WAMP Install Directory, hereafter referred to as WAMP_HOME. Fire up your primary text editor, create a page and name it, say, first.php, and save it to the WAMP_HOME/www/x/y folder (x and y are folders created to organize the scripts) and write the following in the script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
   &amp;lt;title&amp;gt;Basic PHP Page&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
echo &amp;quot;My first php snippet&amp;quot;;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save this file, point your browser to http://localhost/x/y/first.php, and you should be able to see the echo message. &lt;br /&gt;
&lt;br /&gt;
The primary things to note here are: &amp;lt;pre&amp;gt;&lt;br /&gt;
1. It is strongly advised that all PHP codes begin with: &amp;quot;&amp;lt;?php&amp;quot; and end with a &amp;quot;?&amp;gt;&amp;quot; tag. &lt;br /&gt;
2. To have a semicolon [;] after each PHP statement.&lt;br /&gt;
3. The directory where this script resides needs to be given in the URL. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This completes our round-trip. Now, for the sake of learning, you can either keep including new elements in this file or you can create separate scripts and load them in the browser.&lt;br /&gt;
&lt;br /&gt;
==== PHP Variable Declaration and Data Types ====&lt;br /&gt;
We need to hold data for any programming. Following are ways you can define variables in PHP:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;$variable_name = 0; &amp;lt;/li&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: here we did not define the type of variable, whether integer or string, that the variable should hold. This is referred to as dynamic scoping. &lt;br /&gt;
&amp;lt;li&amp;gt; the variable names should start with an alphabet and can contain alphanumeric characters and &amp;quot;_&amp;quot;&lt;br /&gt;
&amp;lt;li&amp;gt; Defining constants - &amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt; define (&amp;quot;NAME_OF_THE_CONSTANT&amp;quot; , $value); &amp;lt;/source&amp;gt; &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Basic Operators ====&lt;br /&gt;
The general operators are explained below:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
a.	+   e.g. 6 + 3, addition operator, answer is 9&lt;br /&gt;
b.	–   e.g. 6 - 3, subtraction operator, answer is 3&lt;br /&gt;
c.	/   e.g. 6 / 3, division operator, answer is 2&lt;br /&gt;
d.	*   e.g. 6 * 3, multiplication operator, answer is 18&lt;br /&gt;
e.	%   e.g. 6 % 3, modulus operator, answer is 0&lt;br /&gt;
f.	.   e.g. &#039;6&#039;.&#039;3&#039;, concatenation operator, gives string &#039;63&#039;&lt;br /&gt;
g.	+=   e.g. $x += 6, adds 6&lt;br /&gt;
h.	-=   e.g. $x -= 6, subtracts 6&lt;br /&gt;
i.	/=   e.g. $x /= 6, divides by 6&lt;br /&gt;
j.	%=   e.g. $x %= 6, modulus by 6&lt;br /&gt;
k.	.=   e.g. $x .= &#039;6&#039;, concats 6 to x&lt;br /&gt;
l.	&amp;lt;   e.g. $x &amp;lt; $y, evaluates to true if $x is &amp;lt; $y&lt;br /&gt;
m.	&amp;gt;   e.g. $x &amp;gt; $y, evaluates to true if $x is &amp;gt; $y&lt;br /&gt;
n.	==  e.g. $x == $y, evaluates to true if $x is equal by value to $y&lt;br /&gt;
o.	!=  e.g. $x != $y, evaluates to true if $x is not equal to $y&lt;br /&gt;
p.	===   e.g. $x === $y, evaluates to true if $x is and $y is identical i.e both of same type both value and reference&lt;br /&gt;
q.	&amp;gt;=  e.g. $x &amp;gt;= $y, evaluates to true if $x is &amp;gt;= $y&lt;br /&gt;
r.	&amp;lt;=  e.g. $x &amp;lt;= $y, evaluates to true if $x is &amp;lt;= $y&lt;br /&gt;
s.	&amp;amp;&amp;amp;  e.g. ($x == 2 &amp;amp;&amp;amp; $y == 3) , evaluates to true if $x equals 2 and $y equals 3&lt;br /&gt;
t.	||  e.g. ($x == 2 || $y == 3) , evaluates to true if either $x equals 2 or $y equals 3&lt;br /&gt;
u.	xor e.g. ($x == 2 xor $y == 3) , evaluates to true if either $x equals 2 or $y equals 3 but not both&lt;br /&gt;
v.	++  e.g. $x++, increments $x&lt;br /&gt;
w.	–-  e.g. $x--, decrements $x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Defining Array Structures ====&lt;br /&gt;
&#039;&#039;&#039;Ways of declaring arrays&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;br&amp;gt; Suppose we want many variables. We could have declared the variables as shown above; however, that is not elegant. Suppose you want 100 variables; declaring arrays come to the rescue. Note that the index in PHP starts with 0.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$my_guitar_heroes = array (&amp;quot;Hendrix&amp;quot;, &amp;quot;Shankar&amp;quot;, &amp;quot;Gilmour&amp;quot;, &amp;quot;to_name_a_few!&amp;quot;);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Or&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$my_guitar_heroes [] = &amp;quot;Hendrix&amp;quot;;&lt;br /&gt;
$my_guitar_heroes [] = &amp;quot;Shankar&amp;quot;;&lt;br /&gt;
$my_guitar_heroes [] = &amp;quot;Gilmour&amp;quot;;&lt;br /&gt;
$my_guitar_heroes [] = &amp;quot;to_name_a_few!&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here PHP automatically assigns the index.&lt;br /&gt;
&lt;br /&gt;
Or&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$my_guitar_heroes [0] = &amp;quot;Hendrix&amp;quot;;&lt;br /&gt;
$my_guitar_heroes [10000] = &amp;quot;Mainak&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here, I knew the first and the 10,001st element but that&#039;s me!&lt;br /&gt;
&lt;br /&gt;
Or&lt;br /&gt;
a combination of the above means&lt;br /&gt;
&lt;br /&gt;
Or&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
// Set the elements at positions 1 through 9999 to the value, &amp;quot;to be decided&amp;quot;.&lt;br /&gt;
$my_guitar_heroes  = array_fill( 1, 9999, &amp;quot;to be decided&amp;quot; ); &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Accessing the Arrays&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
print $my_guitar_heroes[2]; //Access the 3rd element&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Or&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
// Access the last element (Note that the element positions are numbered zero to &lt;br /&gt;
// [number of elements] minus one.)&lt;br /&gt;
$my_guitar_heroes[count($my_guitar_heroes)-1]; &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Or&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
// Access the last element using a function call.&lt;br /&gt;
end($my_guitar_heroes); &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Iterating Over the Element of an Array&#039;&#039;&#039; &lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
foreach ( $my_guitar_heroes as $temp) {&lt;br /&gt;
  print &amp;quot;$temp&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Control Expressions ====&lt;br /&gt;
To execute a statement of a collection of statements over and over, we use Control Expressions. The general syntax of the control structures are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;if statements&#039;&#039;&#039;&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if( $x &amp;gt; 0) {	&lt;br /&gt;
 print(&amp;quot;$x is positive&amp;quot;);&lt;br /&gt;
}  else if( $x &amp;lt; 0 ) {	&lt;br /&gt;
 print(&amp;quot;$x is negative&amp;quot;);&lt;br /&gt;
} else {&lt;br /&gt;
 print(&amp;quot;$x is 0&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;for loop&#039;&#039;&#039;&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
for ( $x=1; $x&amp;lt;= 10; $x++ ) {&lt;br /&gt;
 print &amp;quot;$x&amp;lt;BR/&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;while loop&#039;&#039;&#039;&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$x = 1&lt;br /&gt;
while ( $x &amp;lt;= 10 ) {&lt;br /&gt;
 print &amp;quot;$x&amp;lt;BR/&amp;gt;&amp;quot;;&lt;br /&gt;
 $x++;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;do while loop&#039;&#039;&#039;&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$x = 1;&lt;br /&gt;
do {&lt;br /&gt;
 print &amp;quot;$x&amp;lt;BR/&amp;gt;&amp;quot;;&lt;br /&gt;
 $x++;&lt;br /&gt;
}while($x &amp;lt;= 10);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Defining Functions ====&lt;br /&gt;
Code which is duplicated in many places is best placed in a function. The following are the ways of describing the function:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
function name_of_the_function( $arguments, $size=&#039;default_values_if_any&#039; ) {&lt;br /&gt;
  print &amp;quot;here goes in the code&amp;quot;; &lt;br /&gt;
  return &amp;quot;this value is returned, return statement is optional&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The arguments are passed by value. If they are to be passed by reference, then an argument is prefixed by &amp;quot;&amp;amp;&amp;quot; as below:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
function name_of_the_function( &amp;amp;$arguments, $size=&#039;default_values_if_any&#039; ) {&lt;br /&gt;
  print &amp;quot;here goes in the code&amp;quot;; &lt;br /&gt;
  return &amp;quot;this value is returned, return statement is optional&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The scope of a variable defined within a function is valid only within that function. &lt;br /&gt;
&lt;br /&gt;
Calling a function&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$x = add(5, 3);&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Debugging ====&lt;br /&gt;
&#039;&#039;&#039;Basic printing options&#039;&#039;&#039; &amp;lt;br/&amp;gt;&lt;br /&gt;
A basic way to debug is to print the value of the variable. The following basic statements achieve that:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;echo &amp;quot;if double quotes are used then dollar variables are resolved&amp;quot;;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;echo &#039;if single quote are used then dollar variables are not resolved&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;print &amp;quot;another way to print&amp;quot;;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;nl2br(&amp;quot;any new line characters like \n get automatically resolved to HTML line breaks&amp;quot;);&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Apart from these, the log files are very helpful and can be found in the WAMP_HOME/logs directory.&lt;br /&gt;
&lt;br /&gt;
==== Handling Forms ====&lt;br /&gt;
{{warning|Joomla! provides [[Retrieving and Filtering GET and POST requests with JRequest::getVar|a safer and cleaner method of accessing request data]] and alternative ways for accessing the session. Using any of these arrays is not recommended.}}&lt;br /&gt;
&lt;br /&gt;
PHP does not change any HTML structure, thus any syntax of HTML remains the same. The part that PHP plays is making any part dynamic for e.g., the action attribute of a form can be coded as action=&amp;lt;?php my_own_action(); ?&amp;gt; so that it is dynamically generated. The part where PHP kicks in is after the form is submitted, say to obtain the values of the form fields, set cookies, etc. For this, super global variables are used, which are always available to PHP code. Some of these are:  &lt;br /&gt;
&lt;br /&gt;
# &amp;lt;code&amp;gt;$_GET&amp;lt;/code&amp;gt; - get the data from a GET request&lt;br /&gt;
# &amp;lt;code&amp;gt;$_POST&amp;lt;/code&amp;gt; - get the data from a POST request&lt;br /&gt;
# &amp;lt;code&amp;gt;$_REQUEST&amp;lt;/code&amp;gt; - get the request&lt;br /&gt;
# &amp;lt;code&amp;gt;$_COOKIE&amp;lt;/code&amp;gt; - obtain the cookies from the browser&lt;br /&gt;
# &amp;lt;code&amp;gt;$_SESSION&amp;lt;/code&amp;gt; - obtain the session&lt;br /&gt;
&lt;br /&gt;
These are all arrays, and behave accordingly.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Development]][[Category:Tutorials]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Timj</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5:Template_FAQs&amp;diff=64247</id>
		<title>J1.5:Template FAQs</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5:Template_FAQs&amp;diff=64247"/>
		<updated>2012-01-03T22:55:33Z</updated>

		<summary type="html">&lt;p&gt;Timj: /* How do I change the image(s) in my template? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{review}}&lt;br /&gt;
&lt;br /&gt;
===What is a template?===&lt;br /&gt;
&lt;br /&gt;
The [[Template]] controls the overall look and layout of your site. It provides the framework that brings together common elements, [[Modules|modules]] and [[Components|components]] as well as providing the [[CSS|cascading style sheet]] for your site. Both the [[Front-end]] (Site) and the [[Back-end]] (Administrator) of your site have templates.&lt;br /&gt;
&lt;br /&gt;
When Joomla! is installed several templates are automatically included. You can find many more templates at other websites. Some are available without charge under various licenses, and some are for sale. In addition, there are many designers available who can make custom templates. You can also [[Joomla! 1.5 Template Tutorials Project|make your own template]].&lt;br /&gt;
&lt;br /&gt;
Templates are managed with the [[Template Manager]], which is located on the site menu on the Back-end of your site.&lt;br /&gt;
&lt;br /&gt;
The following may be helpful in understanding templates:&lt;br /&gt;
* http://help.joomla.org/content/view/474/153/&lt;br /&gt;
&lt;br /&gt;
===How do I install a new template?===&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]]  of the site, go to Installers&amp;gt;&amp;gt;Templates-Site (or Templates-Administrator if you are installing an administrator template).&lt;br /&gt;
&lt;br /&gt;
[[Image:Installing_templates.JPG]]&lt;br /&gt;
&lt;br /&gt;
Browse for the template zip file and click &#039;&#039;Upload File&#039;&#039; and &#039;&#039;Install&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Uploading_templates.JPG ]]&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can install from a directory.&lt;br /&gt;
&lt;br /&gt;
To make the new template the default template for your site, go to the [[Template Manager]] (Site&amp;gt;&amp;gt;Template Manager&amp;gt;&amp;gt;Site Templates).&lt;br /&gt;
You should see the name of your new template on the list of templates.&lt;br /&gt;
&lt;br /&gt;
Select it and click on the default icon if you want it to be the default icon for your site.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]] of the site, go to [[Extension]]s&amp;gt;&amp;gt;[[Installing_an_extension|Install/Uninstall]].&lt;br /&gt;
&lt;br /&gt;
[[Image:Extension_install_1_5.png]]&lt;br /&gt;
&lt;br /&gt;
Browse for the template zip file and click Upload File and Install.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can install from a directory or URL.&lt;br /&gt;
&lt;br /&gt;
To make the new template the default template for your site, select it and click the default icon (star).&lt;br /&gt;
&lt;br /&gt;
===How do I modify a template?===&lt;br /&gt;
Templates are just a series of xml, php, html and image files that are stored in the templates directory of your site.&lt;br /&gt;
You can edit these files or you can use the editing interface available in the [[Template Manager]].&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]], select Site&amp;gt;&amp;gt;Template Manager&amp;gt;&amp;gt;Site Templates.&lt;br /&gt;
&lt;br /&gt;
Select the template you wish to modify.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]], select Site&amp;gt;&amp;gt;[[Extension]]s&amp;gt;&amp;gt;Templates.&lt;br /&gt;
Select the template you wish to modify.&lt;br /&gt;
Click the edit icon.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}} and {{JVer|1.05}}&lt;br /&gt;
You are given the choice of editing &amp;quot;html&amp;quot; and &amp;quot;css.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
[[CSS]] stands for cascading style sheets. This controls many elements of the look and feel of your site.&lt;br /&gt;
[[HTML]] is the file that controls where positions are defined and positioned. Other than that, it should be noted that, with a few exceptions, what is in the .css and what is in the HTML files largely depends on the approach of the tempate designer.&lt;br /&gt;
&lt;br /&gt;
One common change is to use your own graphic/image. Graphics are linked to in the HTML file. Simply change the reference to the image of your choice. Keep in mind that it if it is a different size than the original image this may change the appearance of the site in unexpected ways.&lt;br /&gt;
&lt;br /&gt;
===How do I assign a template to a specific page?===&lt;br /&gt;
&lt;br /&gt;
In Joomla! there is a default template, but you can assign other templates to specific &amp;quot;pages&amp;quot; that are defined by menu links.&lt;br /&gt;
&lt;br /&gt;
To assign a template to a page, you must first make sure that there is a direct menu link to the page.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
* Go to Site&amp;gt;&amp;gt;[[Template Manager]]&amp;gt;&amp;gt;Site Templates&lt;br /&gt;
* Select the template you wish to assign.&lt;br /&gt;
* Click on the assign icon.&lt;br /&gt;
* On the right, there will be a list with all of the possible pages the template can be assigned to. Select one or more pages and save.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
* Go to [[Extension]]s&amp;gt;&amp;gt;[[Template Manager]]&lt;br /&gt;
* Select the Template and click the edit icon (or click the template name)&lt;br /&gt;
* In the left column, change &amp;quot;None&amp;quot; to &amp;quot;Select from List.&amp;quot;&lt;br /&gt;
* Select the links you want to apply the template to.&lt;br /&gt;
* Save&lt;br /&gt;
&lt;br /&gt;
Note that you cannot assign the default template to individual pages.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Understanding&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The templating system uses the [[ItemID]] to determine which template to show. ItemIDs are created when you create a menu link. This is why only menu items are shown in the list of pages to which you can assign templates.&lt;br /&gt;
&lt;br /&gt;
===What are the base Joomla! CSS styles?===&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
Provided by Haaris&lt;br /&gt;
&lt;br /&gt;
 /**com_contact**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .category&lt;br /&gt;
  .small&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentheading&lt;br /&gt;
  .contact_email&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**com_content**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .sectiontableentry1&lt;br /&gt;
  .sectiontableentry2&lt;br /&gt;
  .sectiontablefooter&lt;br /&gt;
  .blogsection&lt;br /&gt;
  .contentpaneopen&lt;br /&gt;
  .article_seperator&lt;br /&gt;
  .contentheading&lt;br /&gt;
  .contentpagetitle&lt;br /&gt;
  .buttonheading&lt;br /&gt;
  .small&lt;br /&gt;
  .createdate&lt;br /&gt;
  .modifydate&lt;br /&gt;
  .readon&lt;br /&gt;
  .pagenav_prev&lt;br /&gt;
  .pagenav_next&lt;br /&gt;
  .adminform&lt;br /&gt;
  .button&lt;br /&gt;
  .text_area&lt;br /&gt;
  .blog&lt;br /&gt;
  .blog_more&lt;br /&gt;
&lt;br /&gt;
 /**com_login**/&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**com_newsfeeds**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .category&lt;br /&gt;
  .small&lt;br /&gt;
  .contentheading&lt;br /&gt;
&lt;br /&gt;
 /**com_poll**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .pollstableborder&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .smalldark&lt;br /&gt;
  .button&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**com_registration**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**com_search**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpaneopen&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
  .searchintro&lt;br /&gt;
  .small&lt;br /&gt;
  .highlight&lt;br /&gt;
&lt;br /&gt;
 /**com_user**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
  .row1&lt;br /&gt;
  .row2&lt;br /&gt;
&lt;br /&gt;
 /**com_weblinks**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .tabclass1&lt;br /&gt;
  .tabclass2&lt;br /&gt;
  .small&lt;br /&gt;
  .category&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**com_wrapper**/&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .wrapper&lt;br /&gt;
&lt;br /&gt;
 /**includes/frontend**/&lt;br /&gt;
  .moduletable&lt;br /&gt;
  .newsfeed&lt;br /&gt;
  .module&lt;br /&gt;
  .message&lt;br /&gt;
&lt;br /&gt;
 /**includes\HTML_toolbar  .php**/&lt;br /&gt;
  .toolbar&lt;br /&gt;
&lt;br /&gt;
 /**includes\joomla  .php**/&lt;br /&gt;
  .profiler&lt;br /&gt;
  .item&lt;br /&gt;
  .small&lt;br /&gt;
  .back_button&lt;br /&gt;
  .buttonheading&lt;br /&gt;
  .tab-page&lt;br /&gt;
  .tab&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**includes\joomla  .xml  .php**/&lt;br /&gt;
  .paramlist&lt;br /&gt;
  .editlinktip&lt;br /&gt;
  .text_area&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**includes\pageNavigation  .php**/&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .pagenav&lt;br /&gt;
&lt;br /&gt;
 /**includes\pathway  .php**/&lt;br /&gt;
  .pathway&lt;br /&gt;
&lt;br /&gt;
 /**includes\js\dtree\dtree  .js**/&lt;br /&gt;
  .dtree&lt;br /&gt;
  .dTreeNode&lt;br /&gt;
  .node&lt;br /&gt;
  .clip&lt;br /&gt;
&lt;br /&gt;
 /**includes\patTemplate\tmpl\forms  .html**/&lt;br /&gt;
  .message&lt;br /&gt;
  .tooltip&lt;br /&gt;
  .tab-page&lt;br /&gt;
  .tab&lt;br /&gt;
  .expander&lt;br /&gt;
&lt;br /&gt;
 /**mambots\content\mosimage  .php**/&lt;br /&gt;
  .mosimage_caption&lt;br /&gt;
  .mosimage&lt;br /&gt;
&lt;br /&gt;
 /**mambots\content\mospaging  .php**/&lt;br /&gt;
  .pagenavcounter&lt;br /&gt;
  .pagenavbar&lt;br /&gt;
  .contenttoc&lt;br /&gt;
  .toclink&lt;br /&gt;
&lt;br /&gt;
 /**mambots\content\mosvote  .php**/&lt;br /&gt;
  .content_rating&lt;br /&gt;
  .content_vote&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_latestnews  .php**/&lt;br /&gt;
  .latestnews&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_login  .php**/&lt;br /&gt;
  .button&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_mostread  .php**/&lt;br /&gt;
  .mostread&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_mostread  .php**/&lt;br /&gt;
  .poll&lt;br /&gt;
  .pollstableborder&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_mostread  .php**/&lt;br /&gt;
  .syndicate&lt;br /&gt;
  .syndicate_text&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_search  .php**/&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
  .search&lt;br /&gt;
&lt;br /&gt;
Provided by Compass:&lt;br /&gt;
&lt;br /&gt;
 #active_menu&lt;br /&gt;
 #blockrandom&lt;br /&gt;
 #contact_email_copy&lt;br /&gt;
 #contact_text&lt;br /&gt;
 #emailForm&lt;br /&gt;
 #mod_login_password&lt;br /&gt;
 #mod_login_remember&lt;br /&gt;
 #mod_login_username&lt;br /&gt;
 #poll&lt;br /&gt;
 #search_ordering&lt;br /&gt;
 #search_searchword&lt;br /&gt;
 #searchphraseall&lt;br /&gt;
 #searchphraseany&lt;br /&gt;
 #searchphraseexact&lt;br /&gt;
 #voteid1, #voteid2&lt;br /&gt;
  .adminform&lt;br /&gt;
  .article_seperator&lt;br /&gt;
  .back_button&lt;br /&gt;
  .blog&lt;br /&gt;
  .blog_more&lt;br /&gt;
  .blogsection&lt;br /&gt;
  .button&lt;br /&gt;
  .buttonheading&lt;br /&gt;
  .category&lt;br /&gt;
  .clr&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contact_email&lt;br /&gt;
  .content_rating&lt;br /&gt;
  .content_vote&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .contentheading&lt;br /&gt;
  .contentpagetitle&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentpaneopen&lt;br /&gt;
  .contenttoc&lt;br /&gt;
  .createdate&lt;br /&gt;
  .fase4rdf&lt;br /&gt;
  .footer&lt;br /&gt;
  .frontpageheader&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .latestnews&lt;br /&gt;
  .mainlevel&lt;br /&gt;
  .message&lt;br /&gt;
  .modifydate&lt;br /&gt;
  .module&lt;br /&gt;
  .moduletable&lt;br /&gt;
  .mostread&lt;br /&gt;
  .newsfeed&lt;br /&gt;
  .newsfeeddate&lt;br /&gt;
  .newsfeedheading&lt;br /&gt;
  .pagenav&lt;br /&gt;
  .pagenav_next&lt;br /&gt;
  .pagenav_prev&lt;br /&gt;
  .pagenavbar&lt;br /&gt;
  .pagenavcounter&lt;br /&gt;
  .pathway&lt;br /&gt;
  .polls&lt;br /&gt;
  .pollsborder&lt;br /&gt;
  .pollstableborder&lt;br /&gt;
  .readon&lt;br /&gt;
  .readon:hover&lt;br /&gt;
  .search&lt;br /&gt;
  .searchintro&lt;br /&gt;
  .sectionentry1&lt;br /&gt;
  .sectionentry2&lt;br /&gt;
  .sectionheader&lt;br /&gt;
  .sitetitle&lt;br /&gt;
  .small&lt;br /&gt;
  .smalldark&lt;br /&gt;
  .sublevel&lt;br /&gt;
  .syndicate&lt;br /&gt;
  .syndicate_text&lt;br /&gt;
  .text_area&lt;br /&gt;
  .toclink&lt;br /&gt;
  .weblinks&lt;br /&gt;
  .wrapper&lt;br /&gt;
&lt;br /&gt;
===What are module switches?  (or -1 -2 and -3) ===&lt;br /&gt;
This is how you apply the switches:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;nowiki&amp;gt;switch: -1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
: Strips all surrounding code from the module.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;, -1 ); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The html code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;user1_inner&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot;    &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 2&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot;  &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 1&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  Example News Item 4&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=7&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;       &lt;br /&gt;
  Example News Item 2&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;nowiki&amp;gt;switch: -2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
: Puts the module&#039;s title in an h3, and wraps the entire thing in a&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;, -2 ); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The html code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;moduletable&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;h3&amp;gt;Latest News&amp;lt;/h3&amp;gt;&lt;br /&gt;
 &amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot;  &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 2&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=6&amp;amp;Itemid=2&amp;quot;&lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Example News Item 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Example News Item 4&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
 &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;switch: -3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Puts the module&#039;s title in an h3, and adds several layers of divs that can be used to apply [[CSS]] techniques with [[Rounded corners|rounded corners]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;, -3 ); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;module&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div&amp;gt;&lt;br /&gt;
 &amp;lt;div&amp;gt;&lt;br /&gt;
 &amp;lt;div&amp;gt;&lt;br /&gt;
 &amp;lt;h3&amp;gt;Latest News&amp;lt;/h3&amp;gt;&lt;br /&gt;
 &amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot;      &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   Newsflash 2 &amp;lt;/a&amp;gt; &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=6&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   Example News Item 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   Example News Item 4&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
 &amp;lt;/ul&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there is no switch at all:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;table class=&amp;quot;moduletable&amp;quot; border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;tbody&amp;gt;&lt;br /&gt;
     &amp;lt;tr&amp;gt;&lt;br /&gt;
       &amp;lt;th valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
      Latest News&lt;br /&gt;
       &amp;lt;/th&amp;gt;&lt;br /&gt;
     &amp;lt;/tr&amp;gt;&lt;br /&gt;
     &amp;lt;tr&amp;gt;&lt;br /&gt;
       &amp;lt;td&amp;gt;&lt;br /&gt;
       &amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         Newsflash 1 &lt;br /&gt;
         &amp;lt;/a&amp;gt; &lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 2&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=6&amp;amp;Itemid=2&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         Example News Item 1&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         Example News Item 4&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;/ul&amp;gt;&lt;br /&gt;
       &amp;lt;/td&amp;gt;&lt;br /&gt;
     &amp;lt;/tr&amp;gt;&lt;br /&gt;
   &amp;lt;/tbody&amp;gt;&lt;br /&gt;
 &amp;lt;/table&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Joomla! 1.5 each switch has a style associated with it.&lt;br /&gt;
&lt;br /&gt;
		switch -3:    $style = &#039;rounded&#039;;&lt;br /&gt;
                switch -2:  $style = &#039;xhtml&lt;br /&gt;
                switch  -1:  $stylle = &#039;raw&#039;;&lt;br /&gt;
		switch   0 :$style = &#039;table&#039;;&lt;br /&gt;
&lt;br /&gt;
===How do I add a position to a template?===&lt;br /&gt;
To create a &amp;quot;new&amp;quot; position chose one of the names from the list of positions shown in&lt;br /&gt;
Site&amp;gt;[[Template Manager]]&amp;gt;Module Positions&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
In your template add&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;?php mosLoadModules (&#039;position_name&#039;); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will want to surround it with appropriate html so that it appears where you want it to and with the formatting you want.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
===How do I change the image(s) in my template?===&lt;br /&gt;
One common [[Template|template]] change is to use your own graphic/image. Simple graphics (not [[Banner|banners]]) are linked in the [[HTML]] file. Simply change the reference to the image of your choice in the HTML file of your template.  Do this by, in the [[Back-end|administrative interface]], going to Site&amp;gt;&amp;gt;[[Template Manager]] and then selecting your template. Click the icon for html.&lt;br /&gt;
&lt;br /&gt;
Keep in mind that if it is a different size than the original image this may change the appearance of the site in unexpected ways.&lt;br /&gt;
&lt;br /&gt;
The images for a given template are generally located in this folder:&lt;br /&gt;
 /templates/&#039;&#039;templatename&#039;&#039;/images &lt;br /&gt;
(where you substitute the name of the template you are using.)&lt;br /&gt;
&lt;br /&gt;
===How do I collapse an empty position in a template?===&lt;br /&gt;
Very often the question is asked on how to collapse a position in any template. Note collapse here means &amp;quot;not show&amp;quot; if no modules are published to these columns.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
Here is a method on how to do this as an example with the tremendous popular [[rhuk_solarflare]] template:&lt;br /&gt;
&lt;br /&gt;
open &amp;lt;tt&amp;gt;../templates/rhuk_solarflare_ii/index.php&amp;lt;/tt&amp;gt; and find and replace this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div id=&amp;quot;left_outer&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div id=&amp;quot;left_inner&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;?php mosLoadModules ( &#039;left&#039;, -2 ); ?&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div id=&amp;quot;content_outer&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
with this :&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;?php&lt;br /&gt;
      if ( !(mosCountModules( &#039;left&#039; )) ) {&lt;br /&gt;
    ?&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;content_outer2&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;?&lt;br /&gt;
     }&lt;br /&gt;
     else {&lt;br /&gt;
     ?&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;left_outer&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div id=&amp;quot;left_inner&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;?php mosLoadModules ( &#039;left&#039;, -2 ); ?&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;content_outer&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;?&lt;br /&gt;
     }&lt;br /&gt;
    ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
and save the file.&lt;br /&gt;
&lt;br /&gt;
Then open &amp;lt;tt&amp;gt;../templates/rhuk_solarflare_ii/css/template_css.css&amp;lt;/tt&amp;gt; file and add:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
 #content_outer2 {&lt;br /&gt;
    padding: 0px;&lt;br /&gt;
    margin-top: 0px;&lt;br /&gt;
    margin-left: 0px;&lt;br /&gt;
    /** border: 1px solid #cccccc; **/&lt;br /&gt;
    float: left;&lt;br /&gt;
    width: 800px;&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and your left column now will collapse when you don&#039;t publish anything to it!&lt;br /&gt;
&lt;br /&gt;
This method you can multiply to any template if you try to follow the logic of the code!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
===CSS Text/Font Resizing (A+ A-) on Joomla Template===&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
I recognize that there are some of you who are sort of scratching your heads wondering how to get from where your site is now to where joomla.org&#039;s is. So for those of you wanting it laid out all the way, here&#039;s a more detailed instruction set that summarizes and extends what has already been said through the course of this thread:&lt;br /&gt;
&lt;br /&gt;
*Step 1 - download joomla.org&#039;s font style switcher file ([http://demo.joomla.org/1.5/templates/beez/javascript/md_stylechanger.js md_stylechanger.js])&lt;br /&gt;
*Step 2 - put that file somewhere in the folder of the template you are using&lt;br /&gt;
*Step 3 - put A+, A-, and Reset images in your template&#039;s image folder&lt;br /&gt;
*Step 4 - paste the following code snippet somewhere in your template&#039;s index.php file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- PLEASE! avoid extra-wide lines that may cause scrollbars in common screen-sizes &lt;br /&gt;
     and wrap ~ 80 chars / attribute level for better readability --&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
// shortcut of template URL used in src attributes&lt;br /&gt;
$template_url = $mosConfig_live_site .&#039;/templates/&#039;. $mainframe-&amp;gt;getTemplate(); &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; language=&amp;quot;javascript&amp;quot; &lt;br /&gt;
       src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/____1____&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;index.php&amp;quot; title=&amp;quot;Increase size&amp;quot; onclick=&amp;quot;changeFontSize(1);return false;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;img src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/images/____2____&amp;quot; alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;index.php&amp;quot; title=&amp;quot;Decrease size&amp;quot; onclick=&amp;quot;changeFontSize(-1);return false;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;img src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/images/____3____&amp;quot; alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;index.php&amp;quot; title=&amp;quot;Revert styles to default&amp;quot; onclick=&amp;quot;revertStyles(); return false;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;img src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/images/____4____&amp;quot; alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Step 5: Do all of the following:&lt;br /&gt;
*# Replace ____1____ with the location in your template folder where you saved the .js file&lt;br /&gt;
*# Replace ____2____ with the name of your A+ image&lt;br /&gt;
*# Replace ____3____ with the name of your A- image&lt;br /&gt;
*# Replace ____4____ with the name of your Reset image&lt;br /&gt;
&lt;br /&gt;
*Step 6: Do one of the following:&lt;br /&gt;
** Bask in the awesomeness that is session font resizing&lt;br /&gt;
** Start figuring out why the buttons do nothing (either because your site doesn&#039;t use style classes, or because I messed up somewhere)&lt;br /&gt;
&lt;br /&gt;
===Can I remove the &amp;quot;Powered by Joomla!&amp;quot; message?===&lt;br /&gt;
&lt;br /&gt;
Yes. You may remove that message, which is in &amp;lt;tt&amp;gt;footer.php&amp;lt;/tt&amp;gt;. You may however &#039;&#039;&#039;not&#039;&#039;&#039; remove copyright and license information from the source code.&lt;br /&gt;
&lt;br /&gt;
===How do I make it so my modules are laid out horizontally?===&lt;br /&gt;
&lt;br /&gt;
See [[Administration_FAQs#How_do_I_control_whether_modules_are_vertically_or_horizontally_arranged.3F | How do I control whether modules are vertically or horizontally arranged?]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>Timj</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5:Template_FAQs&amp;diff=64246</id>
		<title>J1.5:Template FAQs</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5:Template_FAQs&amp;diff=64246"/>
		<updated>2012-01-03T22:54:48Z</updated>

		<summary type="html">&lt;p&gt;Timj: /* How do I add a position to a template? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{review}}&lt;br /&gt;
&lt;br /&gt;
===What is a template?===&lt;br /&gt;
&lt;br /&gt;
The [[Template]] controls the overall look and layout of your site. It provides the framework that brings together common elements, [[Modules|modules]] and [[Components|components]] as well as providing the [[CSS|cascading style sheet]] for your site. Both the [[Front-end]] (Site) and the [[Back-end]] (Administrator) of your site have templates.&lt;br /&gt;
&lt;br /&gt;
When Joomla! is installed several templates are automatically included. You can find many more templates at other websites. Some are available without charge under various licenses, and some are for sale. In addition, there are many designers available who can make custom templates. You can also [[Joomla! 1.5 Template Tutorials Project|make your own template]].&lt;br /&gt;
&lt;br /&gt;
Templates are managed with the [[Template Manager]], which is located on the site menu on the Back-end of your site.&lt;br /&gt;
&lt;br /&gt;
The following may be helpful in understanding templates:&lt;br /&gt;
* http://help.joomla.org/content/view/474/153/&lt;br /&gt;
&lt;br /&gt;
===How do I install a new template?===&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]]  of the site, go to Installers&amp;gt;&amp;gt;Templates-Site (or Templates-Administrator if you are installing an administrator template).&lt;br /&gt;
&lt;br /&gt;
[[Image:Installing_templates.JPG]]&lt;br /&gt;
&lt;br /&gt;
Browse for the template zip file and click &#039;&#039;Upload File&#039;&#039; and &#039;&#039;Install&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Uploading_templates.JPG ]]&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can install from a directory.&lt;br /&gt;
&lt;br /&gt;
To make the new template the default template for your site, go to the [[Template Manager]] (Site&amp;gt;&amp;gt;Template Manager&amp;gt;&amp;gt;Site Templates).&lt;br /&gt;
You should see the name of your new template on the list of templates.&lt;br /&gt;
&lt;br /&gt;
Select it and click on the default icon if you want it to be the default icon for your site.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]] of the site, go to [[Extension]]s&amp;gt;&amp;gt;[[Installing_an_extension|Install/Uninstall]].&lt;br /&gt;
&lt;br /&gt;
[[Image:Extension_install_1_5.png]]&lt;br /&gt;
&lt;br /&gt;
Browse for the template zip file and click Upload File and Install.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can install from a directory or URL.&lt;br /&gt;
&lt;br /&gt;
To make the new template the default template for your site, select it and click the default icon (star).&lt;br /&gt;
&lt;br /&gt;
===How do I modify a template?===&lt;br /&gt;
Templates are just a series of xml, php, html and image files that are stored in the templates directory of your site.&lt;br /&gt;
You can edit these files or you can use the editing interface available in the [[Template Manager]].&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]], select Site&amp;gt;&amp;gt;Template Manager&amp;gt;&amp;gt;Site Templates.&lt;br /&gt;
&lt;br /&gt;
Select the template you wish to modify.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]], select Site&amp;gt;&amp;gt;[[Extension]]s&amp;gt;&amp;gt;Templates.&lt;br /&gt;
Select the template you wish to modify.&lt;br /&gt;
Click the edit icon.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}} and {{JVer|1.05}}&lt;br /&gt;
You are given the choice of editing &amp;quot;html&amp;quot; and &amp;quot;css.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
[[CSS]] stands for cascading style sheets. This controls many elements of the look and feel of your site.&lt;br /&gt;
[[HTML]] is the file that controls where positions are defined and positioned. Other than that, it should be noted that, with a few exceptions, what is in the .css and what is in the HTML files largely depends on the approach of the tempate designer.&lt;br /&gt;
&lt;br /&gt;
One common change is to use your own graphic/image. Graphics are linked to in the HTML file. Simply change the reference to the image of your choice. Keep in mind that it if it is a different size than the original image this may change the appearance of the site in unexpected ways.&lt;br /&gt;
&lt;br /&gt;
===How do I assign a template to a specific page?===&lt;br /&gt;
&lt;br /&gt;
In Joomla! there is a default template, but you can assign other templates to specific &amp;quot;pages&amp;quot; that are defined by menu links.&lt;br /&gt;
&lt;br /&gt;
To assign a template to a page, you must first make sure that there is a direct menu link to the page.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
* Go to Site&amp;gt;&amp;gt;[[Template Manager]]&amp;gt;&amp;gt;Site Templates&lt;br /&gt;
* Select the template you wish to assign.&lt;br /&gt;
* Click on the assign icon.&lt;br /&gt;
* On the right, there will be a list with all of the possible pages the template can be assigned to. Select one or more pages and save.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
* Go to [[Extension]]s&amp;gt;&amp;gt;[[Template Manager]]&lt;br /&gt;
* Select the Template and click the edit icon (or click the template name)&lt;br /&gt;
* In the left column, change &amp;quot;None&amp;quot; to &amp;quot;Select from List.&amp;quot;&lt;br /&gt;
* Select the links you want to apply the template to.&lt;br /&gt;
* Save&lt;br /&gt;
&lt;br /&gt;
Note that you cannot assign the default template to individual pages.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Understanding&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The templating system uses the [[ItemID]] to determine which template to show. ItemIDs are created when you create a menu link. This is why only menu items are shown in the list of pages to which you can assign templates.&lt;br /&gt;
&lt;br /&gt;
===What are the base Joomla! CSS styles?===&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
Provided by Haaris&lt;br /&gt;
&lt;br /&gt;
 /**com_contact**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .category&lt;br /&gt;
  .small&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentheading&lt;br /&gt;
  .contact_email&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**com_content**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .sectiontableentry1&lt;br /&gt;
  .sectiontableentry2&lt;br /&gt;
  .sectiontablefooter&lt;br /&gt;
  .blogsection&lt;br /&gt;
  .contentpaneopen&lt;br /&gt;
  .article_seperator&lt;br /&gt;
  .contentheading&lt;br /&gt;
  .contentpagetitle&lt;br /&gt;
  .buttonheading&lt;br /&gt;
  .small&lt;br /&gt;
  .createdate&lt;br /&gt;
  .modifydate&lt;br /&gt;
  .readon&lt;br /&gt;
  .pagenav_prev&lt;br /&gt;
  .pagenav_next&lt;br /&gt;
  .adminform&lt;br /&gt;
  .button&lt;br /&gt;
  .text_area&lt;br /&gt;
  .blog&lt;br /&gt;
  .blog_more&lt;br /&gt;
&lt;br /&gt;
 /**com_login**/&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**com_newsfeeds**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .category&lt;br /&gt;
  .small&lt;br /&gt;
  .contentheading&lt;br /&gt;
&lt;br /&gt;
 /**com_poll**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .pollstableborder&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .smalldark&lt;br /&gt;
  .button&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**com_registration**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**com_search**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpaneopen&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
  .searchintro&lt;br /&gt;
  .small&lt;br /&gt;
  .highlight&lt;br /&gt;
&lt;br /&gt;
 /**com_user**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
  .row1&lt;br /&gt;
  .row2&lt;br /&gt;
&lt;br /&gt;
 /**com_weblinks**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .tabclass1&lt;br /&gt;
  .tabclass2&lt;br /&gt;
  .small&lt;br /&gt;
  .category&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**com_wrapper**/&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .wrapper&lt;br /&gt;
&lt;br /&gt;
 /**includes/frontend**/&lt;br /&gt;
  .moduletable&lt;br /&gt;
  .newsfeed&lt;br /&gt;
  .module&lt;br /&gt;
  .message&lt;br /&gt;
&lt;br /&gt;
 /**includes\HTML_toolbar  .php**/&lt;br /&gt;
  .toolbar&lt;br /&gt;
&lt;br /&gt;
 /**includes\joomla  .php**/&lt;br /&gt;
  .profiler&lt;br /&gt;
  .item&lt;br /&gt;
  .small&lt;br /&gt;
  .back_button&lt;br /&gt;
  .buttonheading&lt;br /&gt;
  .tab-page&lt;br /&gt;
  .tab&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**includes\joomla  .xml  .php**/&lt;br /&gt;
  .paramlist&lt;br /&gt;
  .editlinktip&lt;br /&gt;
  .text_area&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**includes\pageNavigation  .php**/&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .pagenav&lt;br /&gt;
&lt;br /&gt;
 /**includes\pathway  .php**/&lt;br /&gt;
  .pathway&lt;br /&gt;
&lt;br /&gt;
 /**includes\js\dtree\dtree  .js**/&lt;br /&gt;
  .dtree&lt;br /&gt;
  .dTreeNode&lt;br /&gt;
  .node&lt;br /&gt;
  .clip&lt;br /&gt;
&lt;br /&gt;
 /**includes\patTemplate\tmpl\forms  .html**/&lt;br /&gt;
  .message&lt;br /&gt;
  .tooltip&lt;br /&gt;
  .tab-page&lt;br /&gt;
  .tab&lt;br /&gt;
  .expander&lt;br /&gt;
&lt;br /&gt;
 /**mambots\content\mosimage  .php**/&lt;br /&gt;
  .mosimage_caption&lt;br /&gt;
  .mosimage&lt;br /&gt;
&lt;br /&gt;
 /**mambots\content\mospaging  .php**/&lt;br /&gt;
  .pagenavcounter&lt;br /&gt;
  .pagenavbar&lt;br /&gt;
  .contenttoc&lt;br /&gt;
  .toclink&lt;br /&gt;
&lt;br /&gt;
 /**mambots\content\mosvote  .php**/&lt;br /&gt;
  .content_rating&lt;br /&gt;
  .content_vote&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_latestnews  .php**/&lt;br /&gt;
  .latestnews&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_login  .php**/&lt;br /&gt;
  .button&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_mostread  .php**/&lt;br /&gt;
  .mostread&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_mostread  .php**/&lt;br /&gt;
  .poll&lt;br /&gt;
  .pollstableborder&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_mostread  .php**/&lt;br /&gt;
  .syndicate&lt;br /&gt;
  .syndicate_text&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_search  .php**/&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
  .search&lt;br /&gt;
&lt;br /&gt;
Provided by Compass:&lt;br /&gt;
&lt;br /&gt;
 #active_menu&lt;br /&gt;
 #blockrandom&lt;br /&gt;
 #contact_email_copy&lt;br /&gt;
 #contact_text&lt;br /&gt;
 #emailForm&lt;br /&gt;
 #mod_login_password&lt;br /&gt;
 #mod_login_remember&lt;br /&gt;
 #mod_login_username&lt;br /&gt;
 #poll&lt;br /&gt;
 #search_ordering&lt;br /&gt;
 #search_searchword&lt;br /&gt;
 #searchphraseall&lt;br /&gt;
 #searchphraseany&lt;br /&gt;
 #searchphraseexact&lt;br /&gt;
 #voteid1, #voteid2&lt;br /&gt;
  .adminform&lt;br /&gt;
  .article_seperator&lt;br /&gt;
  .back_button&lt;br /&gt;
  .blog&lt;br /&gt;
  .blog_more&lt;br /&gt;
  .blogsection&lt;br /&gt;
  .button&lt;br /&gt;
  .buttonheading&lt;br /&gt;
  .category&lt;br /&gt;
  .clr&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contact_email&lt;br /&gt;
  .content_rating&lt;br /&gt;
  .content_vote&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .contentheading&lt;br /&gt;
  .contentpagetitle&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentpaneopen&lt;br /&gt;
  .contenttoc&lt;br /&gt;
  .createdate&lt;br /&gt;
  .fase4rdf&lt;br /&gt;
  .footer&lt;br /&gt;
  .frontpageheader&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .latestnews&lt;br /&gt;
  .mainlevel&lt;br /&gt;
  .message&lt;br /&gt;
  .modifydate&lt;br /&gt;
  .module&lt;br /&gt;
  .moduletable&lt;br /&gt;
  .mostread&lt;br /&gt;
  .newsfeed&lt;br /&gt;
  .newsfeeddate&lt;br /&gt;
  .newsfeedheading&lt;br /&gt;
  .pagenav&lt;br /&gt;
  .pagenav_next&lt;br /&gt;
  .pagenav_prev&lt;br /&gt;
  .pagenavbar&lt;br /&gt;
  .pagenavcounter&lt;br /&gt;
  .pathway&lt;br /&gt;
  .polls&lt;br /&gt;
  .pollsborder&lt;br /&gt;
  .pollstableborder&lt;br /&gt;
  .readon&lt;br /&gt;
  .readon:hover&lt;br /&gt;
  .search&lt;br /&gt;
  .searchintro&lt;br /&gt;
  .sectionentry1&lt;br /&gt;
  .sectionentry2&lt;br /&gt;
  .sectionheader&lt;br /&gt;
  .sitetitle&lt;br /&gt;
  .small&lt;br /&gt;
  .smalldark&lt;br /&gt;
  .sublevel&lt;br /&gt;
  .syndicate&lt;br /&gt;
  .syndicate_text&lt;br /&gt;
  .text_area&lt;br /&gt;
  .toclink&lt;br /&gt;
  .weblinks&lt;br /&gt;
  .wrapper&lt;br /&gt;
&lt;br /&gt;
===What are module switches?  (or -1 -2 and -3) ===&lt;br /&gt;
This is how you apply the switches:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;nowiki&amp;gt;switch: -1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
: Strips all surrounding code from the module.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;, -1 ); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The html code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;user1_inner&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot;    &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 2&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot;  &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 1&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  Example News Item 4&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=7&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;       &lt;br /&gt;
  Example News Item 2&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;nowiki&amp;gt;switch: -2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
: Puts the module&#039;s title in an h3, and wraps the entire thing in a&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;, -2 ); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The html code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;moduletable&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;h3&amp;gt;Latest News&amp;lt;/h3&amp;gt;&lt;br /&gt;
 &amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot;  &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 2&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=6&amp;amp;Itemid=2&amp;quot;&lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Example News Item 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Example News Item 4&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
 &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;switch: -3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Puts the module&#039;s title in an h3, and adds several layers of divs that can be used to apply [[CSS]] techniques with [[Rounded corners|rounded corners]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;, -3 ); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;module&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div&amp;gt;&lt;br /&gt;
 &amp;lt;div&amp;gt;&lt;br /&gt;
 &amp;lt;div&amp;gt;&lt;br /&gt;
 &amp;lt;h3&amp;gt;Latest News&amp;lt;/h3&amp;gt;&lt;br /&gt;
 &amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot;      &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   Newsflash 2 &amp;lt;/a&amp;gt; &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=6&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   Example News Item 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   Example News Item 4&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
 &amp;lt;/ul&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there is no switch at all:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;table class=&amp;quot;moduletable&amp;quot; border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;tbody&amp;gt;&lt;br /&gt;
     &amp;lt;tr&amp;gt;&lt;br /&gt;
       &amp;lt;th valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
      Latest News&lt;br /&gt;
       &amp;lt;/th&amp;gt;&lt;br /&gt;
     &amp;lt;/tr&amp;gt;&lt;br /&gt;
     &amp;lt;tr&amp;gt;&lt;br /&gt;
       &amp;lt;td&amp;gt;&lt;br /&gt;
       &amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         Newsflash 1 &lt;br /&gt;
         &amp;lt;/a&amp;gt; &lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 2&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=6&amp;amp;Itemid=2&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         Example News Item 1&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         Example News Item 4&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;/ul&amp;gt;&lt;br /&gt;
       &amp;lt;/td&amp;gt;&lt;br /&gt;
     &amp;lt;/tr&amp;gt;&lt;br /&gt;
   &amp;lt;/tbody&amp;gt;&lt;br /&gt;
 &amp;lt;/table&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Joomla! 1.5 each switch has a style associated with it.&lt;br /&gt;
&lt;br /&gt;
		switch -3:    $style = &#039;rounded&#039;;&lt;br /&gt;
                switch -2:  $style = &#039;xhtml&lt;br /&gt;
                switch  -1:  $stylle = &#039;raw&#039;;&lt;br /&gt;
		switch   0 :$style = &#039;table&#039;;&lt;br /&gt;
&lt;br /&gt;
===How do I add a position to a template?===&lt;br /&gt;
To create a &amp;quot;new&amp;quot; position chose one of the names from the list of positions shown in&lt;br /&gt;
Site&amp;gt;[[Template Manager]]&amp;gt;Module Positions&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
In your template add&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;?php mosLoadModules (&#039;position_name&#039;); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will want to surround it with appropriate html so that it appears where you want it to and with the formatting you want.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
===How do I change the image(s) in my template?===&lt;br /&gt;
One common [[Template|template]] change is to use your own graphic/image. Simple graphics (not [[Banner|banners]]) are linked in the [[HTML]] file. Simply change the reference to the image of your choice in the HTML file of your template.  Do this by, in the [[Back-end|adminsitrative interface]], going to Site&amp;gt;&amp;gt;[[Template Manager]] and then selecting your template. Click the icon for html.&lt;br /&gt;
&lt;br /&gt;
Keep in mind that if it is a different size than the original image this may change the appearance of the site in unexpected ways.&lt;br /&gt;
&lt;br /&gt;
The images for a given template are generally located in this folder:&lt;br /&gt;
 /templates/&#039;&#039;templatename&#039;&#039;/images &lt;br /&gt;
(where you substitute the name of the template you are using.)&lt;br /&gt;
&lt;br /&gt;
===How do I collapse an empty position in a template?===&lt;br /&gt;
Very often the question is asked on how to collapse a position in any template. Note collapse here means &amp;quot;not show&amp;quot; if no modules are published to these columns.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
Here is a method on how to do this as an example with the tremendous popular [[rhuk_solarflare]] template:&lt;br /&gt;
&lt;br /&gt;
open &amp;lt;tt&amp;gt;../templates/rhuk_solarflare_ii/index.php&amp;lt;/tt&amp;gt; and find and replace this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div id=&amp;quot;left_outer&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div id=&amp;quot;left_inner&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;?php mosLoadModules ( &#039;left&#039;, -2 ); ?&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div id=&amp;quot;content_outer&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
with this :&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;?php&lt;br /&gt;
      if ( !(mosCountModules( &#039;left&#039; )) ) {&lt;br /&gt;
    ?&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;content_outer2&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;?&lt;br /&gt;
     }&lt;br /&gt;
     else {&lt;br /&gt;
     ?&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;left_outer&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div id=&amp;quot;left_inner&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;?php mosLoadModules ( &#039;left&#039;, -2 ); ?&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;content_outer&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;?&lt;br /&gt;
     }&lt;br /&gt;
    ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
and save the file.&lt;br /&gt;
&lt;br /&gt;
Then open &amp;lt;tt&amp;gt;../templates/rhuk_solarflare_ii/css/template_css.css&amp;lt;/tt&amp;gt; file and add:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
 #content_outer2 {&lt;br /&gt;
    padding: 0px;&lt;br /&gt;
    margin-top: 0px;&lt;br /&gt;
    margin-left: 0px;&lt;br /&gt;
    /** border: 1px solid #cccccc; **/&lt;br /&gt;
    float: left;&lt;br /&gt;
    width: 800px;&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and your left column now will collapse when you don&#039;t publish anything to it!&lt;br /&gt;
&lt;br /&gt;
This method you can multiply to any template if you try to follow the logic of the code!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
===CSS Text/Font Resizing (A+ A-) on Joomla Template===&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
I recognize that there are some of you who are sort of scratching your heads wondering how to get from where your site is now to where joomla.org&#039;s is. So for those of you wanting it laid out all the way, here&#039;s a more detailed instruction set that summarizes and extends what has already been said through the course of this thread:&lt;br /&gt;
&lt;br /&gt;
*Step 1 - download joomla.org&#039;s font style switcher file ([http://demo.joomla.org/1.5/templates/beez/javascript/md_stylechanger.js md_stylechanger.js])&lt;br /&gt;
*Step 2 - put that file somewhere in the folder of the template you are using&lt;br /&gt;
*Step 3 - put A+, A-, and Reset images in your template&#039;s image folder&lt;br /&gt;
*Step 4 - paste the following code snippet somewhere in your template&#039;s index.php file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- PLEASE! avoid extra-wide lines that may cause scrollbars in common screen-sizes &lt;br /&gt;
     and wrap ~ 80 chars / attribute level for better readability --&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
// shortcut of template URL used in src attributes&lt;br /&gt;
$template_url = $mosConfig_live_site .&#039;/templates/&#039;. $mainframe-&amp;gt;getTemplate(); &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; language=&amp;quot;javascript&amp;quot; &lt;br /&gt;
       src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/____1____&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;index.php&amp;quot; title=&amp;quot;Increase size&amp;quot; onclick=&amp;quot;changeFontSize(1);return false;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;img src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/images/____2____&amp;quot; alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;index.php&amp;quot; title=&amp;quot;Decrease size&amp;quot; onclick=&amp;quot;changeFontSize(-1);return false;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;img src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/images/____3____&amp;quot; alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;index.php&amp;quot; title=&amp;quot;Revert styles to default&amp;quot; onclick=&amp;quot;revertStyles(); return false;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;img src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/images/____4____&amp;quot; alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Step 5: Do all of the following:&lt;br /&gt;
*# Replace ____1____ with the location in your template folder where you saved the .js file&lt;br /&gt;
*# Replace ____2____ with the name of your A+ image&lt;br /&gt;
*# Replace ____3____ with the name of your A- image&lt;br /&gt;
*# Replace ____4____ with the name of your Reset image&lt;br /&gt;
&lt;br /&gt;
*Step 6: Do one of the following:&lt;br /&gt;
** Bask in the awesomeness that is session font resizing&lt;br /&gt;
** Start figuring out why the buttons do nothing (either because your site doesn&#039;t use style classes, or because I messed up somewhere)&lt;br /&gt;
&lt;br /&gt;
===Can I remove the &amp;quot;Powered by Joomla!&amp;quot; message?===&lt;br /&gt;
&lt;br /&gt;
Yes. You may remove that message, which is in &amp;lt;tt&amp;gt;footer.php&amp;lt;/tt&amp;gt;. You may however &#039;&#039;&#039;not&#039;&#039;&#039; remove copyright and license information from the source code.&lt;br /&gt;
&lt;br /&gt;
===How do I make it so my modules are laid out horizontally?===&lt;br /&gt;
&lt;br /&gt;
See [[Administration_FAQs#How_do_I_control_whether_modules_are_vertically_or_horizontally_arranged.3F | How do I control whether modules are vertically or horizontally arranged?]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>Timj</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5:Template_FAQs&amp;diff=64245</id>
		<title>J1.5:Template FAQs</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5:Template_FAQs&amp;diff=64245"/>
		<updated>2012-01-03T22:53:03Z</updated>

		<summary type="html">&lt;p&gt;Timj: /* What are module switches?  (or -1 -2 and -3) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{review}}&lt;br /&gt;
&lt;br /&gt;
===What is a template?===&lt;br /&gt;
&lt;br /&gt;
The [[Template]] controls the overall look and layout of your site. It provides the framework that brings together common elements, [[Modules|modules]] and [[Components|components]] as well as providing the [[CSS|cascading style sheet]] for your site. Both the [[Front-end]] (Site) and the [[Back-end]] (Administrator) of your site have templates.&lt;br /&gt;
&lt;br /&gt;
When Joomla! is installed several templates are automatically included. You can find many more templates at other websites. Some are available without charge under various licenses, and some are for sale. In addition, there are many designers available who can make custom templates. You can also [[Joomla! 1.5 Template Tutorials Project|make your own template]].&lt;br /&gt;
&lt;br /&gt;
Templates are managed with the [[Template Manager]], which is located on the site menu on the Back-end of your site.&lt;br /&gt;
&lt;br /&gt;
The following may be helpful in understanding templates:&lt;br /&gt;
* http://help.joomla.org/content/view/474/153/&lt;br /&gt;
&lt;br /&gt;
===How do I install a new template?===&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]]  of the site, go to Installers&amp;gt;&amp;gt;Templates-Site (or Templates-Administrator if you are installing an administrator template).&lt;br /&gt;
&lt;br /&gt;
[[Image:Installing_templates.JPG]]&lt;br /&gt;
&lt;br /&gt;
Browse for the template zip file and click &#039;&#039;Upload File&#039;&#039; and &#039;&#039;Install&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Uploading_templates.JPG ]]&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can install from a directory.&lt;br /&gt;
&lt;br /&gt;
To make the new template the default template for your site, go to the [[Template Manager]] (Site&amp;gt;&amp;gt;Template Manager&amp;gt;&amp;gt;Site Templates).&lt;br /&gt;
You should see the name of your new template on the list of templates.&lt;br /&gt;
&lt;br /&gt;
Select it and click on the default icon if you want it to be the default icon for your site.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]] of the site, go to [[Extension]]s&amp;gt;&amp;gt;[[Installing_an_extension|Install/Uninstall]].&lt;br /&gt;
&lt;br /&gt;
[[Image:Extension_install_1_5.png]]&lt;br /&gt;
&lt;br /&gt;
Browse for the template zip file and click Upload File and Install.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can install from a directory or URL.&lt;br /&gt;
&lt;br /&gt;
To make the new template the default template for your site, select it and click the default icon (star).&lt;br /&gt;
&lt;br /&gt;
===How do I modify a template?===&lt;br /&gt;
Templates are just a series of xml, php, html and image files that are stored in the templates directory of your site.&lt;br /&gt;
You can edit these files or you can use the editing interface available in the [[Template Manager]].&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]], select Site&amp;gt;&amp;gt;Template Manager&amp;gt;&amp;gt;Site Templates.&lt;br /&gt;
&lt;br /&gt;
Select the template you wish to modify.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]], select Site&amp;gt;&amp;gt;[[Extension]]s&amp;gt;&amp;gt;Templates.&lt;br /&gt;
Select the template you wish to modify.&lt;br /&gt;
Click the edit icon.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}} and {{JVer|1.05}}&lt;br /&gt;
You are given the choice of editing &amp;quot;html&amp;quot; and &amp;quot;css.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
[[CSS]] stands for cascading style sheets. This controls many elements of the look and feel of your site.&lt;br /&gt;
[[HTML]] is the file that controls where positions are defined and positioned. Other than that, it should be noted that, with a few exceptions, what is in the .css and what is in the HTML files largely depends on the approach of the tempate designer.&lt;br /&gt;
&lt;br /&gt;
One common change is to use your own graphic/image. Graphics are linked to in the HTML file. Simply change the reference to the image of your choice. Keep in mind that it if it is a different size than the original image this may change the appearance of the site in unexpected ways.&lt;br /&gt;
&lt;br /&gt;
===How do I assign a template to a specific page?===&lt;br /&gt;
&lt;br /&gt;
In Joomla! there is a default template, but you can assign other templates to specific &amp;quot;pages&amp;quot; that are defined by menu links.&lt;br /&gt;
&lt;br /&gt;
To assign a template to a page, you must first make sure that there is a direct menu link to the page.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
* Go to Site&amp;gt;&amp;gt;[[Template Manager]]&amp;gt;&amp;gt;Site Templates&lt;br /&gt;
* Select the template you wish to assign.&lt;br /&gt;
* Click on the assign icon.&lt;br /&gt;
* On the right, there will be a list with all of the possible pages the template can be assigned to. Select one or more pages and save.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
* Go to [[Extension]]s&amp;gt;&amp;gt;[[Template Manager]]&lt;br /&gt;
* Select the Template and click the edit icon (or click the template name)&lt;br /&gt;
* In the left column, change &amp;quot;None&amp;quot; to &amp;quot;Select from List.&amp;quot;&lt;br /&gt;
* Select the links you want to apply the template to.&lt;br /&gt;
* Save&lt;br /&gt;
&lt;br /&gt;
Note that you cannot assign the default template to individual pages.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Understanding&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The templating system uses the [[ItemID]] to determine which template to show. ItemIDs are created when you create a menu link. This is why only menu items are shown in the list of pages to which you can assign templates.&lt;br /&gt;
&lt;br /&gt;
===What are the base Joomla! CSS styles?===&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
Provided by Haaris&lt;br /&gt;
&lt;br /&gt;
 /**com_contact**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .category&lt;br /&gt;
  .small&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentheading&lt;br /&gt;
  .contact_email&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**com_content**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .sectiontableentry1&lt;br /&gt;
  .sectiontableentry2&lt;br /&gt;
  .sectiontablefooter&lt;br /&gt;
  .blogsection&lt;br /&gt;
  .contentpaneopen&lt;br /&gt;
  .article_seperator&lt;br /&gt;
  .contentheading&lt;br /&gt;
  .contentpagetitle&lt;br /&gt;
  .buttonheading&lt;br /&gt;
  .small&lt;br /&gt;
  .createdate&lt;br /&gt;
  .modifydate&lt;br /&gt;
  .readon&lt;br /&gt;
  .pagenav_prev&lt;br /&gt;
  .pagenav_next&lt;br /&gt;
  .adminform&lt;br /&gt;
  .button&lt;br /&gt;
  .text_area&lt;br /&gt;
  .blog&lt;br /&gt;
  .blog_more&lt;br /&gt;
&lt;br /&gt;
 /**com_login**/&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**com_newsfeeds**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .category&lt;br /&gt;
  .small&lt;br /&gt;
  .contentheading&lt;br /&gt;
&lt;br /&gt;
 /**com_poll**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .pollstableborder&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .smalldark&lt;br /&gt;
  .button&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**com_registration**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**com_search**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpaneopen&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
  .searchintro&lt;br /&gt;
  .small&lt;br /&gt;
  .highlight&lt;br /&gt;
&lt;br /&gt;
 /**com_user**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
  .row1&lt;br /&gt;
  .row2&lt;br /&gt;
&lt;br /&gt;
 /**com_weblinks**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .tabclass1&lt;br /&gt;
  .tabclass2&lt;br /&gt;
  .small&lt;br /&gt;
  .category&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**com_wrapper**/&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .wrapper&lt;br /&gt;
&lt;br /&gt;
 /**includes/frontend**/&lt;br /&gt;
  .moduletable&lt;br /&gt;
  .newsfeed&lt;br /&gt;
  .module&lt;br /&gt;
  .message&lt;br /&gt;
&lt;br /&gt;
 /**includes\HTML_toolbar  .php**/&lt;br /&gt;
  .toolbar&lt;br /&gt;
&lt;br /&gt;
 /**includes\joomla  .php**/&lt;br /&gt;
  .profiler&lt;br /&gt;
  .item&lt;br /&gt;
  .small&lt;br /&gt;
  .back_button&lt;br /&gt;
  .buttonheading&lt;br /&gt;
  .tab-page&lt;br /&gt;
  .tab&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**includes\joomla  .xml  .php**/&lt;br /&gt;
  .paramlist&lt;br /&gt;
  .editlinktip&lt;br /&gt;
  .text_area&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**includes\pageNavigation  .php**/&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .pagenav&lt;br /&gt;
&lt;br /&gt;
 /**includes\pathway  .php**/&lt;br /&gt;
  .pathway&lt;br /&gt;
&lt;br /&gt;
 /**includes\js\dtree\dtree  .js**/&lt;br /&gt;
  .dtree&lt;br /&gt;
  .dTreeNode&lt;br /&gt;
  .node&lt;br /&gt;
  .clip&lt;br /&gt;
&lt;br /&gt;
 /**includes\patTemplate\tmpl\forms  .html**/&lt;br /&gt;
  .message&lt;br /&gt;
  .tooltip&lt;br /&gt;
  .tab-page&lt;br /&gt;
  .tab&lt;br /&gt;
  .expander&lt;br /&gt;
&lt;br /&gt;
 /**mambots\content\mosimage  .php**/&lt;br /&gt;
  .mosimage_caption&lt;br /&gt;
  .mosimage&lt;br /&gt;
&lt;br /&gt;
 /**mambots\content\mospaging  .php**/&lt;br /&gt;
  .pagenavcounter&lt;br /&gt;
  .pagenavbar&lt;br /&gt;
  .contenttoc&lt;br /&gt;
  .toclink&lt;br /&gt;
&lt;br /&gt;
 /**mambots\content\mosvote  .php**/&lt;br /&gt;
  .content_rating&lt;br /&gt;
  .content_vote&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_latestnews  .php**/&lt;br /&gt;
  .latestnews&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_login  .php**/&lt;br /&gt;
  .button&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_mostread  .php**/&lt;br /&gt;
  .mostread&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_mostread  .php**/&lt;br /&gt;
  .poll&lt;br /&gt;
  .pollstableborder&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_mostread  .php**/&lt;br /&gt;
  .syndicate&lt;br /&gt;
  .syndicate_text&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_search  .php**/&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
  .search&lt;br /&gt;
&lt;br /&gt;
Provided by Compass:&lt;br /&gt;
&lt;br /&gt;
 #active_menu&lt;br /&gt;
 #blockrandom&lt;br /&gt;
 #contact_email_copy&lt;br /&gt;
 #contact_text&lt;br /&gt;
 #emailForm&lt;br /&gt;
 #mod_login_password&lt;br /&gt;
 #mod_login_remember&lt;br /&gt;
 #mod_login_username&lt;br /&gt;
 #poll&lt;br /&gt;
 #search_ordering&lt;br /&gt;
 #search_searchword&lt;br /&gt;
 #searchphraseall&lt;br /&gt;
 #searchphraseany&lt;br /&gt;
 #searchphraseexact&lt;br /&gt;
 #voteid1, #voteid2&lt;br /&gt;
  .adminform&lt;br /&gt;
  .article_seperator&lt;br /&gt;
  .back_button&lt;br /&gt;
  .blog&lt;br /&gt;
  .blog_more&lt;br /&gt;
  .blogsection&lt;br /&gt;
  .button&lt;br /&gt;
  .buttonheading&lt;br /&gt;
  .category&lt;br /&gt;
  .clr&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contact_email&lt;br /&gt;
  .content_rating&lt;br /&gt;
  .content_vote&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .contentheading&lt;br /&gt;
  .contentpagetitle&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentpaneopen&lt;br /&gt;
  .contenttoc&lt;br /&gt;
  .createdate&lt;br /&gt;
  .fase4rdf&lt;br /&gt;
  .footer&lt;br /&gt;
  .frontpageheader&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .latestnews&lt;br /&gt;
  .mainlevel&lt;br /&gt;
  .message&lt;br /&gt;
  .modifydate&lt;br /&gt;
  .module&lt;br /&gt;
  .moduletable&lt;br /&gt;
  .mostread&lt;br /&gt;
  .newsfeed&lt;br /&gt;
  .newsfeeddate&lt;br /&gt;
  .newsfeedheading&lt;br /&gt;
  .pagenav&lt;br /&gt;
  .pagenav_next&lt;br /&gt;
  .pagenav_prev&lt;br /&gt;
  .pagenavbar&lt;br /&gt;
  .pagenavcounter&lt;br /&gt;
  .pathway&lt;br /&gt;
  .polls&lt;br /&gt;
  .pollsborder&lt;br /&gt;
  .pollstableborder&lt;br /&gt;
  .readon&lt;br /&gt;
  .readon:hover&lt;br /&gt;
  .search&lt;br /&gt;
  .searchintro&lt;br /&gt;
  .sectionentry1&lt;br /&gt;
  .sectionentry2&lt;br /&gt;
  .sectionheader&lt;br /&gt;
  .sitetitle&lt;br /&gt;
  .small&lt;br /&gt;
  .smalldark&lt;br /&gt;
  .sublevel&lt;br /&gt;
  .syndicate&lt;br /&gt;
  .syndicate_text&lt;br /&gt;
  .text_area&lt;br /&gt;
  .toclink&lt;br /&gt;
  .weblinks&lt;br /&gt;
  .wrapper&lt;br /&gt;
&lt;br /&gt;
===What are module switches?  (or -1 -2 and -3) ===&lt;br /&gt;
This is how you apply the switches:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;nowiki&amp;gt;switch: -1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
: Strips all surrounding code from the module.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;, -1 ); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The html code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;user1_inner&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot;    &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 2&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot;  &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 1&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  Example News Item 4&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=7&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;       &lt;br /&gt;
  Example News Item 2&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;nowiki&amp;gt;switch: -2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
: Puts the module&#039;s title in an h3, and wraps the entire thing in a&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;, -2 ); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The html code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;moduletable&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;h3&amp;gt;Latest News&amp;lt;/h3&amp;gt;&lt;br /&gt;
 &amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot;  &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 2&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=6&amp;amp;Itemid=2&amp;quot;&lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Example News Item 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Example News Item 4&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
 &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;switch: -3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Puts the module&#039;s title in an h3, and adds several layers of divs that can be used to apply [[CSS]] techniques with [[Rounded corners|rounded corners]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;, -3 ); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;module&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div&amp;gt;&lt;br /&gt;
 &amp;lt;div&amp;gt;&lt;br /&gt;
 &amp;lt;div&amp;gt;&lt;br /&gt;
 &amp;lt;h3&amp;gt;Latest News&amp;lt;/h3&amp;gt;&lt;br /&gt;
 &amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot;      &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   Newsflash 2 &amp;lt;/a&amp;gt; &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=6&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   Example News Item 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   Example News Item 4&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
 &amp;lt;/ul&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there is no switch at all:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;table class=&amp;quot;moduletable&amp;quot; border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;tbody&amp;gt;&lt;br /&gt;
     &amp;lt;tr&amp;gt;&lt;br /&gt;
       &amp;lt;th valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
      Latest News&lt;br /&gt;
       &amp;lt;/th&amp;gt;&lt;br /&gt;
     &amp;lt;/tr&amp;gt;&lt;br /&gt;
     &amp;lt;tr&amp;gt;&lt;br /&gt;
       &amp;lt;td&amp;gt;&lt;br /&gt;
       &amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         Newsflash 1 &lt;br /&gt;
         &amp;lt;/a&amp;gt; &lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 2&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=6&amp;amp;Itemid=2&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         Example News Item 1&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         Example News Item 4&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;/ul&amp;gt;&lt;br /&gt;
       &amp;lt;/td&amp;gt;&lt;br /&gt;
     &amp;lt;/tr&amp;gt;&lt;br /&gt;
   &amp;lt;/tbody&amp;gt;&lt;br /&gt;
 &amp;lt;/table&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Joomla! 1.5 each switch has a style associated with it.&lt;br /&gt;
&lt;br /&gt;
		switch -3:    $style = &#039;rounded&#039;;&lt;br /&gt;
                switch -2:  $style = &#039;xhtml&lt;br /&gt;
                switch  -1:  $stylle = &#039;raw&#039;;&lt;br /&gt;
		switch   0 :$style = &#039;table&#039;;&lt;br /&gt;
&lt;br /&gt;
===How do I add a position to a template?===&lt;br /&gt;
To create a &amp;quot;new&amp;quot; position chose one of the names from the list of positions shown in&lt;br /&gt;
Site&amp;gt;[[Template Manager]]&amp;gt;Module Positions&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
In your template add&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;?php mosLoadModules (&#039;position_name&#039;); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will want to surround it with approprate html so that it appears where you want it to and with the formatting you want.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
===How do I change the image(s) in my template?===&lt;br /&gt;
One common [[Template|template]] change is to use your own graphic/image. Simple graphics (not [[Banner|banners]]) are linked in the [[HTML]] file. Simply change the reference to the image of your choice in the HTML file of your template.  Do this by, in the [[Back-end|adminsitrative interface]], going to Site&amp;gt;&amp;gt;[[Template Manager]] and then selecting your template. Click the icon for html.&lt;br /&gt;
&lt;br /&gt;
Keep in mind that if it is a different size than the original image this may change the appearance of the site in unexpected ways.&lt;br /&gt;
&lt;br /&gt;
The images for a given template are generally located in this folder:&lt;br /&gt;
 /templates/&#039;&#039;templatename&#039;&#039;/images &lt;br /&gt;
(where you substitute the name of the template you are using.)&lt;br /&gt;
&lt;br /&gt;
===How do I collapse an empty position in a template?===&lt;br /&gt;
Very often the question is asked on how to collapse a position in any template. Note collapse here means &amp;quot;not show&amp;quot; if no modules are published to these columns.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
Here is a method on how to do this as an example with the tremendous popular [[rhuk_solarflare]] template:&lt;br /&gt;
&lt;br /&gt;
open &amp;lt;tt&amp;gt;../templates/rhuk_solarflare_ii/index.php&amp;lt;/tt&amp;gt; and find and replace this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div id=&amp;quot;left_outer&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div id=&amp;quot;left_inner&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;?php mosLoadModules ( &#039;left&#039;, -2 ); ?&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div id=&amp;quot;content_outer&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
with this :&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;?php&lt;br /&gt;
      if ( !(mosCountModules( &#039;left&#039; )) ) {&lt;br /&gt;
    ?&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;content_outer2&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;?&lt;br /&gt;
     }&lt;br /&gt;
     else {&lt;br /&gt;
     ?&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;left_outer&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div id=&amp;quot;left_inner&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;?php mosLoadModules ( &#039;left&#039;, -2 ); ?&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;content_outer&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;?&lt;br /&gt;
     }&lt;br /&gt;
    ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
and save the file.&lt;br /&gt;
&lt;br /&gt;
Then open &amp;lt;tt&amp;gt;../templates/rhuk_solarflare_ii/css/template_css.css&amp;lt;/tt&amp;gt; file and add:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
 #content_outer2 {&lt;br /&gt;
    padding: 0px;&lt;br /&gt;
    margin-top: 0px;&lt;br /&gt;
    margin-left: 0px;&lt;br /&gt;
    /** border: 1px solid #cccccc; **/&lt;br /&gt;
    float: left;&lt;br /&gt;
    width: 800px;&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and your left column now will collapse when you don&#039;t publish anything to it!&lt;br /&gt;
&lt;br /&gt;
This method you can multiply to any template if you try to follow the logic of the code!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
===CSS Text/Font Resizing (A+ A-) on Joomla Template===&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
I recognize that there are some of you who are sort of scratching your heads wondering how to get from where your site is now to where joomla.org&#039;s is. So for those of you wanting it laid out all the way, here&#039;s a more detailed instruction set that summarizes and extends what has already been said through the course of this thread:&lt;br /&gt;
&lt;br /&gt;
*Step 1 - download joomla.org&#039;s font style switcher file ([http://demo.joomla.org/1.5/templates/beez/javascript/md_stylechanger.js md_stylechanger.js])&lt;br /&gt;
*Step 2 - put that file somewhere in the folder of the template you are using&lt;br /&gt;
*Step 3 - put A+, A-, and Reset images in your template&#039;s image folder&lt;br /&gt;
*Step 4 - paste the following code snippet somewhere in your template&#039;s index.php file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- PLEASE! avoid extra-wide lines that may cause scrollbars in common screen-sizes &lt;br /&gt;
     and wrap ~ 80 chars / attribute level for better readability --&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
// shortcut of template URL used in src attributes&lt;br /&gt;
$template_url = $mosConfig_live_site .&#039;/templates/&#039;. $mainframe-&amp;gt;getTemplate(); &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; language=&amp;quot;javascript&amp;quot; &lt;br /&gt;
       src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/____1____&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;index.php&amp;quot; title=&amp;quot;Increase size&amp;quot; onclick=&amp;quot;changeFontSize(1);return false;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;img src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/images/____2____&amp;quot; alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;index.php&amp;quot; title=&amp;quot;Decrease size&amp;quot; onclick=&amp;quot;changeFontSize(-1);return false;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;img src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/images/____3____&amp;quot; alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;index.php&amp;quot; title=&amp;quot;Revert styles to default&amp;quot; onclick=&amp;quot;revertStyles(); return false;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;img src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/images/____4____&amp;quot; alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Step 5: Do all of the following:&lt;br /&gt;
*# Replace ____1____ with the location in your template folder where you saved the .js file&lt;br /&gt;
*# Replace ____2____ with the name of your A+ image&lt;br /&gt;
*# Replace ____3____ with the name of your A- image&lt;br /&gt;
*# Replace ____4____ with the name of your Reset image&lt;br /&gt;
&lt;br /&gt;
*Step 6: Do one of the following:&lt;br /&gt;
** Bask in the awesomeness that is session font resizing&lt;br /&gt;
** Start figuring out why the buttons do nothing (either because your site doesn&#039;t use style classes, or because I messed up somewhere)&lt;br /&gt;
&lt;br /&gt;
===Can I remove the &amp;quot;Powered by Joomla!&amp;quot; message?===&lt;br /&gt;
&lt;br /&gt;
Yes. You may remove that message, which is in &amp;lt;tt&amp;gt;footer.php&amp;lt;/tt&amp;gt;. You may however &#039;&#039;&#039;not&#039;&#039;&#039; remove copyright and license information from the source code.&lt;br /&gt;
&lt;br /&gt;
===How do I make it so my modules are laid out horizontally?===&lt;br /&gt;
&lt;br /&gt;
See [[Administration_FAQs#How_do_I_control_whether_modules_are_vertically_or_horizontally_arranged.3F | How do I control whether modules are vertically or horizontally arranged?]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>Timj</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5:Template_FAQs&amp;diff=64244</id>
		<title>J1.5:Template FAQs</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5:Template_FAQs&amp;diff=64244"/>
		<updated>2012-01-03T22:51:37Z</updated>

		<summary type="html">&lt;p&gt;Timj: /* What are module switches?  (or -1 -2 and -3) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{review}}&lt;br /&gt;
&lt;br /&gt;
===What is a template?===&lt;br /&gt;
&lt;br /&gt;
The [[Template]] controls the overall look and layout of your site. It provides the framework that brings together common elements, [[Modules|modules]] and [[Components|components]] as well as providing the [[CSS|cascading style sheet]] for your site. Both the [[Front-end]] (Site) and the [[Back-end]] (Administrator) of your site have templates.&lt;br /&gt;
&lt;br /&gt;
When Joomla! is installed several templates are automatically included. You can find many more templates at other websites. Some are available without charge under various licenses, and some are for sale. In addition, there are many designers available who can make custom templates. You can also [[Joomla! 1.5 Template Tutorials Project|make your own template]].&lt;br /&gt;
&lt;br /&gt;
Templates are managed with the [[Template Manager]], which is located on the site menu on the Back-end of your site.&lt;br /&gt;
&lt;br /&gt;
The following may be helpful in understanding templates:&lt;br /&gt;
* http://help.joomla.org/content/view/474/153/&lt;br /&gt;
&lt;br /&gt;
===How do I install a new template?===&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]]  of the site, go to Installers&amp;gt;&amp;gt;Templates-Site (or Templates-Administrator if you are installing an administrator template).&lt;br /&gt;
&lt;br /&gt;
[[Image:Installing_templates.JPG]]&lt;br /&gt;
&lt;br /&gt;
Browse for the template zip file and click &#039;&#039;Upload File&#039;&#039; and &#039;&#039;Install&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Uploading_templates.JPG ]]&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can install from a directory.&lt;br /&gt;
&lt;br /&gt;
To make the new template the default template for your site, go to the [[Template Manager]] (Site&amp;gt;&amp;gt;Template Manager&amp;gt;&amp;gt;Site Templates).&lt;br /&gt;
You should see the name of your new template on the list of templates.&lt;br /&gt;
&lt;br /&gt;
Select it and click on the default icon if you want it to be the default icon for your site.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]] of the site, go to [[Extension]]s&amp;gt;&amp;gt;[[Installing_an_extension|Install/Uninstall]].&lt;br /&gt;
&lt;br /&gt;
[[Image:Extension_install_1_5.png]]&lt;br /&gt;
&lt;br /&gt;
Browse for the template zip file and click Upload File and Install.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can install from a directory or URL.&lt;br /&gt;
&lt;br /&gt;
To make the new template the default template for your site, select it and click the default icon (star).&lt;br /&gt;
&lt;br /&gt;
===How do I modify a template?===&lt;br /&gt;
Templates are just a series of xml, php, html and image files that are stored in the templates directory of your site.&lt;br /&gt;
You can edit these files or you can use the editing interface available in the [[Template Manager]].&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]], select Site&amp;gt;&amp;gt;Template Manager&amp;gt;&amp;gt;Site Templates.&lt;br /&gt;
&lt;br /&gt;
Select the template you wish to modify.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
In the [[Back-end]], select Site&amp;gt;&amp;gt;[[Extension]]s&amp;gt;&amp;gt;Templates.&lt;br /&gt;
Select the template you wish to modify.&lt;br /&gt;
Click the edit icon.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}} and {{JVer|1.05}}&lt;br /&gt;
You are given the choice of editing &amp;quot;html&amp;quot; and &amp;quot;css.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
[[CSS]] stands for cascading style sheets. This controls many elements of the look and feel of your site.&lt;br /&gt;
[[HTML]] is the file that controls where positions are defined and positioned. Other than that, it should be noted that, with a few exceptions, what is in the .css and what is in the HTML files largely depends on the approach of the tempate designer.&lt;br /&gt;
&lt;br /&gt;
One common change is to use your own graphic/image. Graphics are linked to in the HTML file. Simply change the reference to the image of your choice. Keep in mind that it if it is a different size than the original image this may change the appearance of the site in unexpected ways.&lt;br /&gt;
&lt;br /&gt;
===How do I assign a template to a specific page?===&lt;br /&gt;
&lt;br /&gt;
In Joomla! there is a default template, but you can assign other templates to specific &amp;quot;pages&amp;quot; that are defined by menu links.&lt;br /&gt;
&lt;br /&gt;
To assign a template to a page, you must first make sure that there is a direct menu link to the page.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
* Go to Site&amp;gt;&amp;gt;[[Template Manager]]&amp;gt;&amp;gt;Site Templates&lt;br /&gt;
* Select the template you wish to assign.&lt;br /&gt;
* Click on the assign icon.&lt;br /&gt;
* On the right, there will be a list with all of the possible pages the template can be assigned to. Select one or more pages and save.&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
* Go to [[Extension]]s&amp;gt;&amp;gt;[[Template Manager]]&lt;br /&gt;
* Select the Template and click the edit icon (or click the template name)&lt;br /&gt;
* In the left column, change &amp;quot;None&amp;quot; to &amp;quot;Select from List.&amp;quot;&lt;br /&gt;
* Select the links you want to apply the template to.&lt;br /&gt;
* Save&lt;br /&gt;
&lt;br /&gt;
Note that you cannot assign the default template to individual pages.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Understanding&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The templating system uses the [[ItemID]] to determine which template to show. ItemIDs are created when you create a menu link. This is why only menu items are shown in the list of pages to which you can assign templates.&lt;br /&gt;
&lt;br /&gt;
===What are the base Joomla! CSS styles?===&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
Provided by Haaris&lt;br /&gt;
&lt;br /&gt;
 /**com_contact**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .category&lt;br /&gt;
  .small&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentheading&lt;br /&gt;
  .contact_email&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**com_content**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .sectiontableentry1&lt;br /&gt;
  .sectiontableentry2&lt;br /&gt;
  .sectiontablefooter&lt;br /&gt;
  .blogsection&lt;br /&gt;
  .contentpaneopen&lt;br /&gt;
  .article_seperator&lt;br /&gt;
  .contentheading&lt;br /&gt;
  .contentpagetitle&lt;br /&gt;
  .buttonheading&lt;br /&gt;
  .small&lt;br /&gt;
  .createdate&lt;br /&gt;
  .modifydate&lt;br /&gt;
  .readon&lt;br /&gt;
  .pagenav_prev&lt;br /&gt;
  .pagenav_next&lt;br /&gt;
  .adminform&lt;br /&gt;
  .button&lt;br /&gt;
  .text_area&lt;br /&gt;
  .blog&lt;br /&gt;
  .blog_more&lt;br /&gt;
&lt;br /&gt;
 /**com_login**/&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**com_newsfeeds**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .category&lt;br /&gt;
  .small&lt;br /&gt;
  .contentheading&lt;br /&gt;
&lt;br /&gt;
 /**com_poll**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .pollstableborder&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .smalldark&lt;br /&gt;
  .button&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**com_registration**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**com_search**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpaneopen&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
  .searchintro&lt;br /&gt;
  .small&lt;br /&gt;
  .highlight&lt;br /&gt;
&lt;br /&gt;
 /**com_user**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
  .row1&lt;br /&gt;
  .row2&lt;br /&gt;
&lt;br /&gt;
 /**com_weblinks**/&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .sectiontableheader&lt;br /&gt;
  .tabclass1&lt;br /&gt;
  .tabclass2&lt;br /&gt;
  .small&lt;br /&gt;
  .category&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**com_wrapper**/&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .wrapper&lt;br /&gt;
&lt;br /&gt;
 /**includes/frontend**/&lt;br /&gt;
  .moduletable&lt;br /&gt;
  .newsfeed&lt;br /&gt;
  .module&lt;br /&gt;
  .message&lt;br /&gt;
&lt;br /&gt;
 /**includes\HTML_toolbar  .php**/&lt;br /&gt;
  .toolbar&lt;br /&gt;
&lt;br /&gt;
 /**includes\joomla  .php**/&lt;br /&gt;
  .profiler&lt;br /&gt;
  .item&lt;br /&gt;
  .small&lt;br /&gt;
  .back_button&lt;br /&gt;
  .buttonheading&lt;br /&gt;
  .tab-page&lt;br /&gt;
  .tab&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**includes\joomla  .xml  .php**/&lt;br /&gt;
  .paramlist&lt;br /&gt;
  .editlinktip&lt;br /&gt;
  .text_area&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**includes\pageNavigation  .php**/&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .pagenav&lt;br /&gt;
&lt;br /&gt;
 /**includes\pathway  .php**/&lt;br /&gt;
  .pathway&lt;br /&gt;
&lt;br /&gt;
 /**includes\js\dtree\dtree  .js**/&lt;br /&gt;
  .dtree&lt;br /&gt;
  .dTreeNode&lt;br /&gt;
  .node&lt;br /&gt;
  .clip&lt;br /&gt;
&lt;br /&gt;
 /**includes\patTemplate\tmpl\forms  .html**/&lt;br /&gt;
  .message&lt;br /&gt;
  .tooltip&lt;br /&gt;
  .tab-page&lt;br /&gt;
  .tab&lt;br /&gt;
  .expander&lt;br /&gt;
&lt;br /&gt;
 /**mambots\content\mosimage  .php**/&lt;br /&gt;
  .mosimage_caption&lt;br /&gt;
  .mosimage&lt;br /&gt;
&lt;br /&gt;
 /**mambots\content\mospaging  .php**/&lt;br /&gt;
  .pagenavcounter&lt;br /&gt;
  .pagenavbar&lt;br /&gt;
  .contenttoc&lt;br /&gt;
  .toclink&lt;br /&gt;
&lt;br /&gt;
 /**mambots\content\mosvote  .php**/&lt;br /&gt;
  .content_rating&lt;br /&gt;
  .content_vote&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_latestnews  .php**/&lt;br /&gt;
  .latestnews&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_login  .php**/&lt;br /&gt;
  .button&lt;br /&gt;
  .inputbox&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_mostread  .php**/&lt;br /&gt;
  .mostread&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_mostread  .php**/&lt;br /&gt;
  .poll&lt;br /&gt;
  .pollstableborder&lt;br /&gt;
  .button&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_mostread  .php**/&lt;br /&gt;
  .syndicate&lt;br /&gt;
  .syndicate_text&lt;br /&gt;
&lt;br /&gt;
 /**modules\mod_search  .php**/&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .button&lt;br /&gt;
  .search&lt;br /&gt;
&lt;br /&gt;
Provided by Compass:&lt;br /&gt;
&lt;br /&gt;
 #active_menu&lt;br /&gt;
 #blockrandom&lt;br /&gt;
 #contact_email_copy&lt;br /&gt;
 #contact_text&lt;br /&gt;
 #emailForm&lt;br /&gt;
 #mod_login_password&lt;br /&gt;
 #mod_login_remember&lt;br /&gt;
 #mod_login_username&lt;br /&gt;
 #poll&lt;br /&gt;
 #search_ordering&lt;br /&gt;
 #search_searchword&lt;br /&gt;
 #searchphraseall&lt;br /&gt;
 #searchphraseany&lt;br /&gt;
 #searchphraseexact&lt;br /&gt;
 #voteid1, #voteid2&lt;br /&gt;
  .adminform&lt;br /&gt;
  .article_seperator&lt;br /&gt;
  .back_button&lt;br /&gt;
  .blog&lt;br /&gt;
  .blog_more&lt;br /&gt;
  .blogsection&lt;br /&gt;
  .button&lt;br /&gt;
  .buttonheading&lt;br /&gt;
  .category&lt;br /&gt;
  .clr&lt;br /&gt;
  .componentheading&lt;br /&gt;
  .contact_email&lt;br /&gt;
  .content_rating&lt;br /&gt;
  .content_vote&lt;br /&gt;
  .contentdescription&lt;br /&gt;
  .contentheading&lt;br /&gt;
  .contentpagetitle&lt;br /&gt;
  .contentpane&lt;br /&gt;
  .contentpaneopen&lt;br /&gt;
  .contenttoc&lt;br /&gt;
  .createdate&lt;br /&gt;
  .fase4rdf&lt;br /&gt;
  .footer&lt;br /&gt;
  .frontpageheader&lt;br /&gt;
  .inputbox&lt;br /&gt;
  .latestnews&lt;br /&gt;
  .mainlevel&lt;br /&gt;
  .message&lt;br /&gt;
  .modifydate&lt;br /&gt;
  .module&lt;br /&gt;
  .moduletable&lt;br /&gt;
  .mostread&lt;br /&gt;
  .newsfeed&lt;br /&gt;
  .newsfeeddate&lt;br /&gt;
  .newsfeedheading&lt;br /&gt;
  .pagenav&lt;br /&gt;
  .pagenav_next&lt;br /&gt;
  .pagenav_prev&lt;br /&gt;
  .pagenavbar&lt;br /&gt;
  .pagenavcounter&lt;br /&gt;
  .pathway&lt;br /&gt;
  .polls&lt;br /&gt;
  .pollsborder&lt;br /&gt;
  .pollstableborder&lt;br /&gt;
  .readon&lt;br /&gt;
  .readon:hover&lt;br /&gt;
  .search&lt;br /&gt;
  .searchintro&lt;br /&gt;
  .sectionentry1&lt;br /&gt;
  .sectionentry2&lt;br /&gt;
  .sectionheader&lt;br /&gt;
  .sitetitle&lt;br /&gt;
  .small&lt;br /&gt;
  .smalldark&lt;br /&gt;
  .sublevel&lt;br /&gt;
  .syndicate&lt;br /&gt;
  .syndicate_text&lt;br /&gt;
  .text_area&lt;br /&gt;
  .toclink&lt;br /&gt;
  .weblinks&lt;br /&gt;
  .wrapper&lt;br /&gt;
&lt;br /&gt;
===What are module switches?  (or -1 -2 and -3) ===&lt;br /&gt;
This is how you apply the switches:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;nowiki&amp;gt;switch: -1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
: Strips all surrounding code from the module.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;, -1 ); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The html code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;user1_inner&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot;    &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 2&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot;  &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 1&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  Example News Item 4&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=7&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
  class=&amp;quot;latestnews&amp;quot;&amp;gt;       &lt;br /&gt;
  Example News Item 2&lt;br /&gt;
  &amp;lt;/a&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;nowiki&amp;gt;switch: -2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
: Puts the module&#039;s title in an h3, and wraps the entire thing in a&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;, -2 ); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The outputted html code looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;moduletable&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;h3&amp;gt;Latest News&amp;lt;/h3&amp;gt;&lt;br /&gt;
 &amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot;  &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 2&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=6&amp;amp;Itemid=2&amp;quot;&lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Example News Item 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Example News Item 4&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
 &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;switch: -3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Puts the module&#039;s title in an h3, and adds several layers of divs that can be used to apply [[CSS]] techniques with [[Rounded corners|rounded corners]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;, -3 ); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;module&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div&amp;gt;&lt;br /&gt;
 &amp;lt;div&amp;gt;&lt;br /&gt;
 &amp;lt;div&amp;gt;&lt;br /&gt;
 &amp;lt;h3&amp;gt;Latest News&amp;lt;/h3&amp;gt;&lt;br /&gt;
 &amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot;      &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   Newsflash 2 &amp;lt;/a&amp;gt; &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=6&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   Example News Item 1&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
   &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot; &lt;br /&gt;
   class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
   Example News Item 4&lt;br /&gt;
   &amp;lt;/a&amp;gt;&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
 &amp;lt;/ul&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there is no switch at all:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;?php mosLoadModules ( &#039;user1&#039;); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The code output looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;table class=&amp;quot;moduletable&amp;quot; border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;tbody&amp;gt;&lt;br /&gt;
     &amp;lt;tr&amp;gt;&lt;br /&gt;
       &amp;lt;th valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
      Latest News&lt;br /&gt;
       &amp;lt;/th&amp;gt;&lt;br /&gt;
     &amp;lt;/tr&amp;gt;&lt;br /&gt;
     &amp;lt;tr&amp;gt;&lt;br /&gt;
       &amp;lt;td&amp;gt;&lt;br /&gt;
       &amp;lt;ul class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=4&amp;amp;Itemid=9&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 3&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=2&amp;amp;Itemid=9&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         Newsflash 1 &lt;br /&gt;
         &amp;lt;/a&amp;gt; &lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=3&amp;amp;Itemid=9&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;Newsflash 2&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=6&amp;amp;Itemid=2&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         Example News Item 1&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
         &amp;lt;li class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;a href=&amp;quot;http://localhost/projects/1112rc2/index.php?option=com_content&amp;amp;task=view&amp;amp;id=9&amp;amp;Itemid=2&amp;quot;&lt;br /&gt;
         class=&amp;quot;latestnews&amp;quot;&amp;gt;&lt;br /&gt;
         Example News Item 4&lt;br /&gt;
         &amp;lt;/a&amp;gt;&lt;br /&gt;
         &amp;lt;/li&amp;gt;&lt;br /&gt;
       &amp;lt;/ul&amp;gt;&lt;br /&gt;
       &amp;lt;/td&amp;gt;&lt;br /&gt;
     &amp;lt;/tr&amp;gt;&lt;br /&gt;
   &amp;lt;/tbody&amp;gt;&lt;br /&gt;
 &amp;lt;/table&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Joomla! 1.5 each switch has a style associated with it.&lt;br /&gt;
&lt;br /&gt;
		switch -3:    $style = &#039;rounded&#039;;&lt;br /&gt;
                switch -2:  $style = &#039;xhtml&lt;br /&gt;
                switch  -1:  $stylle = &#039;raw&#039;;&lt;br /&gt;
		switch   0 :$style = &#039;table&#039;;&lt;br /&gt;
&lt;br /&gt;
===How do I add a position to a template?===&lt;br /&gt;
To create a &amp;quot;new&amp;quot; position chose one of the names from the list of positions shown in&lt;br /&gt;
Site&amp;gt;[[Template Manager]]&amp;gt;Module Positions&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
In your template add&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;?php mosLoadModules (&#039;position_name&#039;); ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will want to surround it with approprate html so that it appears where you want it to and with the formatting you want.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
===How do I change the image(s) in my template?===&lt;br /&gt;
One common [[Template|template]] change is to use your own graphic/image. Simple graphics (not [[Banner|banners]]) are linked in the [[HTML]] file. Simply change the reference to the image of your choice in the HTML file of your template.  Do this by, in the [[Back-end|adminsitrative interface]], going to Site&amp;gt;&amp;gt;[[Template Manager]] and then selecting your template. Click the icon for html.&lt;br /&gt;
&lt;br /&gt;
Keep in mind that if it is a different size than the original image this may change the appearance of the site in unexpected ways.&lt;br /&gt;
&lt;br /&gt;
The images for a given template are generally located in this folder:&lt;br /&gt;
 /templates/&#039;&#039;templatename&#039;&#039;/images &lt;br /&gt;
(where you substitute the name of the template you are using.)&lt;br /&gt;
&lt;br /&gt;
===How do I collapse an empty position in a template?===&lt;br /&gt;
Very often the question is asked on how to collapse a position in any template. Note collapse here means &amp;quot;not show&amp;quot; if no modules are published to these columns.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
Here is a method on how to do this as an example with the tremendous popular [[rhuk_solarflare]] template:&lt;br /&gt;
&lt;br /&gt;
open &amp;lt;tt&amp;gt;../templates/rhuk_solarflare_ii/index.php&amp;lt;/tt&amp;gt; and find and replace this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;div id=&amp;quot;left_outer&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div id=&amp;quot;left_inner&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;?php mosLoadModules ( &#039;left&#039;, -2 ); ?&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;div id=&amp;quot;content_outer&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
with this :&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;?php&lt;br /&gt;
      if ( !(mosCountModules( &#039;left&#039; )) ) {&lt;br /&gt;
    ?&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;content_outer2&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;?&lt;br /&gt;
     }&lt;br /&gt;
     else {&lt;br /&gt;
     ?&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;left_outer&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;div id=&amp;quot;left_inner&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;?php mosLoadModules ( &#039;left&#039;, -2 ); ?&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;lt;div id=&amp;quot;content_outer&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;?&lt;br /&gt;
     }&lt;br /&gt;
    ?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
and save the file.&lt;br /&gt;
&lt;br /&gt;
Then open &amp;lt;tt&amp;gt;../templates/rhuk_solarflare_ii/css/template_css.css&amp;lt;/tt&amp;gt; file and add:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
 #content_outer2 {&lt;br /&gt;
    padding: 0px;&lt;br /&gt;
    margin-top: 0px;&lt;br /&gt;
    margin-left: 0px;&lt;br /&gt;
    /** border: 1px solid #cccccc; **/&lt;br /&gt;
    float: left;&lt;br /&gt;
    width: 800px;&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and your left column now will collapse when you don&#039;t publish anything to it!&lt;br /&gt;
&lt;br /&gt;
This method you can multiply to any template if you try to follow the logic of the code!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.5}}&lt;br /&gt;
&lt;br /&gt;
===CSS Text/Font Resizing (A+ A-) on Joomla Template===&lt;br /&gt;
&lt;br /&gt;
{{JVer|1.0}}&lt;br /&gt;
&lt;br /&gt;
I recognize that there are some of you who are sort of scratching your heads wondering how to get from where your site is now to where joomla.org&#039;s is. So for those of you wanting it laid out all the way, here&#039;s a more detailed instruction set that summarizes and extends what has already been said through the course of this thread:&lt;br /&gt;
&lt;br /&gt;
*Step 1 - download joomla.org&#039;s font style switcher file ([http://demo.joomla.org/1.5/templates/beez/javascript/md_stylechanger.js md_stylechanger.js])&lt;br /&gt;
*Step 2 - put that file somewhere in the folder of the template you are using&lt;br /&gt;
*Step 3 - put A+, A-, and Reset images in your template&#039;s image folder&lt;br /&gt;
*Step 4 - paste the following code snippet somewhere in your template&#039;s index.php file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- PLEASE! avoid extra-wide lines that may cause scrollbars in common screen-sizes &lt;br /&gt;
     and wrap ~ 80 chars / attribute level for better readability --&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
// shortcut of template URL used in src attributes&lt;br /&gt;
$template_url = $mosConfig_live_site .&#039;/templates/&#039;. $mainframe-&amp;gt;getTemplate(); &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; language=&amp;quot;javascript&amp;quot; &lt;br /&gt;
       src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/____1____&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;index.php&amp;quot; title=&amp;quot;Increase size&amp;quot; onclick=&amp;quot;changeFontSize(1);return false;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;img src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/images/____2____&amp;quot; alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;index.php&amp;quot; title=&amp;quot;Decrease size&amp;quot; onclick=&amp;quot;changeFontSize(-1);return false;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;img src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/images/____3____&amp;quot; alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;index.php&amp;quot; title=&amp;quot;Revert styles to default&amp;quot; onclick=&amp;quot;revertStyles(); return false;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;img src=&amp;quot;&amp;lt;?php echo $template_url; ?&amp;gt;/images/____4____&amp;quot; alt=&amp;quot;&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Step 5: Do all of the following:&lt;br /&gt;
*# Replace ____1____ with the location in your template folder where you saved the .js file&lt;br /&gt;
*# Replace ____2____ with the name of your A+ image&lt;br /&gt;
*# Replace ____3____ with the name of your A- image&lt;br /&gt;
*# Replace ____4____ with the name of your Reset image&lt;br /&gt;
&lt;br /&gt;
*Step 6: Do one of the following:&lt;br /&gt;
** Bask in the awesomeness that is session font resizing&lt;br /&gt;
** Start figuring out why the buttons do nothing (either because your site doesn&#039;t use style classes, or because I messed up somewhere)&lt;br /&gt;
&lt;br /&gt;
===Can I remove the &amp;quot;Powered by Joomla!&amp;quot; message?===&lt;br /&gt;
&lt;br /&gt;
Yes. You may remove that message, which is in &amp;lt;tt&amp;gt;footer.php&amp;lt;/tt&amp;gt;. You may however &#039;&#039;&#039;not&#039;&#039;&#039; remove copyright and license information from the source code.&lt;br /&gt;
&lt;br /&gt;
===How do I make it so my modules are laid out horizontally?===&lt;br /&gt;
&lt;br /&gt;
See [[Administration_FAQs#How_do_I_control_whether_modules_are_vertically_or_horizontally_arranged.3F | How do I control whether modules are vertically or horizontally arranged?]]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>Timj</name></author>
	</entry>
</feed>