<?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>TYPO3-Addict &#187; Headers</title>
	<atom:link href="http://www.typo3-addict.com/tag/headers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.typo3-addict.com</link>
	<description>For those addicted to TYPO3</description>
	<lastBuildDate>Wed, 06 Jul 2011 08:08:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>TYPO3: Create a custom header layout</title>
		<link>http://www.typo3-addict.com/2010/03/a-custom-header-layout/</link>
		<comments>http://www.typo3-addict.com/2010/03/a-custom-header-layout/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 09:17:32 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Headers]]></category>
		<category><![CDATA[Typoscript]]></category>

		<guid isPermaLink="false">http://www.typo-addict.com/?p=365</guid>
		<description><![CDATA[By default, TYPO3 has five default header layouts from which to choose. Each correspond to the H1 to H5 tags. With this TypoScript snippet you can adjust one of them and set it to your own needs. For example a header with a date attached to it. This way you can make a header like: [...]]]></description>
			<content:encoded><![CDATA[<p>By default, TYPO3 has five default header layouts from which to choose. Each correspond to the H1 to H5 tags. With this TypoScript snippet you can adjust one of them and set it to your own needs. For example a header with a date attached to it. This way you can make a header like: Latest news of {date}. Or what about: Welcome back {username}?</p>
<p><span id="more-365"></span></p>
<h4>A header with a date attached:</h4>
<pre># Overwrite layout 5
# Create an array of objects
lib.stdheader.10.5 = COA
lib.stdheader.10.5 {
   # First object is a copy of the default header layout 1,
   # so the basic input is printed. (e.g. the field 'header')
   10 &lt; lib.stdheader.10.1
   10.fontTag = &lt;h2{register:headerStyle}{register:headerClass}&gt;|

   # Second object: The date which we want to be appended.
   20 = TEXT
   20 {
      data = date:U
      strftime = %A %e %B
   }

   # Third object: Closing the H2 tag which we opened
   # in the first object.
   30 = TEXT
   30.value = &lt;/h2&gt;
}</pre>
<h4>A header with the username</h4>
<pre># Overwrite layout 5
# Create an array of objects
lib.stdheader.10.5 = COA
lib.stdheader.10.5 {
   # First object is a copy of the default header layout 1,
   # so the basic input is printed. (e.g. the field 'header')
   10 &lt; lib.stdheader.10.1
   10.fontTag = &lt;h2{register:headerStyle}{register:headerClass}&gt;|

   # Second object: insert the username.
   20 = TEXT
   20.value = {TSFE:fe_user|user|name}
   20.insertData = 1

   # Third object: Closing the H2 tag which we opened
   # in the first object.
   30 = TEXT
   30.value = &lt;/h2&gt;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2010/03/a-custom-header-layout/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TYPO3: A multiple line graphical header</title>
		<link>http://www.typo3-addict.com/2010/01/typo3-a-multiple-line-graphical-header/</link>
		<comments>http://www.typo3-addict.com/2010/01/typo3-a-multiple-line-graphical-header/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 19:01:32 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[GIFBUILDER]]></category>
		<category><![CDATA[Headers]]></category>
		<category><![CDATA[Typoscript]]></category>
		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://www.typo3-addict.com/?p=855</guid>
		<description><![CDATA[Graphical headers can be just that little extra thing your design needs. Luckily TYPO3 can manage this pretty well using the GIFBUILDER. But what if you have a long headertext? What if you need the headertext to display over more than just one line? GIFBUILDER can&#8217;t actually read your headertext so there&#8217;s no way it [...]]]></description>
			<content:encoded><![CDATA[<p>Graphical headers can be just that little extra thing your design needs. Luckily TYPO3 can manage this pretty well using the GIFBUILDER. But what if you have a long headertext? What if you need the headertext to display over more than just one line?</p>
<p>GIFBUILDER can&#8217;t actually read your headertext so there&#8217;s no way it can determine when to use multiple lines by itself (at least, not without making weird cuts in the middle of your words). Therefore, we need to tell GIFBUILDER when to break the line.</p>
<p><span id="more-855"></span>Since we only use one H1 tag per seo, this snippet modifies the second header layout.</p>
<pre># Start overriding the second header layout.
lib.stdheader.10.2 &gt;
lib.stdheader.10.2 = COA
lib.stdheader.10.2 {
  # Wrap the whole header
  wrap = &lt;div&gt;|&lt;/div&gt;
  10 = IMAGE
  10 {
     # Wrap the first line
     wrap = &lt;div&gt;|&lt;/div&gt;
     file = GIFBUILDER
     file {
        XY = [10.w] + 4, [10.h] + 8
        backColor = #FFFFFF
        10 = TEXT
        10 {
           text.field = header
           # Set the fontfile and font-properties.
           fontFile = fileadmin/fonts/customfont.ttf
           fontSize = 22
           fontColor = #000000
           offset = 0,18
           # Select the first line of our sentence.
           text.listNum = 0
           # Here we determine the break, in this case a pipe (|).
           text.listNum.splitChar = |
        }
     }
  }
  # Check if the second line is there...
  20 = COA
  20.if {
     value.field = header
     isTrue.cObject = TEXT
     isTrue.cObject.field = header
     # The second line starts after the pipe
     isTrue.cObject.listNum.splitChar = |
     # Now use the second line of our sentence
     isTrue.cObject.listNum = 1
  }
  # If the second line is there, use the same markup
  20.10 &lt; .10
  20.10 {
     file {
        10.text.listNum = 1
        10.text.listNum.splitChar = |
     }
  }
}
</pre>
<p>Just to be clear: A header with two lines would now be like:<br />
This is a very long header which will | be displayed over two lines.</p>
<p><a href="http://www.typo3-addict.com/wp-content/uploads/2010/01/header_entry.png"><img class="size-full wp-image-871 alignnone" title="header_entry" src="http://www.typo3-addict.com/wp-content/uploads/2010/01/header_entry.png" alt="" width="552" height="52" /></a></p>
<p>Result:</p>
<p><a href="http://www.typo3-addict.com/wp-content/uploads/2010/01/result.png"><img class="size-full wp-image-872 alignnone" title="result" src="http://www.typo3-addict.com/wp-content/uploads/2010/01/result.png" alt="" width="418" height="115" /></a></p>
<p>The pipe will be the place where you split the header. Ofcourse, all the font properties used in the first line are also available in the second line, so play all you like with different fonts and markup on every other line.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2010/01/typo3-a-multiple-line-graphical-header/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>TYPO3 SEO: Combining graphical headers with text headers</title>
		<link>http://www.typo3-addict.com/2009/09/typo3-seo-combining-graphical-headers-with-text-headers/</link>
		<comments>http://www.typo3-addict.com/2009/09/typo3-seo-combining-graphical-headers-with-text-headers/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 08:00:50 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[GIFBUILDER]]></category>
		<category><![CDATA[Headers]]></category>
		<category><![CDATA[Typoscript]]></category>

		<guid isPermaLink="false">http://www.typo3-addict.com/?p=539</guid>
		<description><![CDATA[When you want to use an exotic font you&#8217;ll always end up with SEO problems. Ofcourse there is SIFR but this requires flash and there are still a lot of big companies who won&#8217;t allow flash on their computers. And even though you can set alt and titles attributes for graphical headers using TypoScript, a [...]]]></description>
			<content:encoded><![CDATA[<p>When you want to use an exotic font you&#8217;ll always end up with SEO problems. Ofcourse there is SIFR but this requires flash and there are still a lot of big companies who won&#8217;t allow flash on their computers. And even though you can set alt and titles attributes for graphical headers using TypoScript, a text header is always better for SEO.</p>
<p>Here&#8217;s a bit of TypoScript which produces both a graphical and a text header for the same single content element. You can display the graphical header and hide the text header using css (for example: indent: -9999). This way users will experience the nice graphical header while search engines will still be able to crawl the text header. We&#8217;ll give the text-header a H2 attribute so the importants is obvious to the search engine.</p>
<p><span id="more-539"></span></p>
<p>This snippets produces a H2 header with the same headertitle for both the graphical header as the text header:</p>
<pre>lib.stdheader.10.2 = COA
lib.stdheader.10.2 {
	10 = IMAGE
	10 {
   		wrap = &lt;span&gt;|&lt;/span&gt;
                file = GIFBUILDER
   		file {
   			XY = [10.w]+1,60
   			backColor = #ffffff
   			transparentBackground = 1
   			10 = TEXT
   			10 {
   				text.field = header
   				text.current = 1
   				fontSize = 52
   				offset = 0,50
   				fontFile =  path/to/your/font.ttf
   				fontColor = #000000
   				niceText = 1
    			}
   		}
   	}
	20 = TEXT
	20 {
		wrap = &lt;h2 class="headerDesc"&gt;|&lt;/h2&gt;
                field = header
	}
}</pre>
<p>Maybe you would like to have a different alt and title text with the graphical header instead of the actually image text and also want this different text to show in your text-header. Since TYPO3 has no extra BE-field for this issue, you should use &#8220;Text and Image&#8221; instead of &#8220;Text&#8221;. This way you&#8217;ll have more BE-fields you can use. In this example I&#8217;ll use the &#8220;Long URL Description&#8221; field to define our alt, title and text-header content.</p>
<pre>lib.stdheader.10.2 = COA
lib.stdheader.10.2 {
	10 = IMAGE
	10 {
   		alttext.field = longdescURL
   		titleText.field = longdescURL
   		wrap =  &lt;span&gt;| &lt;/span&gt;
   		file = GIFBUILDER
   		file {
   			XY = [10.w]+1,60
   			backColor = #ffffff
   			transparentBackground = 1
   			10 = TEXT
   			10 {
   				text.field = header
   				text.current = 1
   				fontSize = 52
   				offset = 0,50
   				fontFile =  path/to/your/font.ttf
   				fontColor = #000000
   				niceText = 1
    			}
   		}
   	}
	20 = TEXT
	20 {
		wrap =  &lt;h2 class="headerDesc"&gt;|&lt;/h2&gt;
  		field = longdescURL
	}
}</pre>
<p>I hope this will be useful. If you have any questions or comments please don&#8217;t hesitate&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2009/09/typo3-seo-combining-graphical-headers-with-text-headers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>TYPO3: A graphical content header</title>
		<link>http://www.typo3-addict.com/2008/08/a-graphical-content-header/</link>
		<comments>http://www.typo3-addict.com/2008/08/a-graphical-content-header/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 21:14:43 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[GMENU]]></category>
		<category><![CDATA[Headers]]></category>
		<category><![CDATA[Typoscript]]></category>

		<guid isPermaLink="false">http://blog.mmwebdesign.eu/?p=20</guid>
		<description><![CDATA[Ever wondered how to make a dynamic nice graphical header? TYPO3 can make these by using the GIFBUILDER on the webserver. To make the magic happen you&#8217;ll need to overwrite the default headers by using this Typoscript Setup. You&#8217;ll probably need to adjust some of the code to get a nice output depending on the [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wondered how to make a dynamic nice graphical header? TYPO3 can make these by using the GIFBUILDER on the webserver. To make the magic happen you&#8217;ll need to overwrite the default headers by using this Typoscript Setup. You&#8217;ll probably need to adjust some of the code to get a nice output depending on the font your using. Beware that a graphical header uses much more time to display than a usual text header.<span id="more-20"></span></p>
<pre lang="css">lib.stdheader.10.1 = IMAGE
lib.stdheader.10.1 {
  alttext.field = header
  wrap =
  file = GIFBUILDER
  file {
   XY = [10.w],35
   backColor = #c5a888
   transparentBackground = 1

   10 = TEXT
   10 {
    text.field = header
    text.current = 1
    fontSize = 40
    offset = 0,20
    fontFile =  fileadmin/   ### YOUR FONTFILE (TTF)
    fontColor = #1c150d
   }
  }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2008/08/a-graphical-content-header/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

