<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webdevelopment at huuah.com &#187; template</title>
	<atom:link href="http://huuah.com/tag/template/feed/" rel="self" type="application/rss+xml" />
	<link>http://huuah.com</link>
	<description>webdevelopment, cms, php, javascript etc</description>
	<lastBuildDate>Sat, 04 Sep 2010 22:55:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Including Javascript or CSS in your TYPO3 template</title>
		<link>http://huuah.com/including-javascript-or-css-in-your-typo3-template/</link>
		<comments>http://huuah.com/including-javascript-or-css-in-your-typo3-template/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 20:46:40 +0000</pubDate>
		<dc:creator>js - huuah</dc:creator>
				<category><![CDATA[TYPO3]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://huuah.com/?p=409</guid>
		<description><![CDATA[<p>Have you ever had the need for inserting extra stylesheet or javascript files in your TYPO3 template? I am used to having a TemplaVoila setup, which has the nice feature of mapping part of the header as part of the template, but this is not really that flexible when using&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Have you ever had the need for inserting extra stylesheet or javascript files in your TYPO3 template? I am used to having a TemplaVoila setup, which has the nice feature of mapping part of the header as part of the template, but this is not really that flexible when using extension template and etc.</p>
<p>An easy way of controlling this, is to setup the javascript and css files from the template configuration. There are some different ways of doing this and I will demonstrate two of them here.</p>
<p>The template configuration examples should be self-explainable, so I will not comment them futher:</p>
<p><strong>Javascript option 1 &#8211; headerData:</strong></p>
<pre class="brush: plain;">
page.headerData.230 = TEXT
page.headerData.230.value = &lt;script type=&quot;text/javascript&quot; src=&quot;/fileadmin/myjavascript.js&quot;&gt;&lt;/script&gt;
</pre>
<p><strong>Javascript option 2 &#8211; includeJS:</strong></p>
<pre class="brush: plain;">
page.includeJS {
  file1 = fileadmin/myjavascript.js
  file1.type = application/x-javascript
  file2 = fileadmin/myjavascript2.js
}
</pre>
<p><strong>CSS option 1 &#8211; headerData</strong></p>
<pre class="brush: plain;">
page.headerData.231 = TEXT
page.headerData.231.value = &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/fileadmin/stylesheet.css&quot; /&gt;
</pre>
<p><strong>CSS option 2 &#8211; includeCSS</strong></p>
<pre class="brush: plain;">
page.includeCSS {
  file1 = fileadmin/stylesheet.css
}
</pre>
<p><strong>CSS option 3 &#8211; page.stylesheet</strong></p>
<pre class="brush: plain;">
page.stylesheet = fileadmin/stylesheet.css
</pre>
<p>Hope this tip can be helpful. Please notice that the CSS option 3 only enables you to <strong>set 1 stylesheet</strong>, where the other examples support multiple files.</p>
]]></content:encoded>
			<wfw:commentRss>http://huuah.com/including-javascript-or-css-in-your-typo3-template/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
