<?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; typoscript</title>
	<atom:link href="http://huuah.com/tag/typoscript/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>How to setup up different top images in TYPO3</title>
		<link>http://huuah.com/how-to-setup-up-different-top-images-in-typo3/</link>
		<comments>http://huuah.com/how-to-setup-up-different-top-images-in-typo3/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 20:05:00 +0000</pubDate>
		<dc:creator>js - huuah</dc:creator>
				<category><![CDATA[TYPO3]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[TemplaVoila]]></category>
		<category><![CDATA[typoscript]]></category>

		<guid isPermaLink="false">http://huuah.com/?p=90</guid>
		<description><![CDATA[<p>This post will be about how to setup a TYPO3 template, with the option to have a different image on top of each page.</p>
<p>I&#8217;m using TemplaVoila with a very simple setup. 3 fields &#8211; header image, menu and a content-element. The focus will be on the header image element,&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>This post will be about how to setup a TYPO3 template, with the option to have a different image on top of each page.</p>
<p>I&#8217;m using TemplaVoila with a very simple setup. 3 fields &#8211; header image, menu and a content-element. The focus will be on the header image element, which in my case is mapped to a &lt;div&nbsp;&gt; and saved as the type &#8220;<strong>TypoScript Object Path</strong>&#8221; with an &#8220;<strong>Object Path</strong>&#8221; named &#8220;<em>lib.headerimg</em>&#8220;.</p>
<p>The next step is to setup the template to insert an image in the <em>lib.headerimg</em>. This is done by inserting to following into the <strong>Template Setup</strong> field:</p>
<pre class="brush: plain;">
lib.headerimg = IMAGE
lib.headerimg {
  #this is the default image, for pages with no specific image add
  file = fileadmin/default.gif

  #if the selected page has an added image, the set this instead of the default above
  file.import.override.field = media

  #fetch image from the upload/media/ folder
  file.import.data = levelmedia: -1, &quot;slide&quot;
  file.import = uploads/media/

  #lock the configuration to use only the first added image
  file.import.listNum = 0
}</pre>
<p>That&#8217;s it! Save, clear cache and view your site. Every page should now be showing the default.gif image as entered in the template configuration.</p>
<p>To make the image change for a single page, your should go the page property for the page, select the &#8220;<strong>Resources</strong>&#8221; tab and upload an image in the &#8220;<strong>Files</strong>&#8221; section. When the image is uploaded, this page should now be showing the newly added image.</p>
]]></content:encoded>
			<wfw:commentRss>http://huuah.com/how-to-setup-up-different-top-images-in-typo3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
