<?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; Sourcecode</title>
	<atom:link href="http://www.typo3-addict.com/tag/sourcecode/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 SEO: The Basics&#8230;</title>
		<link>http://www.typo3-addict.com/2009/10/typo3-seo-the-basics/</link>
		<comments>http://www.typo3-addict.com/2009/10/typo3-seo-the-basics/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 12:10:19 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Sourcecode]]></category>
		<category><![CDATA[Typoscript]]></category>

		<guid isPermaLink="false">http://www.typo3-addict.com/?p=556</guid>
		<description><![CDATA[In this post I'm going to show you some basics of SEO in TYPO3, I will explain how you can easily handle SEO stuff within TYPO3. This is not a "best practise" nor is it a tutorial on how SEO works. But if you're new to TYPO3, or SEO in TYPO3 you'll find some useful things here.]]></description>
			<content:encoded><![CDATA[<p>In this post I&#8217;m going to show you some basics of SEO in TYPO3, I will explain how you can easily handle SEO stuff within TYPO3. This is not a &#8220;best practise&#8221; nor is it a tutorial on how SEO works. But if you&#8217;re new to TYPO3, or SEO in TYPO3 you&#8217;ll find some useful things here.</p>
<h4>Basic no. 1: A clean source code.</h4>
<p>A clean source code makes it easier for search engines to crawl your website. For that, you need to clean up the default HTML output done by TYPO3. Use this line of TypoScript a put it in your template Setup section:<span id="more-556"></span></p>
<pre># Clean up prefixes in source code
config.disablePrefixComment = 1</pre>
<p>This will clean up the prefixes made with every content-element. This should be a relief! For a more complete cleanup please <a title="Clean up your sourcecode!" href="http://www.typo3-addict.com/2009/02/updated-cleanup-your-fe-sourcecode/">go to this post</a>.</p>
<h4>Basic no. 2: Make you headers better.</h4>
<p>By default, every content-element header is a &lt;h1&gt; header in TYPO3. For your SEO it&#8217;s better to just have one &lt;h1&gt; tag per page. To convert all these &lt;h1&gt; tags into &lt;h2&gt; tags you need to put the following line in your template Constants section:</p>
<pre># Convert default H1 tags into H2 tags
content.defaultHeaderType = 2</pre>
<p>You can now add a &lt;h1&gt; tag manually to the page, or generate one dynamically using TypoScript.</p>
<h4>Basic no. 3: Images.</h4>
<p>By default, images which are scaled, croped or in any other way modified by TYPO3 are given a random name. For example:</p>
<pre>/typo3temp/pics/b3e43c4bb3.jpg.</pre>
<p>By installing the extension: <a title="Nicer image names" href="http://typo3.org/extensions/repository/view/fl_realurl_image/current/">fl_realurl_image</a>, your images will get a nicer name. Install the extension and you&#8217;re done. Images will now be named like:</p>
<pre>/typo3temp/fl_realurl_image/your_image.jpg</pre>
<h4>Basic no. 4: Page title.</h4>
<p>The pagetitle is important for your SEO ranking. This title needs to summerize the pagecontent as close as posible. I suggest you manually edit these to your needs. Someone (can&#8217;t rememer the name, sorry) once told me: Use an inverted breadcrumb path as a pagetitle. The theory behind this: People think about their page names, the lower in the pagetree the more specific. If you invert this you have a pretty close to content path and also the main keywords which people interested in this subject will search for.</p>
<h4>Basic no. 5: URL&#8217;s.</h4>
<p>The default URL&#8217;s of TYPO3 are not readable, the solution to this problem is RealURL. Since this extension is really popular I&#8217;m not going to explain it, this has been done more than enough times. Just search the web for a good tutorial. I can recommend the extension &#8220;danp_realurlconfigurator&#8221; though, which gives you a nice configurator.</p>
<h4>Basic no. 6: Description and meta tags.</h4>
<p>A really important SEO rule is to have unique page descriptions and meta tags. Since these fields have to match the page content as close as posible it&#8217;s only logical to have them in your page configuration. If you edit your page you&#8217;ll find the second tab is all about meta data. Here you can fill in the description and meta tags for your page. To actually use these field in the frontend source code you&#8217;ll need to following lines in your template Setup section:</p>
<pre># This will activate the page meta data
page.meta.keywords.field = keywords
page.meta.description.field = description</pre>
<h4>Basic no. 7: An XML sitemap for Google Webmaster Center.</h4>
<p>If you want Google to track your page changes and crawl them accordingly you can submit a XML sitemap. If you do not know what a XML sitemap is <a title="Google Sitemaps" href="http://www.google.com/support/webmasters/bin/answer.py?hl=en&amp;answer=82300">please read this first</a>. There are a couple of extensions to generate such a sitemap dynamically in TYPO3.</p>
<h4>Basic no. 8: JavaScript at the bottom of your source.</h4>
<pre>Deprecated since version 4.3! Use page.includeJSFooter instead.</pre>
<p>This might be more of a speed thing rather than SEO, but still&#8230; By default TYPO3 will put javascript includes in your header.</p>
<pre>-- SNIP: Deprecated snippet --</pre>
<p>TYPO3 also generates a default JavaScript which can be removed by putting this line in your template Setup section:</p>
<pre># Remove the default JS file in the header
config.removeDefaultJS = 1</pre>
<p>Make sure you copy the content of this file to your custom one before removing it.</p>
<h4>Tip: Extension <a title="Seo_Basics extension" href="http://typo3.org/extensions/repository/view/seo_basics/current/">seo_basics</a></h4>
<p style="text-align: left;">Benjamin Mack has developed an extension (<a title="Seo_Basics extension" href="http://typo3.org/extensions/repository/view/seo_basics/current/">seo_basics)</a> which is really useful. It not only generates the XML sitemap by default, but it also helps you to update the page descriptions and meta tags. Download and install the extension through the extension manager. Once installed, go to http://www.your-website.com/sitemap.xml, you&#8217;ll notice it works right out of the box. (If it doesn&#8217;t, please check you RealURL configuration). But this is just the beginning. Go to the &#8220;info&#8221; module and select your root website page. Now, in the drop-down box choose &#8220;SEO Management&#8221;.</p>
<p>(Update: 17-01-2010: Breaking change in extension update, include static template first!)</p>
<div id="attachment_569" class="wp-caption aligncenter" style="width: 600px"><a href="http://www.typo3-addict.com/wp-content/uploads/2009/10/seo_basics_11.png"><img class="size-full wp-image-569 " title="Seo Basics: Screen 1" src="http://www.typo3-addict.com/wp-content/uploads/2009/10/seo_basics_11.png" alt="Click to enlarge!" width="590" /></a><p class="wp-caption-text">Click to enlarge!</p></div>
<p style="text-align: left;">Here you&#8217;ll see all pages with there url-path, title, description and metatags. Click on the &#8220;Edit SEO fields&#8221;. Now you&#8217;ll notice you can edit all fields of all pages within one screen! Once you start filling in the details you&#8217;ll notice the color changes while typing:</p>
<p style="text-align: left;">Yellow: To little text<br />
Green: Just good!<br />
Red: To much text</p>
<p>If you would like to add META Abstract &amp; Author to seo_basics please look at this post of Michael Cannon: <a href="http://www.acqal.com/blog/a/article/add-meta-abstract-author-to-seo-basics/">http://www.acqal.com/blog/a/article/add-meta-abstract-author-to-seo-basics/</a></p>
<div id="attachment_570" class="wp-caption aligncenter" style="width: 600px"><a href="http://www.typo3-addict.com/wp-content/uploads/2009/10/seo_basics_2.png"><img class="size-full wp-image-570 " title="seo_basics_2" src="http://www.typo3-addict.com/wp-content/uploads/2009/10/seo_basics_2.png" alt="Click to enlarge!" width="590" /></a><p class="wp-caption-text">Click to enlarge!</p></div>
<h4>Hope you liked this post:)</h4>
<p>These basics are far from a complete reference but I hope they will be of use. If you&#8217;ve got suggestions, please don&#8217;t hesitate to comment&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2009/10/typo3-seo-the-basics/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>TYPO3: Cleanup your FE HTML source code</title>
		<link>http://www.typo3-addict.com/2009/02/updated-cleanup-your-fe-sourcecode/</link>
		<comments>http://www.typo3-addict.com/2009/02/updated-cleanup-your-fe-sourcecode/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 08:25:34 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Sourcecode]]></category>
		<category><![CDATA[Typoscript]]></category>

		<guid isPermaLink="false">http://www.typo-addict.com/?p=370</guid>
		<description><![CDATA[TYPO3 produces a lot of comments, prefixes, metatags etcetra&#8230; You might want to clean your HTML source code when your website is complete. In order to do this you need TypoScript! Note 1: This is a 'living document' and will be updated when I discover new or better methodes. Less = more Last update: 3 [...]]]></description>
			<content:encoded><![CDATA[<p>TYPO3 produces a lot of comments, prefixes, metatags etcetra&#8230; You might want to clean your HTML source code when your website is complete. In order to do this you need TypoScript!<br />
<span id="more-370"></span></p>
<pre>Note 1: This is a 'living document' and will be updated when I
        discover new or better methodes. Less = more <img src='http://www.typo3-addict.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
        <strong>Last update: 3 November 2009.</strong></pre>
<pre>Note 2: This might be a bit too much cleanup so please adjust
        the code to your needs. I'm working on more documentation!</pre>
<pre>config {
    # Disable the comment which comes with every content element
    disablePrefixComment = 1
    # Disable the border attribute in images
    disableImgBorderAttr = 1
    # Put inline css styles into a external css file
    inlineStyle2TempFile = 1
    # In the title tag, set the page title before the website title
    pageTitleFirst = 1
    # Remove the default JS file (copy into custom JS file!)
    removeDefaultJS = 1
}

tt_content {
   stdWrap.prefixComment &gt;
   # Warning: By unsetting `tt_content.stdWrap.dataWrap`, you
   # remove the ability for anchor links to work when selecting
   # content elements on a page for a link.
   stdWrap.dataWrap &gt;
   stdWrap.innerWrap.cObject &gt;
   stdWrap.innerWrap2 &gt;
}

tt_content.image.20 {
   imageStdWrap.dataWrap &gt;
   imageStdWrapNoWidth.wrap &gt;
   imageColumnStdWrap.dataWrap &gt;
   # Unsettting rendering.dl will clean up the DL tags but might
   # break your CSS code when applied afterwards.
   rendering.dl &gt;
}

lib {
   parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class &gt;
   stdheader {
     stdWrap {
       dataWrap &gt;
       prefixComment &gt;
       }
     10.stdWrap.wrap &gt;
   }
}

# Below: Use only if you have DC tags in your source
# This is often seen but not by default

plugin.meta.flags.DC = 0
page.headerData.999 &lt; plugin.meta</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2009/02/updated-cleanup-your-fe-sourcecode/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>TYPO3: Comment in the source code</title>
		<link>http://www.typo3-addict.com/2008/09/some-made-by-comment-in-the-source-code/</link>
		<comments>http://www.typo3-addict.com/2008/09/some-made-by-comment-in-the-source-code/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 21:22:12 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Sourcecode]]></category>
		<category><![CDATA[Typoscript]]></category>

		<guid isPermaLink="false">http://blog.mmwebdesign.eu/?p=26</guid>
		<description><![CDATA[A lot of web developers place their (company)name in top of the source code. Just to let people know who made the website or add contact information. You can do this to with TYPO3. Just use the following Typoscript Setup: ### Headercomment ### config.headerComment ( This website was made by me! )]]></description>
			<content:encoded><![CDATA[<p>A lot of web developers place their (company)name in top of the source code. Just to let people know who made the website or add contact information. You can do this to with TYPO3. Just use the following Typoscript Setup:</p>
<pre lang="css">### Headercomment ###
config.headerComment (
This website was made by me!
)</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2008/09/some-made-by-comment-in-the-source-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

