<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.8.0-dev (info@mypapit.net)" -->
<rss version="2.0"  xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Open Source Training Updates</title>
        <description></description>
        <link>http://www.ostraining.com/</link>
        <lastBuildDate>Thu, 29 Jul 2010 15:55:05 GMT</lastBuildDate>
        <generator>FeedCreator 1.8.0-dev (info@mypapit.net)</generator>
		<atom:link href="http://www.ostraining.com/index.php?option=com_ninjarsssyndicator&amp;feed_id=5&amp;format=raw" rel="self" type="application/rss+xml" />        <item>
            <title>Creating a New Joomla Offline Page</title>
            <link>http://www.ostraining.com/newsletters/joomla/creating-a-new-joomla-offline-page/</link>
            <description><![CDATA[<p>Joomla allows a site to be taken offline with a setting in the Administrator Global Configuration panel.&nbsp; When this happens, frontend access is no longer permitted and a special offline page is displayed.&nbsp; By default, the source for this page comes from the core supplied System Template.&nbsp; However, Joomla allows you to provide your own offline page.&nbsp; To do this you need to create a file called offline.php in your template folder.&nbsp; Like {codecitation}index.php{/codecitation}, {codecitation}component.php{/codecitation} and {codecitation}error.php{/codecitation}, this is a fully fledged template file in which you can use PHP and jdoc:include statements. Custom offline pages should ideally conform to a style that compliments the active web site.&nbsp; Keeping the structural layout similar and including any prominent headers can allow this page to feel less imposing.</p>
<h2>Creating a Custom Offline Page</h2>
<p>The easiest way to provide your own offline page is to copy the following files:</p>
{codecitation}/templates/system/offline.php{/codecitation} {codecitation}/templates/system/css/offline.css{/codecitation} {codecitation}/templates/system/css/offline_rtl.css{/codecitation}</p>
<p>to:</p>
<p>{codecitation}/templates/your_template/offline.php{/codecitation}<br /> {codecitation}/templates/your_template/css/offline.css<br /> {/codecitation} {codecitation}/templates/your_template/css/offline_rtl.css{/codecitation}</p>
<p>This gives you a working base with which to customise the file.</p>
<h3>Creating the Page from Scratch</h3>
<p>If you want to start your own offline page from scratch, the minimum you require is the following listing:</p>
{codecitation} &lt;?php // no direct access defined( '_JEXEC' ) or die( 'Restricted access' );  // Get the Joomla Application object $app = &amp;JFactory::getApplication(); ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"&gt; &lt;head&gt; &nbsp;&nbsp;&nbsp; &lt;jdoc:include type="head" /&gt; &nbsp;&nbsp;&nbsp; &lt;link rel="stylesheet" href="http://www.ostraining.com/<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" /&gt; &nbsp;&nbsp;&nbsp; &lt;link rel="stylesheet" href="http://www.ostraining.com/<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/offline.css" type="text/css" /&gt; &nbsp;&nbsp;&nbsp; &lt;?php if($this-&gt;direction == 'rtl') : ?&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;link rel="stylesheet" href="http://www.ostraining.com/<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/offline_rtl.css" type="text/css" /&gt; &nbsp;&nbsp;&nbsp; &lt;?php endif; ?&gt; &lt;/head&gt; &lt;body&gt; &nbsp;&nbsp;&nbsp; &lt;jdoc:include type="message" /&gt; &nbsp;&nbsp;&nbsp; &lt;h1&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;?php echo $app-&gt;getCfg('sitename'); ?&gt; &nbsp;&nbsp;&nbsp; &lt;/h1&gt; &nbsp;&nbsp;&nbsp; &lt;p&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;?php echo $app-&gt;getCfg('offline_message'); ?&gt; &nbsp;&nbsp;&nbsp; &lt;/p&gt;  &nbsp;&nbsp;&nbsp; &lt;form action="index.php" method="post"&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;fieldset&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &lt;p&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;label for="username"&gt;&lt;?php echo JText::_('Username') ?&gt;&lt;/label&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;input name="username" id="username" type="text" class="inputbox" alt="<?php echo JText::_('Username') ?>" size="18" /&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;/p&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;p&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;label for="passwd"&gt;&lt;?php echo JText::_('Password') ?&gt;&lt;/label&gt; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;input type="password" name="passwd" class="inputbox" size="18" alt="<?php echo JText::_('Password') ?>" id="passwd" /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &lt;/p&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &lt;input type="submit" name="Submit" class="button" value="<?php echo JText::_('LOGIN') ?>" /&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/fieldset&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;input type="hidden" name="option" value="com_user" /&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;input type="hidden" name="task" value="login" /&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;input type="hidden" name="return" value="<?php echo base64_encode(JURI::base()) ?>" /&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;?php echo JHTML::_( 'form.token' ); ?&gt; &nbsp;&nbsp;&nbsp; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;{/codecitation}
<p>Most of this file should be familar to you now.&nbsp; The {codecitation}head{/codecitation} includes the System Template {codecitation}system.css{/codecitation} to support any messages that might be generated (such as for a failed login attempt).&nbsp; Naturally, you can apply any additional HTML code or styling that you require to suite the needs of your own web site.</p>
<h3>Accessing Configuration Settings</h3>
<p>The body contains some new information that we have not covered in the template chapter yet.&nbsp; A new variable, {codecitation}$app{/codecitation}, has been introduced.&nbsp; You will notice that is was defined near the top of the listing with:</p>
{codecitation} // Get the Joomla Application object $app = &amp;JFactory::getApplication();{/codecitation}
<p>{codecitation}JFactory{/codecitation} is a class that is part of the Joomla Framework and it allows us to get an object that contains a lot of information about the Joomla web site that is being loaded.&nbsp; You might also be familar with a variable called {codecitation}$mainframe{/codecitation}.&nbsp; This is the same thing but the way it has been shown here is forward compatible with Joomla version 1.6.&nbsp; The name of the settings for the Site Name and the Offline Message are <em>sitename</em> and <em>offline_message</em> respectively.</p>
<p>The application object has many methods but on of them, {codecitation}getCfg{/codecitation}, allows you to access the settings in the Joomla configuration file (which are also the settings you see in the Administrator Global Configuration page).</p>
{codecitation} &nbsp;&nbsp;&nbsp; &lt;jdoc:include type="message" /&gt; &nbsp;&nbsp;&nbsp; &lt;h1&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;?php echo $app-&gt;getCfg('sitename'); ?&gt; &nbsp;&nbsp;&nbsp; &lt;/h1&gt; &nbsp;&nbsp;&nbsp; &lt;p&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;?php echo $app-&gt;getCfg('offline_message'); ?&gt; &nbsp;&nbsp;&nbsp; &lt;/p&gt;{/codecitation}
<p>We pass those setting names to the {codecitation}getCfg{/codecitation} method and use PHP's echo statement to display them on the page.&nbsp; You will also notice the {codecitation}jdoc:include{/codecitation} tag to include an system messages.</p>
<h3>The Login Form</h3>
<p>The default offline page includes a login form that allows an administrator user to log in and test any changes being made while the site is offline.</p>
{codecitation} &nbsp;&nbsp;&nbsp; &lt;form action="index.php" method="post"&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;fieldset&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &lt;p&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;label for="username"&gt;&lt;?php echo JText::_('Username') ?&gt;&lt;/label&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;input name="username" id="username" type="text" class="inputbox" alt="<?php echo JText::_('Username') ?>" size="18" /&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;/p&gt; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;p&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;label for="passwd"&gt;&lt;?php echo JText::_('Password') ?&gt;&lt;/label&gt; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;input type="password" name="passwd" class="inputbox" size="18" alt="<?php echo JText::_('Password') ?>" id="passwd" /&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &lt;/p&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &lt;input type="submit" name="Submit" class="button" value="<?php echo JText::_('LOGIN') ?>" /&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/fieldset&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;input type="hidden" name="option" value="com_user" /&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;input type="hidden" name="task" value="login" /&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;input type="hidden" name="return" value="<?php echo base64_encode(JURI::base()) ?>" /&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;?php echo JHtml::_('form.token'); ?&gt; &nbsp;&nbsp;&nbsp; &lt;/form&gt;{/codecitation}
<p>The form must use the <em>post</em> method and include input fields named <em>username</em> and <em>passwd</em>.&nbsp; The form is processed by the User Component under the <em>login</em> task, so the hidden fields in the form reflect this.</p>
<p>The hidden input field named <em>return</em> hold a special value that allows you to return to the page you were on.&nbsp; It's optional to provide this for the offline page.&nbsp; The only use it would have is if you land on a specific page that is not the home page, find the site is offline and want to log in (assuming to have administrator access to do so).</p>
<p>If you are distributing commercial templates, it is advisable to include this form.&nbsp; If you are implementing a custom offline page for your own site, then including this form is optional.&nbsp; For example, if testing is done on a staging site prior to upload, there is probably little need for in-situ testing of the offline site.&nbsp; The decision is really up to the web master of the site as to whether it is necessary.</p>
<p>Before the form closes is a very important line.</p>
{codecitation} &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;?php echo JHtml::_('form.token'); ?&gt;{/codecitation}
<p>This line inserts an additional hidden field used to prevent a certain type of malicous attack on your site (called CSRF - we cover this in other parts of this Reference).&nbsp; If you do not include this line, your site will stop and display an <em>Invalid Token</em> message and an Administrator will not be able to log in.</p>

{loadposition joomlanewsletter}]]></description>
            <author> info@ostraining.com (Steve Burge)</author>
            <pubDate>Sun, 25 Jul 2010 01:23:57 GMT</pubDate>
            <guid isPermaLink="false">http://www.ostraining.com/newsletters/joomla/creating-a-new-joomla-offline-page/</guid>
        </item>
        <item>
            <title>An Introduction to MVC for Joomla Templates</title>
            <link>http://www.ostraining.com/newsletters/joomla/an-introduction-to-joomla-mvc/</link>
            <description><![CDATA[<p>MVC can be a scary acronym for the uninitiated.&nbsp; It stands for Model-View-Controller and the concepts behind MVC are responsible for the extra flexibility that is now afforded to the designer.&nbsp; While parts of the theory can be rather involved and complicated, the only part that the designer need worry about is the <strong>V</strong> for <strong>View</strong>.&nbsp; This is the part that is concerned 	with output.</p>
<p>Different extensions display output in different ways.</p>
<h3>Components</h3>
<p>Components are fairly complex and have the ability to display different information in different ways.&nbsp; For example, the Articles Component (com_content) is able to display a single article, or articles in a category, or categories in a section.&nbsp; Each of the ways of representing the different types of data (an article, or a category, or a section) is called a <em>view</em> (this comes from our MVC terminology).&nbsp; Most components will have many views.&nbsp; However, the view doesn't actually display the output.&nbsp; This is left up to what we call a <em>layout</em> and it is possible for a view to have a variety of layouts.</p>
<p>The main thing to remember here is that components can have multiple views, and each view can have one or more layouts.&nbsp; Each view assembles a fixed set of information, but each layout can display that information in different ways.&nbsp; For example, the Category view in the Articles component assembles a number of articles.&nbsp; These articles could be displayed in a list or in a table (and probably other ways as well).&nbsp; So this view may have a <em>list</em> layout and a <em>table</em> layout to choose from.</p>
<h3>Modules</h3>
<p>Modules, on the other hand, are very simple.&nbsp; They generally display one thing one way.&nbsp; Modules don't really have views but they do support a layout.&nbsp; Some developers might even support a choice of layouts through module parameters.</p>
<h3>Template versus Layout</h3>
<p>It is very important to distinguish between the role of template and the role of layouts.&nbsp; The template sets up a structural framework for the page of the Web site.&nbsp; Within this framework are positions for modules and a component to display.&nbsp; What actually gets displayed is governed by the module layout, or the combination of view and layout in the case of the component.</p>
<p>The following image shows the structural layout of a typical Joomla! template (rhuk_milkyway, the default for 1.5).&nbsp; The module positions are displayed by adding tp=1 to the URL (eg, <code>index.php?tp=1</code>).&nbsp; You can clearly see where the module output is contained within the overall template, as well as the main component output starting in the lower-centre region.&nbsp; However, what is actually output in those regions, is controlled by the layouts.</p>
<p style="text-align: center;"><img longdesc="A Joomla web page displaying the module positions" alt="Screenshot" src="http://theartofjoomla.com/images/reference/frontpage_tp1.png" /></p>
<h3>Ancillary Customisation</h3>
<p>While not strictly related to the MVC, there are two other important areas to consider when looking at customising the output of Joomla!.</p>
<p>In addition to layouts, modules have what we call <em>chrome</em>.&nbsp; Chrome is the style with which a module is to display.&nbsp; Most developers, designers and probably some end-users will be familiar with the different built-in styles for modules (raw, xhtml, etc).&nbsp; It is also possible to define your own chrome styles for modules depending on the designer result.&nbsp; For example, you could design a chrome to display all the modules in a particular position in a fancy javascript collapsing blind arrangement.</p>
<p>In the screenshot above, you can just make out the names of some of the built-in module chrome 	used (<strong>rounded</strong>, <strong>none</strong> and <strong>xhtml</strong>).</p>
<p>The second area has to do with controlling the pagination controls when viewing lists of data.</p>
{loadposition joomlanewsletter}]]></description>
            <author> info@ostraining.com (Steve Burge)</author>
            <pubDate>Sat, 24 Jul 2010 01:30:55 GMT</pubDate>
            <guid isPermaLink="false">http://www.ostraining.com/newsletters/joomla/an-introduction-to-joomla-mvc/</guid>
        </item>
        <item>
            <title>Creating Tables Inside Joomla Articles</title>
            <link>http://www.ostraining.com/newsletters/joomla/creating-tables-inside-joomla-articles/</link>
            <description><![CDATA[<div class="LessonContent">
<div class="LessonSummary">
<p>This tutorial will show you how to create tables inside Joomla articles. Because the default Joomla editor doesn't have a table-creation feature, we're going to recommend that you upgrade to Joomla Content Editor. <a href="http://www.ostraining.com/index.php?option=com_content&amp;view=article&amp;id=406:how-to-add-a-new-joomla-wysiwyg-editor&amp;catid=30&amp;Itemid=300275">Instructions on how to install it are here</a>.</p>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Getting Started</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1279302864735.png" alt="tutuploadsmedia_1279302864735.png" height="200" width="256" /></div>
<div class="StepInstructions">
<p>Open an article and put your cursor in the article where you'd like the table to be.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Insert a New Table</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1279302938634.png" alt="tutuploadsmedia_1279302938634.png" height="178" width="272" /></div>
<div class="StepInstructions">
<p>Click your mouse on the "Inserts a new table" button in the third row of your JCE Editor.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Choosing the Table Options</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1279303033552.png" alt="tutuploadsmedia_1279303033552.png" height="352" width="412" /></div>
<div class="StepInstructions">
<p>You'll see a pop-up looking like this. The first thing to do is choose the number of columns and row for your article. Cellpadding is the amount of space INSIDE each cell. Cellspacing is the amount of space BETWEEN each cell. Border will set a line around the outside of the whole table. Width and height allow you set fixed dimensions for the table, otherwise the table will adjust to fit the content inside. When you're done, click insert.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Writing Inside the Table</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1279303232758.png" alt="tutuploadsmedia_1279303232758.png" height="213" width="188" /></div>
<div class="StepInstructions">
<p>Click your mouse inside the table cells and start typing .... you should end up being able to fill in all the cells you need:</p>
</div>
</div>
<div class="LessonStep top">
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1279303548938.png" alt="tutuploadsmedia_1279303548938.png" height="222" width="228" /></div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Modifying Your Table</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1279303591717.png" alt="tutuploadsmedia_1279303591717.png" height="192" width="540" /></div>
<div class="StepInstructions">
<p>You'll notice that when your table is selected, many new buttons along the 3rd row will light up. These are extra options for modifying our table. From left to right they are:</p>
<ul>
<li>delete table</li>
<li>table row properties</li>
<li>table cell properties</li>
<li>insert row before</li>
<li>insert row after</li>
<li>delete row</li>
<li>insert column before</li>
<li>insert column after</li>
<li>delete column</li>
<li>split merged table cells</li>
<li>merge table cells</li>
</ul>
{loadposition joomlanewsletter}</div>
</div>
</div>]]></description>
            <author> info@ostraining.com (Steve Burge)</author>
            <pubDate>Fri, 16 Jul 2010 18:14:47 GMT</pubDate>
            <guid isPermaLink="false">http://www.ostraining.com/newsletters/joomla/creating-tables-inside-joomla-articles/</guid>
        </item>
        <item>
            <title>Adding a Custom HTML Module in Joomla</title>
            <link>http://www.ostraining.com/newsletters/joomla/custom-html-module/</link>
            <description><![CDATA[<p>Custom HTML modules are a very useful feature in Joomla. You can insert any code you like from articles to photos to code. Here's a video explaining how it's done:</p>

<ol>

<li>Login to your Adminstrator area.</li>
<li>Go to Extensions >> Module Manager.</li>
<li>Click on the "New" button.</li>
<li>Select "Custom HTML".</li>
<li>Enter your code and click "Save".</li>
</ol>

<object id="scPlayer" width="610" height="400"> <param name="movie" value="http://content.screencast.com/users/ostraining/folders/Joomla%20Beginner%20Course/media/9d4e8120-79ca-49c0-a437-e00eac16d985/flvplayer.swf"></param> <param name="quality" value="high"></param> <param name="bgcolor" value="#FFFFFF"></param> <param name="flashVars" value="thumb=http://content.screencast.com/users/ostraining/folders/Joomla%20Beginner%20Course/media/9d4e8120-79ca-49c0-a437-e00eac16d985/FirstFrame.jpg&containerwidth=840&containerheight=544&content=http://content.screencast.com/users/ostraining/folders/Joomla%20Beginner%20Course/media/9d4e8120-79ca-49c0-a437-e00eac16d985/session-40-add-module.flv"></param> <param name="allowFullScreen" value="true"></param> <param name="scale" value="showall"></param> <param name="allowScriptAccess" value="always"></param> <param name="base" value="http://content.screencast.com/users/ostraining/folders/Joomla%20Beginner%20Course/media/9d4e8120-79ca-49c0-a437-e00eac16d985/"></param>  <embed src="http://content.screencast.com/users/ostraining/folders/Joomla%20Beginner%20Course/media/9d4e8120-79ca-49c0-a437-e00eac16d985/flvplayer.swf" quality="high" bgcolor="#FFFFFF"  width="610" height="400" type="application/x-shockwave-flash" allowScriptAccess="always" flashVars="thumb=http://content.screencast.com/users/ostraining/folders/Joomla%20Beginner%20Course/media/9d4e8120-79ca-49c0-a437-e00eac16d985/FirstFrame.jpg&containerwidth=840&containerheight=544&content=http://content.screencast.com/users/ostraining/folders/Joomla%20Beginner%20Course/media/9d4e8120-79ca-49c0-a437-e00eac16d985/session-40-add-module.flv" allowFullScreen="true" base="http://content.screencast.com/users/ostraining/folders/Joomla%20Beginner%20Course/media/9d4e8120-79ca-49c0-a437-e00eac16d985/" scale="showall"></embed> </object>
<br />{loadposition joomlanewsletter}]]></description>
            <author> info@ostraining.com (Steve Burge)</author>
            <pubDate>Mon, 12 Jul 2010 22:04:26 GMT</pubDate>
            <guid isPermaLink="false">http://www.ostraining.com/newsletters/joomla/custom-html-module/</guid>
        </item>
        <item>
            <title>Joomla Article Layout Options From the Menu</title>
            <link>http://www.ostraining.com/newsletters/joomla/joomla-article-layout-options-from-the-menu/</link>
            <description><![CDATA[<div class="LessonContent">
<div class="LessonSummary">
<p>This tutorial came from a question in our support forum: "How do I know what the menu links to articles look like?" That's a good question. If you make a new menu link and choose "Articles", you're faced with 8 different types of layout. These are the 8 you'll see:</p>
</div>
<div class="LessonStep top">
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1278073133590.png" alt="tutuploadsmedia_1278073133590.png" height="360" width="287" /></div>
<div class="StepInstructions">
<p>So what do they all do? Read on ...</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Archived Article List</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1278073323028.png" alt="tutuploadsmedia_1278073323028.png" height="67" width="457" /></div>
<div class="StepInstructions">
<p>Joomla's archive system is not very sophisticated. If you choose "Archived Article List" you'll be take a search form like this. All articles that have been archived can be found here.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Article Layout</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1278073353051.png" alt="tutuploadsmedia_1278073353051.png" height="234" width="540" /></div>
<div class="StepInstructions">
<p>Article Layout is a fairly simple option: it links to the full text of one single article.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Article Submission Layout</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1278073409079.png" alt="tutuploadsmedia_1278073409079.png" height="304" width="540" /></div>
<div class="StepInstructions">
<p>Article Submission Layout allows anyone who is at the "author" level and above to submit articles.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Category Blog Layout</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1278073464789.png" alt="tutuploadsmedia_1278073464789.png" height="338" width="540" /></div>
<div class="StepInstructions">
<p>Category Blog Layout shows all the articles in one category. It shows them in a blog layout which means that you can use the "Read More" link to split the articles and show only teaser text.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Category List Layout</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1278073639493.png" alt="tutuploadsmedia_1278073639493.png" height="188" width="540" /></div>
<div class="StepInstructions">
<p>Notice that the articles in this Category List Layout are identical to those in Category Blog Layout above. The important difference is that they're shown in a list and people have to click on the article titles to read the text.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Front Page Blog Layout</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1278073692139.png" alt="tutuploadsmedia_1278073692139.png" height="372" width="480" /></div>
<div class="StepInstructions">
<p>This is very, very similar to Section Blog Layout and Category Blog Layout. Really the only difference is that the articles come from Content &gt;&gt; Frontpage Manager rather than from just one section or category.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Section Blog Layout</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1278073715022.png" alt="tutuploadsmedia_1278073715022.png" height="361" width="540" /></div>
<div class="StepInstructions">
<p>Section Blog Layout shows all the articles in one category. It shows them in a blog layout which means that you can use the "Read More" link to split the articles and show only teaser text.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Section Layout</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1278073797764.png" alt="tutuploadsmedia_1278073797764.png" height="103" width="278" /></div>
<div class="StepInstructions">
<p>Section Layout shows all of the categories in one section. Click on the category name and you'll be taken to a Category Blog Layout page (see above).</p>
</div>
</div>
</div>

{loadposition joomlanewsletter}]]></description>
            <author> info@ostraining.com (Steve Burge)</author>
            <pubDate>Fri, 02 Jul 2010 12:51:45 GMT</pubDate>
            <guid isPermaLink="false">http://www.ostraining.com/newsletters/joomla/joomla-article-layout-options-from-the-menu/</guid>
        </item>
        <item>
            <title>What is the Joomla Itemid?</title>
            <link>http://www.ostraining.com/newsletters/joomla/what-is-the-joomla-itemid/</link>
            <description><![CDATA[<div class="LessonContent">
<div class="LessonSummary">
<p>One of the most frequently asked questions on the Joomla forums is "What is the Itemid and what does it do?".  I thought a quick tutorial would be useful because it's important for displaying both modules and templates:</p>
<p>If you have a brand-new Joomla installation that will be a big help in following along</p>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Brand-New Joomla Site</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277996611809.png" alt="tutuploadsmedia_1277996611809.png" height="388" width="537" /></div>
<div class="StepInstructions">
<p>If you have a brand new Joomla site installed, browse around and look at the URLs. For example, click on "Joomla Overview".</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Joomla Overview URL</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277996702101.png" alt="tutuploadsmedia_1277996702101.png" height="248" width="404" /></div>
<div class="StepInstructions">
<p>You'll notice the URL ends with Itemid=27. Try clicking on the next link down under "Main Menu". It should be called "Joomla License".</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Joomla License URL</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277996805612.png" alt="tutuploadsmedia_1277996805612.png" height="276" width="380" /></div>
<div class="StepInstructions">
<p>This time you'll notice the URL ends in Itemid=27. Try this on other pages and you'll see that each page is going to have a different Itemid at the end. The one you might be able to the see is the frontpage - the Itemd for that is always 1.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Where Else Can You See Itemids</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277997008000.png" alt="tutuploadsmedia_1277997008000.png" height="270" width="540" /></div>
<div class="StepInstructions">
<p>Inside each menu there will be a column on the right-hand side listing Itemids</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">So What Do Itemids Do?</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277997159816.png" alt="tutuploadsmedia_1277997159816.png" height="418" width="540" /></div>
<div class="StepInstructions">
<p>So we come to the key question .... notice on the frontpage, with an Itemid of 1, that there are lots of modules on the left, top and right. Now click on "Joomla License" which has an Itemid of 2:</p>
</div>
</div>
<div class="LessonStep top">
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277997264819.png" alt="tutuploadsmedia_1277997264819.png" height="276" width="540" /></div>
<div class="StepInstructions">
<p>Lots of those modules have vanished. However, let's just change the Itemid from 2 to 1:</p>
</div>
</div>
<div class="LessonStep top">
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277997342900.png" alt="tutuploadsmedia_1277997342900.png" height="136" width="398" /></div>
<div class="StepInstructions">
<p>And after doing that you'll see that all the frontpage modules have re-appeared. The Itemid controls which modules (and which templates) appear on a particular page:</p>
</div>
</div>
<div class="LessonStep top">
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277997409813.png" alt="tutuploadsmedia_1277997409813.png" height="419" width="540" /></div>
<div class="StepInstructions">
<p>Try going around the rest of your site and changing the Itemids on the URLs. See how the modules shift around.  This is how Joomla controls which modules and templates appear on some pages but not others. If you have a problem with the modules appearing or not appearing where they should, it's very likely to be an Itemid issue.</p>
</div>
</div>
</div>

{loadposition joomlanewsletter}]]></description>
            <author> info@ostraining.com (Steve Burge)</author>
            <pubDate>Thu, 01 Jul 2010 15:21:43 GMT</pubDate>
            <guid isPermaLink="false">http://www.ostraining.com/newsletters/joomla/what-is-the-joomla-itemid/</guid>
        </item>
        <item>
            <title>How to Change Joomla Folder and File Permissions</title>
            <link>http://www.ostraining.com/newsletters/joomla/how-to-change-joomla-folder-and-file-permissions/</link>
            <description><![CDATA[<div class="LessonContent">
<div class="LessonSummary">
<p>Sometimes when you're trying to upload extensions to your Joomla site, you'll be faced with error messages like this: "JFolder::create: Could not create directory" or "Warning! Failed to move file." Often this is because your Joomla site doesn't have the correct permissions to upload the extensions. What are permissions and how can you fix this problem? Read on ...</p>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Explaining Permissions</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277818454937.png" alt="tutuploadsmedia_1277818454937.png" height="483" width="475" /></div>
<div class="StepInstructions">
<p>There are 3 groups, self, group and public and three permissions you can give them: read, write and execute. Here's what they mean:</p>
<ul>
<li><strong>Self</strong>: That's you. When you access your site with username and password, you're connected as the user.</li>
<li><strong>Group</strong>: That's you, too. And maybe others. If your site can be accessed with more than one username and password set, then those sets are also part of the group.</li>
<li><strong>Public</strong>: That's everybody else. You want to be very careful about the permissions you give them.</li>
</ul>
<ul>
<li><strong>Read</strong>: the ability to read a file. </li>
<li><strong>Write: the ability to modify a file.</strong></li>
<li><strong>Execute</strong>: the ability to execute a file.</li>
</ul>
<p>There's one final thing you need to know. Those permissions are sometimes given numbers:</p>
<ul>
<li><strong>Read</strong>: 4</li>
<li><strong>Write</strong>: 2</li>
<li><strong>Execute</strong>: 1</li>
</ul>
<p>They are also added up. So, if the "Self" has permissions of 7, that means they can Read, Write and Execute. If "Public" has permissions of 4, they can only Read.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Explaining How Permissions Affect Joomla</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277822056646.png" alt="tutuploadsmedia_1277822056646.png" height="187" width="540" /></div>
<div class="StepInstructions">
<p>Go to your administrator control panel and then Help &gt;&gt; System Info &gt;&gt; Directory Permissions.  You'll see a list of all the folders on your site and whether you have permission to access them. On the screen above, I can't access the /images/ folder or /images/banners/ or /images/stories/. If I want to upload images I'll need to change the red "Unwritable" to green "Writable". Here's how to do it:</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Login to Your FTP or Hosting Account</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277822394169.png" alt="tutuploadsmedia_1277822394169.png" height="476" width="364" /></div>
<div class="StepInstructions">
<p>In this example I'm going to use CPanel as it's very common, but really you just need a way to access your files. Inside Cpanel I'm going to click on "File Manager" which will allow me to access your files. However you get there, you should end up seeing a screen like the one below:</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Viewing Your Files</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277822553631.png" alt="tutuploadsmedia_1277822553631.png" height="496" width="225" /></div>
<div class="StepInstructions">
<p>We know we want to change permissions on the /images/ folder so fortunately we can see it in this list.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Choose to Modify Permissions</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277822664928.png" alt="tutuploadsmedia_1277822664928.png" height="282" width="437" /></div>
<div class="StepInstructions">
<p>Check the box next to /images/ and then click "Change Permissions".</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Change Permissions</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1277822761279.png" alt="tutuploadsmedia_1277822761279.png" height="252" width="495" /></div>
<div class="StepInstructions">
<p>You may well see a screen like this. You'll hopefully remember many of the permission settings from the first part of this tutorial. <strong>The one thing to avoid is 777 because that means anyone can do anything to your folders</strong>! The lower the numbers, the safer your site will be. A good setting to try here will be 755 but you may need to experiment because all servers are setup differently. Once you've made a change and clicked "Change Permission", go back to Administrator &gt;&gt; Help &gt;&gt; System Info  &gt;&gt; Directory Permissions to see if the red "Unwritable" has changed to the green "Writable".</p>
</div>
</div>
</div>
{loadposition joomlanewsletter}]]></description>
            <author> info@ostraining.com (Steve Burge)</author>
            <pubDate>Tue, 29 Jun 2010 14:50:41 GMT</pubDate>
            <guid isPermaLink="false">http://www.ostraining.com/newsletters/joomla/how-to-change-joomla-folder-and-file-permissions/</guid>
        </item>
        <item>
            <title>Conditional Statements in Joomla Templates</title>
            <link>http://www.ostraining.com/newsletters/joomla/conditional-statements-in-joomla-templates/</link>
            <description><![CDATA[<p>When you're building a Joomla template you'll often need to make the design flexible. That means that areas of the site can be shown or hidden on different pages. The solution is to use conditional statements and this tutorial will introduce you to what they are and how they're used:</p>



<p>This tutorial is part of our full Joomla Template Class available to all members. <a href="http://www.ostraining.com/joomla-training/">Click here to find out more.</a></p>

<br />
<div id="vpf4921f95baf824205e1b13f22d60357a1"></div><script type="text/javascript" src="http://vpfactory.com/swfobject/swfobject.js"></script><script type="text/javascript">var flashvars = {  htmlPage: document.location,  referralVideo: swfobject.getQueryParamValue("referralVideo"),  settingsFile: "/publicfeed/?id=4921f95baf824205e1b13f22d60357a1"};var params = {  allowFullScreen: "true",  allowScriptAccess: "always"};swfobject.embedSWF("http://vpfactory.com/videoPlayer.swf", "vpf4921f95baf824205e1b13f22d60357a1", "640", "490", "9.0.115", "http://vpfactory.com/swfobject/expressInstall.swf", flashvars, params);</script>	
<br />	
<h3>Session Notes for This Tutorial</h3>

Here is the code we used in this tutorial:
<h4>Index.php Code</h4>
{codecitation}


<link rel="stylesheet" href="http://www.ostraining.com/templates/system/css/general.css" 
type="text/css" />

<link rel="stylesheet" href="http://www.ostraining.com/templates/system/css/system.css" 
type="text/css" />
{/codecitation}

<h4>Template.css Code</h4>
{codecitation} #wrapper { width: 900px; text-align: left;	/*margin: 0 auto; padding: 0px; */} 

img {border: none;}  {/codecitation}

{loadposition joomlanewsletter}]]></description>
            <author> info@ostraining.com (Steve Burge)</author>
            <pubDate>Mon, 28 Jun 2010 16:48:25 GMT</pubDate>
            <guid isPermaLink="false">http://www.ostraining.com/newsletters/joomla/conditional-statements-in-joomla-templates/</guid>
        </item>
        <item>
            <title>The 5 Building Blocks of Every Joomla Template</title>
            <link>http://www.ostraining.com/newsletters/joomla/template-blocks/</link>
            <description><![CDATA[<img style="margin: 10px; float: right;" alt="style="margin: 10px; float: left;"" src="http://www.ostraining.com/images/stories/joomlatemplate/blocks.jpg" height="200" width="135" /><p><strong>Joomla templates are not rocket science</strong>. You can learn how to build and modify them. We can show you how. Interested? Read on ...</p>

<p>In order to get started, you'll need to understand the 5 essential building blocks of every Joomla template. In the 5 tutorials below we guide you through them all:

<ul>
<li><a href="http://www.ostraining.com/#1">Part 1: Template setup and templateDetails.xml</a></li>

<li><a href="http://www.ostraining.com/#2">Part 2: Index.php</a></li>
<li><a href="http://www.ostraining.com/#3">Part 3: CSS / Cascading Style Sheets</a></li>
<li><a href="http://www.ostraining.com/#4">Part 4: Images</a></li>
<li><a href="http://www.ostraining.com/#5">Part 5: Security</a></li>
</ul>



<p>These tutorials are part of our full Joomla Template Class available to all members. <a href="http://www.ostraining.com/joomla-training/">Click here to find out more</a>.</p>

<h3><a name="1">Part 1: Template Setup and templateDetails.xml</a></h3>

<div id="vpf55c567fd4395ecef6d936cf77b8d5b2b"></div><script type="text/javascript" src="http://vpfactory.com/swfobject/swfobject.js"></script><script type="text/javascript">var flashvars = {  htmlPage: document.location,  referralVideo: swfobject.getQueryParamValue("referralVideo"),  settingsFile: "/publicfeed/?id=55c567fd4395ecef6d936cf77b8d5b2b"};var params = {  allowFullScreen: "true",  allowScriptAccess: "always"};swfobject.embedSWF("http://vpfactory.com/videoPlayer.swf", "vpf55c567fd4395ecef6d936cf77b8d5b2b", "840", "550", "9.0.115", "http://vpfactory.com/swfobject/expressInstall.swf", flashvars, params);</script>	
<br /><br />

<h4>Part 1: Session Notes</h4>
<p>Copy and Paste:</p>
{codecitation}<install version="1.5" type="template"> 
  <name>test</name>
  <version>Alpha</version> 
  <creationDate>10/16/09</creationDate> 
  <author>My Name</author>
</install>
{/codecitation}


<h3><a name="2">Part 2: index.php</a></h3>

<div id="vpfced556cd9f9c0c8315cfbe0744a3baf0"></div><script type="text/javascript" src="http://vpfactory.com/swfobject/swfobject.js"></script><script type="text/javascript">var flashvars = {  htmlPage: document.location,  referralVideo: swfobject.getQueryParamValue("referralVideo"),  settingsFile: "/publicfeed/?id=ced556cd9f9c0c8315cfbe0744a3baf0"};var params = {  allowFullScreen: "true",  allowScriptAccess: "always"};swfobject.embedSWF("http://vpfactory.com/videoPlayer.swf", "vpfced556cd9f9c0c8315cfbe0744a3baf0", "840", "550", "9.0.115", "http://vpfactory.com/swfobject/expressInstall.swf", flashvars, params);</script>	<br /><br />

<h4>Part 2: Session Notes</h4>

Copy and Paste:

{codecitation}
<jdoc:include type="component" />

<jdoc:include type="modules" name="left" />

<html>
 <head>
 </head>
 <body>
 </body>
</html>

{/codecitation}



<h3><a name="3">Part 3: CSS - Cascading Style Sheets</a></h3>


<div id="vpf0e095e054ee94774d6a496099eb1cf6a"></div><script type="text/javascript" src="http://vpfactory.com/swfobject/swfobject.js"></script><script type="text/javascript">var flashvars = {  htmlPage: document.location,  referralVideo: swfobject.getQueryParamValue("referralVideo"),  settingsFile: "/publicfeed/?id=0e095e054ee94774d6a496099eb1cf6a"};var params = {  allowFullScreen: "true",  allowScriptAccess: "always"};swfobject.embedSWF("http://vpfactory.com/videoPlayer.swf", "vpf0e095e054ee94774d6a496099eb1cf6a", "840", "550", "9.0.115", "http://vpfactory.com/swfobject/expressInstall.swf", flashvars, params);</script>	

<br /><br />
<h4>Part 3: Session Notes</h4>
{codecitation}
body { background: #EF1789; color: #EFE717; } 
a { color: #333; text-decoration: underline; }
img { border: 0px; }
{/codecitation}

<h4>Part 3: CSS Tutorial Links</h4>
<ul>
<li><a href="http://www.w3schools.com/css/default.asp" target="_blank">http://www.w3schools.com/css/default.asp</a></li>
<li><a href="http://css.maxdesign.com.au/" target="_blank">http://css.maxdesign.com.au/</a></li>
</ul>



<h3><a name="4">Part 4: Images</a></h3>



<div id="vpf5680522b8e2bb01943234bce7bf84534"></div><script type="text/javascript" src="http://vpfactory.com/swfobject/swfobject.js"></script><script type="text/javascript">var flashvars = {  htmlPage: document.location,  referralVideo: swfobject.getQueryParamValue("referralVideo"),  settingsFile: "/publicfeed/?id=5680522b8e2bb01943234bce7bf84534"};var params = {  allowFullScreen: "true",  allowScriptAccess: "always"};swfobject.embedSWF("http://vpfactory.com/videoPlayer.swf", "vpf5680522b8e2bb01943234bce7bf84534", "840", "550", "9.0.115", "http://vpfactory.com/swfobject/expressInstall.swf", flashvars, params);</script>	
<br /><br />

<h4>Part 4: Session Notes</h4>
<a class="jce_file" title="bg.png" href="http://www.ostraining.com/images/stories/joomlatemplate/bg.png"><img class="jce_icon" src="http://www.ostraining.com/plugins/editors/jce/tiny_mce/plugins/filemanager/img/ext/jpg_small.gif" title="png" style="border: 0px; vertical-align: middle;" /> bg.png</a> <br />(Right Click - Save As - then save to your images directory for your template)<br /><br />
<h4>Code</h4>
{codecitation}
body { background: url(../images/bg.png) repeat; }{/codecitation}



<h3><a name="5">Part 5: Security</a></h3>

<p>We need to make sure that our template is secure and not easily hacked.</p>
<img style="margin: 10px; float: right;" alt="blocks" src="http://www.ostraining.com/images/stories/joomlatemplate/blocks.jpg" height="200" width="135" /><p>There are two essentials steps we need to make that happen:</p>
<ol>
<li>Add this line to the very, very top of index.php. This means that only Joomla can run commands on the file – no outside scripts: {codecitation}<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );?>{/codecitation}</li>
<li>Add a blank file called index.html to each folder. That means the main /test/ folder, plus /css/ and /images/. Why? To hide your folder contents. Without an index.html, anyone could see and browse all your files.</li>
</ol>

<p>These tutorials you've just seen are part of our full Joomla Template Class available to all members. <a href="http://www.ostraining.com/joomla-training/">Click here to take your Joomla template skills to the next level</a>.</p>]]></description>
            <author> info@ostraining.com (Steve Burge)</author>
            <pubDate>Thu, 24 Jun 2010 18:42:49 GMT</pubDate>
            <guid isPermaLink="false">http://www.ostraining.com/newsletters/joomla/template-blocks/</guid>
        </item>
        <item>
            <title>Avoid Pasting Word Articles Into Joomla</title>
            <link>http://www.ostraining.com/newsletters/joomla/avoid-pasting-word-articles-into-joomla/</link>
            <description><![CDATA[<div class="LessonContent">
<div class="LessonSummary">
<p>Word produces horrible code that makes a mess of almost every web page. I'd definitely recommend that you avoid pasting Word documents directly into Joomla articles. Here's an explanation:</p>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Creating a Web Page with Word</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1276627638490.png" alt="tutuploadsmedia_1276627638490.png" height="279" width="382" /></div>
<div class="StepInstructions">
<p>Using Word, write just one line. In this example I've written "One Simple Sentence".</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Save as a Web Page</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1276627744611.png" alt="tutuploadsmedia_1276627744611.png" height="219" width="287" /></div>
<div class="StepInstructions">
<p>Go to File &gt;&gt; Save As and choose to save the file as a "Web Page".</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Open the Web Page in Your Browser</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1276627969637.png" alt="tutuploadsmedia_1276627969637.png" height="161" width="247" /></div>
<div class="StepInstructions">
<p>I've double-clicked on the file I saved and it's open in my web browser.</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">View the Source Code</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1276628005237.png" alt="tutuploadsmedia_1276628005237.png" height="284" width="393" /></div>
<div class="StepInstructions">
<p>Right-click on the screen and click on "View Source"</p>
</div>
</div>
<div class="LessonStep top">
<h3 class="StepTitle">Browse Through the Code</h3>
<div class="StepImage"><img class="border" src="http://www.ostraining.com/images/stories/tutuploadsmedia_1276628104269.png" alt="tutuploadsmedia_1276628104269.png" height="472" width="419" /></div>
<div class="StepInstructions">
<p>Scroll and scroll and scroll and scroll. Finally at the very bottom of the page you'll find the code that puts "One Simple Sentence" on the page. Everything else is junk. Our recommendation is to cut-and-paste your Word document into Notepad or Wordpad first and then into Joomla. There are lots of other alternatives, but please avoid pasting directly from Word into Joomla. You'll avoid having pages and pages of extra code to struggle with.</p>
</div>
</div>
</div>
{loadposition joomlanewsletter}]]></description>
            <author> info@ostraining.com (Steve Burge)</author>
            <pubDate>Tue, 15 Jun 2010 18:58:00 GMT</pubDate>
            <guid isPermaLink="false">http://www.ostraining.com/newsletters/joomla/avoid-pasting-word-articles-into-joomla/</guid>
        </item>
    </channel>
</rss>
