<?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"
	>

<channel>
	<title>Words Of Wisdom</title>
	<atom:link href="http://www.typo3tricks.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.typo3tricks.com</link>
	<description>Today: "Irony" -- Why Use Wordpress For a TYPO3-related blog?</description>
	<pubDate>Sun, 21 Sep 2008 04:38:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>DAM: Hiding fields through TSconfig</title>
		<link>http://www.typo3tricks.com/dam-hiding-fields-through-tsconfig/</link>
		<comments>http://www.typo3tricks.com/dam-hiding-fields-through-tsconfig/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 04:38:38 +0000</pubDate>
		<dc:creator>Benni</dc:creator>
		
		<category><![CDATA[TYPO3]]></category>

		<category><![CDATA[DAM]]></category>

		<category><![CDATA[TSconfig]]></category>

		<guid isPermaLink="false">http://www.typo3tricks.com/?p=12</guid>
		<description><![CDATA[Long time no see&#8230; yes, business is keeping me away from all the fun stuff. I&#8217;m currently working on cleaning up and then extending mm_forum, and of course the TYPO3 core.  Last week, I visited Jeff in Dallas and we had a good run digging into some serious XML issues with libxml2 and expat (See [...]]]></description>
			<content:encoded><![CDATA[<p>Long time no see&#8230; yes, business is keeping me away from all the fun stuff. I&#8217;m currently working on cleaning up and then extending mm_forum, and of course the TYPO3 core.  Last week, I visited Jeff in Dallas and we had a good run digging into some serious XML issues with libxml2 and expat (See http://bugs.typo3.org/view.php?id=9359) and we also looked into over 20 patches floating around in the TYPO3 core list.</p>
<p>Yesterday I spent some time working on my seo_basics extension and on the last fixes for the upcoming DAM (Digital Asset Management) version 1.1 &#8212; a beast of an extension,  but good for adding metadata to uploaded files. While there was a huge movement in May and June, things kinds slowed down in the last months, and Ben pushed the whole thing a bit more. In any case, 1.1 will be a bugfix release (with a dependency on TYPO3 4.2.2 or later) marking the way for a glorious 1.2 (Release TBA ;-)).<span id="more-12"></span></p>
<p>After testing and commiting couple of patches, I looked into one other issue, namely to hide certain fields when editing a DAM record. Although the DAM has its own module and submodules, it uses the default TCEforms for editing metadata of files. If you decide to hide certain fields from your editors (and / or admins), there are several ways to do so. First of all, you can probably configure it through the huge excludelist of a Backend usergroup. Somehow, I got away from using excludelists, as it&#8217;s just a pain. The variant I like more is to use an approach to hide fields in TCEforms through pages TS config. This way you can hide all fields of a table that is listed in the TCA. It&#8217;s not preventing a BE user (rights-wise) to edit a certain field in the BE, but as he won&#8217;t see the field anyways I figured that this is enough for most cases.</p>
<p>For the DAM, all metadata (DAM) records are in the DAM media folder in the page tree. This one is sometimes hidden, depending on your installation. If you don&#8217;t see the &#8220;Media&#8221; folder in the page tree, go to the Extension Manager, edit the Install-time options of the DAM / Media Extension and disable the checkbox &#8220;Hide Media Sysfolder&#8221;. After that, you can select the media folder. Edit its page properties (it&#8217;s nothing else than a sysfolder anyway, btw). Select the &#8220;options&#8221; tab, where you can add the pagesTSconfig. With a</p>
<pre>TCEFORM.tx_dam.publisher.disabled = 1</pre>
<p>the publisher edit field won&#8217;t be rendered when editing a metadata record. Oh yeah, this of course works for all other TCA tables as well. I use it in the page properties to remove all language-related fields in an installation with only one language to help unclutter the interface.</p>
<p>A complete list of all fields to disable the DAM is attached here:</p>
<pre>TCEFORM.tx_dam {
    hidden.disabled = 1
    starttime.disabled = 1
    endtime.disabled = 1
    fe_group.disabled = 1
    sys_language_uid.disabled = 1
    l18n_parent.disabled = 1
    l18n_diffsource.disabled = 1
    t3ver_label.disabled = 1
    media_type.disabled = 1
    title.disabled = 1
    file_name.disabled = 1
    file_path.disabled = 1
    file_dl_name.disabled = 1
    file_type.disabled = 1
    file_type_version.disabled = 1
    file_size.disabled = 1
    file_orig_location.disabled = 1
    file_orig_loc_desc.disabled = 1
    file_creator.disabled = 1
    file_mime_type.disabled = 1
    file_mime_subtype.disabled = 1
    file_ctime.disabled = 1
    file_mtime.disabled = 1
    file_usage.disabled = 1
    ident.disabled = 1
    creator.disabled = 1
    publisher.disabled = 1
    copyright.disabled = 1
    keywords.disabled = 1
    description.disabled = 1
    caption.disabled = 1
    alt_text.disabled = 1
    instructions.disabled = 1
    abstract.disabled = 1
    date_cr.disabled = 1
    date_mod.disabled = 1
    loc_desc.disabled = 1
    loc_country.disabled = 1
    loc_city.disabled = 1
    language.disabled = 1
    hres.disabled = 1
    vres.disabled = 1
    hpixels.disabled = 1
    vpixels.disabled = 1
    color_space.disabled = 1
    width.disabled = 1
    height.disabled = 1
    height_unit.disabled = 1
    pages.disabled = 1
    meta.disabled = 1
    category.disabled = 1
    parent_id.disabled = 1
    deleted.disabled = 1
    index_type.disabled = 1
    file_inode.disabled = 1
    file_hash.disabled = 1
    file_status.disabled = 1
    tstamp.disabled = 1
}</pre>
<p>Although this is pretty simple and straightforward, some might want to use this. As far as I know there is currently no (easy) way to change the visibility of the fields in the other screens. Nevertheless, watch out for an updated version of the DAM, going with the latest (also soon to come 4.2.2) TYPO3 core in the near future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3tricks.com/dam-hiding-fields-through-tsconfig/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TypoLink: Tiny Helpers To Save The Day #1</title>
		<link>http://www.typo3tricks.com/typolink-tiny-helpers-to-save-the-day-1/</link>
		<comments>http://www.typo3tricks.com/typolink-tiny-helpers-to-save-the-day-1/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 12:40:39 +0000</pubDate>
		<dc:creator>Benni</dc:creator>
		
		<category><![CDATA[TYPO3]]></category>

		<category><![CDATA[TypoScript]]></category>

		<guid isPermaLink="false">http://www.typo3tricks.com/?p=11</guid>
		<description><![CDATA[I more and more enjoy the power of TypoScript. Every day, I learn something new. I will
Tip 1: You want to link to the same page, but with JS params etc,
lib.mytext = TEXT
lib.mytext.value = This is a link
lib.mytext.typolink.parameter = {TSFE:id},775 500x600 selflink
lib.mytext.typolink.parameter.insertData = 1
I had to use this idea when having a big site with [...]]]></description>
			<content:encoded><![CDATA[<p>I more and more enjoy the power of TypoScript. Every day, I learn something new. I will</p>
<p>Tip 1: You want to link to the same page, but with JS params etc,</p>
<pre>lib.mytext = TEXT
lib.mytext.value = This is a link
lib.mytext.typolink.parameter = {TSFE:id},775 500x600 selflink
lib.mytext.typolink.parameter.insertData = 1</pre>
<p>I had to use this idea when having a big site with a lot of microsites where the client is able to clone a microsite without needing to configure any IDs. The typolink.parameter = this,775.. did not work.</p>
<p>Basically, with this project, I had to make sure that no page IDs were hardcoded in TypoScript, so it was easy to create a new site inside TYPO3.</p>
<p>The following example renders a menu based on keywords (there was a requirement about the page titles) instead of a special = directory type of menu.</p>
<pre>lib.rightnav = HMENU
lib.rightnav {
  special = keywords
  special {
    value = 1
    depth = 2
    setKeywords = Contact,Newsletter
    keywordsField = title
    entryLevel = 0
  }
  1 = TMENU
  1 {
    alternativeSortingField = sorting
    noBlur = 1
    NO.allWrap = &lt;li&gt;|&lt;/li&gt;
    wrap = &lt;ul class="rightcol_contact"&gt;|&lt;/ul&gt;
  }
}</pre>
<p>The next example shows a tt_news to link to the first subpage as the &#8220;single page&#8221;.</p>
<pre>plugin.tt_news.singlePid.cObject = HMENU
plugin.tt_news.singlePid.cObject {
	special = directory
	special.value.data = TSFE:id
	maxItems = 1
	includeNotInMenu = 1
	1 = TMENU
	1 {
		NO.doNotLinkIt = 1
		NO.stdWrap.field = uid
	}
}</pre>
<p>I know it&#8217;s not big magic and can be solved differently as well, but it just keeps me busy these days <img src='http://www.typo3tricks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3tricks.com/typolink-tiny-helpers-to-save-the-day-1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>When switching from baseURL to absRefPrefix&#8230;</title>
		<link>http://www.typo3tricks.com/when-switching-from-baseurl-to-absrefprefix/</link>
		<comments>http://www.typo3tricks.com/when-switching-from-baseurl-to-absrefprefix/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 08:14:49 +0000</pubDate>
		<dc:creator>Benni</dc:creator>
		
		<category><![CDATA[TYPO3]]></category>

		<category><![CDATA[realURL]]></category>

		<category><![CDATA[TypoScript]]></category>

		<guid isPermaLink="false">http://www.typo3tricks.com/?p=10</guid>
		<description><![CDATA[My latest thing to do is switching my TYPO3 installations from baseURL to absRefPrefix. Ever since this awesome extension realURL was written, there was the need to define the URLs that should be relative to the TYPO3 main directory. Imagine having a TYPO3 installation running under a domain called www.b13.de. Without realURL your TYPO3 generated [...]]]></description>
			<content:encoded><![CDATA[<p>My latest thing to do is switching my TYPO3 installations from baseURL to absRefPrefix. Ever since this awesome extension <em>realURL</em> was written, there was the need to define the URLs that should be relative to the TYPO3 main directory. Imagine having a TYPO3 installation running under a domain called www.b13.de. Without realURL your TYPO3 generated URLs looked like:</p>
<p>http://www.b13.de/index.php?id=25</p>
<p>Well, we all know that search engines don&#8217;t like it and visitors don&#8217;t find it as convenient as having a real URL, that looks like that</p>
<p>http://www.b13.de/en/about/downloads/<br />
http://www.b13.de/en/products/saviour-v1/</p>
<p>Great! Let&#8217;s do this. RealURL does everything for you. Very simple and good (and bug-free &#8212; I love the latest version, thanks Dmitry!). However, if you&#8217;re on the downloads page and want to link to the products detail page, then the link will look like</p>
<p>http://www.b13.de/en/about/downloads/en/products/saviour-v1/</p>
<p>The reason is that realURL (or let&#8217;s say, your browser) does not know where the root of your installation is. realURL suggests using the &lt;base href=&#8221;http://www.b13.de/&#8221;&gt; tag to let the browser know that all relative links are relative not to the current page but to the specified base href. You can configure this in TypoScript with config.baseURL = http://www.b13.de/ and then there you go.</p>
<p>This all works fine &#8212; and if you have multiple domains, you just need to use TypoScript conditions, but this is all doable. However, in the recent past a few of my clients (NOTE: only the ones with 404 pages managed through TYPO3) ran into problems with strange floods of their log files with zillion 404 calls. The reason was that there are some bots that don&#8217;t interpret the baseURL tag, and then call the non-existent URLs (e.g. images), which redirect to the 404 which also includes the 404 path. Yes, quite annoying.</p>
<p>So, I was searching for an alternative. Dmitry <a href="http://typo3bloke.net/post-details/check_your_404_traffic/" target="_blank">posted some information on his blog</a> about this error as well. The htaccess redirect he mentioned worked just fine, but I really wanted to avoid this in general, asking a simple question: &#8220;Can&#8217;t I just set a slash (/) in front of every URL and file reference of my generated HTML?&#8221;. This was something I actually wanted before I used this baseURL configuration option (yes, a long time ago). And, in fact, there was this option &#8220;config.absRefPrefix&#8221; lying around the whole time, and I never used it. As you can see there are so many things you find every time in TYPO3. With the absRefPrefix option I don&#8217;t even need to bother with the domains if I just use</p>
<p>config.absRefPrefix = /</p>
<p>or</p>
<p>config.absRefPrefix = /path/to/my/t3installation/</p>
<p>depending on the location of the TYPO3 mainsite directory. But it looked like it&#8217;s not that easy, because I ran into some issues (after switching 4 or 5 sites from baseURL to absRefPrefix).</p>
<ul>
<li>You need to have the latest realURL version and set the &#8220;reapplyAbsRefPrefix = true&#8221; in your realURL configuration array to keep the prefix.</li>
<li>Linking between domains is not as smooth anymore as with the latest realURL and 4.2</li>
<li>If you have references to typo3conf/ext/, they won&#8217;t be prefixed. I ran into this by having: &lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;typo3conf/ext/rgmedialinks/res/mediabox.css&#8221; /&gt;. I noticed that this is a bug in the TYPO3 core, <a href="http://bugs.typo3.org/view.php?id=8864" target="_blank">so I fixed it</a>.</li>
<li>There are still some errors if you use custom extensions. You need to make sure that these work. I had trouble with mailforms and some custom scripts that alter the &#8220;img&#8221; tag, because the URL wasn&#8217;t typo3temp/ anymore but http://www.b13.de/typo3temp, so some default replacements didn&#8217;t work anymore. Nothing serious, but just something to keep in mind.</li>
<li>The latest issue that the Magic images I added during the baseURL times with the htmlarea RTE didn&#8217;t work anymore. A simple htaccess redirect (RewriteRule ^(.+)uploads/(.*?)$ /uploads/$2 [R,L]<br />
) worked just in this case.</li>
</ul>
<p>In my eyes, the real and true solution would be to</p>
<ol>
<li>get rid of all baseURL tags (in my eyes, it was and will always be just a dirty workaround).</li>
<li>have realURL add the part of the mainsite directory to every relative path when rendering the HTML. There could be an option for multisites to dynamically add the domain to all links, using the domain records.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3tricks.com/when-switching-from-baseurl-to-absrefprefix/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Require to select a category for tt_news</title>
		<link>http://www.typo3tricks.com/require-to-select-a-category-for-tt_news/</link>
		<comments>http://www.typo3tricks.com/require-to-select-a-category-for-tt_news/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 15:23:01 +0000</pubDate>
		<dc:creator>Benni</dc:creator>
		
		<category><![CDATA[TYPO3]]></category>

		<category><![CDATA[TSconfig]]></category>

		<category><![CDATA[tt_news]]></category>

		<guid isPermaLink="false">http://www.typo3tricks.com/?p=9</guid>
		<description><![CDATA[If you have to customize a TYPO3 installation for your editors, and you use tt_news, you maybe have had the problem. Your editor gives you a call and let&#8217;s you know that he can&#8217;t see his just finished news in the frontend. You find out that the record is not hidden, but the problem is [...]]]></description>
			<content:encoded><![CDATA[<p>If you have to customize a TYPO3 installation for your editors, and you use tt_news, you maybe have had the problem. Your editor gives you a call and let&#8217;s you know that he can&#8217;t see his just finished news in the frontend. You find out that the record is not hidden, but the problem is that the editor hasn&#8217;t had a category selected. Most likely it&#8217;s because the categories are on the second tab in the TCEforms. (in some cases where we &#8220;misue&#8221; tt_news, it&#8217;s the only thing that is on the second tab). However, the problem is then that the editor saves the record and forgets to attach a category to it. With this simple statement you can force the editor to select a category:</p>
<pre>TCEFORM.tt_news.category.config.minitems = 1</pre>
<p>This can be done on pagesTSconfig level but also on userTSconfig, and is quite helpful to save some support calls.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3tricks.com/require-to-select-a-category-for-tt_news/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TypoScript Magic: tt_news Title in Headline or Menu or somewhere</title>
		<link>http://www.typo3tricks.com/typoscript-magic-tt_news-title-in-headline-or-menu-or-somewhere/</link>
		<comments>http://www.typo3tricks.com/typoscript-magic-tt_news-title-in-headline-or-menu-or-somewhere/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 14:29:54 +0000</pubDate>
		<dc:creator>Benni</dc:creator>
		
		<category><![CDATA[TYPO3]]></category>

		<category><![CDATA[TypoScript]]></category>

		<guid isPermaLink="false">http://www.typo3tricks.com/?p=8</guid>
		<description><![CDATA[In almost every TYPO3 project of mine, I use this awesomely generic tt_news for displaying news, top offers, etc. In many projects I also have a headline or a breadcrums menu somewhere, telling about the title of the page. tt_news itself offers the possibility to substitute the page title in the &#60;title&#62; tag, however I [...]]]></description>
			<content:encoded><![CDATA[<p>In almost every TYPO3 project of mine, I use this awesomely generic <em>tt_news</em> for displaying news, top offers, etc. In many projects I also have a headline or a breadcrums menu somewhere, telling about the title of the page. <em>tt_news</em> itself offers the possibility to substitute the page title in the &lt;title&gt; tag, however I often use my own title tag rendering, or by using the excellent <em>seo_basics</em> extension :). So the tt_news title is not substituted at all. Therefore I always wrote this little TypoScript snippet that I can use everywhere:<span id="more-8"></span></p>
<pre>lib.newstitle = RECORDS
lib.newstitle {
    dontCheckPid = 1
    tables = tt_news
    source.data = GPvar:tx_ttnews|tt_news
    conf.tt_news = TEXT
    conf.tt_news.field = title
    conf.tt_news.required = 1
}</pre>
<p>This renders the tt_news title if there if there exists one. This can easily be attached to anything else in TypoScript, to a breadcrumbs menu for instance:</p>
<pre>lib.breadcrumbs = COA
lib.breadcrumbs.10 = HMENU
lib.breadcrumbs.10 {
    special = rootline
    special.range = 1
    1 = TMENU
    1.noBlur = 1
    1.NO.linkWrap =  &gt; |
}
lib.breadcrumbs.20 &lt; lib.newstitle
lib.breadcrumbs.20.conf.tt_news.wrap =  &gt; |</pre>
<p>And boom, there you go. Same goes for any pagetitle. The nice stdWrap option &#8220;.required = 1&#8243; also only adds the &#8220;.wrap&#8221; option if the title is not empty.</p>
<p>Btw&#8230; thanks to Bob who had this issue on the typo3 tt_news newsgroup this week!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3tricks.com/typoscript-magic-tt_news-title-in-headline-or-menu-or-somewhere/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The good, the bad and the ugly: t3skin</title>
		<link>http://www.typo3tricks.com/the-good-the-bad-and-the-ugly-t3skin/</link>
		<comments>http://www.typo3tricks.com/the-good-the-bad-and-the-ugly-t3skin/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 12:40:34 +0000</pubDate>
		<dc:creator>Benni</dc:creator>
		
		<category><![CDATA[TYPO3]]></category>

		<category><![CDATA[HCI]]></category>

		<category><![CDATA[t3skin]]></category>

		<category><![CDATA[TYPO3Core]]></category>

		<guid isPermaLink="false">http://www.typo3tricks.com/?p=7</guid>
		<description><![CDATA[Ever since the t3skin arrived, there was this nasty thing that bugged me so much: Some tabs in the TYPO3 Backend weren&#8217;t styled at all, and they still had the colors of the classic TYPO3 skin.
As of the nature of TYPO3, an installed skin just overrides the classic skin styles and icons, and it seems [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since the t3skin arrived, there was this nasty thing that bugged me so much: Some tabs in the TYPO3 Backend weren&#8217;t styled at all, and they still had the colors of the classic TYPO3 skin.</p>
<p>As of the nature of TYPO3, an installed skin just overrides the classic skin styles and icons, and it seems like the t3skin author forgot about that. The places where you can see these problems is when selecting a link (Element Browser, Browse Links) and inside the DAM. Apparantly these are the only occurences where the &#8220;tabMenu&#8221; functions from the template.php file are used, all other places (TCEforms) use the dynTabMenu whic is styled.<span id="more-7"></span></p>
<p>However, I found out that I only need to add some CSS markers then to make it integrate nicer in t3skin. This came up two weeks ago when we met about the t3skin and the Backend Usability in Arnhem. I dove into it and found out about the use of tabMenu and the missing CSS in t3skin. Below is a before / after screenshot comparison. Aaah, I like it!</p>
<p><a href="http://www.typo3tricks.com/wp-content/uploads/2008/06/tabmenu_before.png"><img class="alignnone size-medium wp-image-5" title="TabMenu Before" src="http://www.typo3tricks.com/wp-content/uploads/2008/06/tabmenu_before-300x66.png" alt="TabMenu before the patch" width="300" height="66" /></a></p>
<p><a href="http://www.typo3tricks.com/wp-content/uploads/2008/06/tabmenu_after.png"><img class="alignnone size-medium wp-image-6" title="TabMenu After" src="http://www.typo3tricks.com/wp-content/uploads/2008/06/tabmenu_after-300x87.png" alt="TabMenu after the patch" width="300" height="87" /></a></p>
<p>Be sure to check out TYPO3 4.1.7 and 4.2.1, arriving next monday, which finally include the fix (just commited that patch this morning). One patch closer to a better world&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3tricks.com/the-good-the-bad-and-the-ugly-t3skin/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Evolution Of My Footer Code - Part 1</title>
		<link>http://www.typo3tricks.com/evolution-of-my-footer-code-part-1/</link>
		<comments>http://www.typo3tricks.com/evolution-of-my-footer-code-part-1/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 13:17:53 +0000</pubDate>
		<dc:creator>Benni</dc:creator>
		
		<category><![CDATA[TYPO3]]></category>

		<category><![CDATA[Basics]]></category>

		<category><![CDATA[TypoScript]]></category>

		<guid isPermaLink="false">http://www.typo3tricks.com/?p=4</guid>
		<description><![CDATA[Everybody started out very simple with TYPO3. In case of my projects, I had to update the copyright year, with all my clients of course. At first, I put everything static in my HTML template, so I had to change the year there. Then I put the static string in TypoScript. Nowadays I enjoy the [...]]]></description>
			<content:encoded><![CDATA[<p>Everybody started out very simple with TYPO3. In case of my projects, I had to update the copyright year, with all my clients of course. At first, I put everything static in my HTML template, so I had to change the year there. Then I put the static string in TypoScript. Nowadays I enjoy the power of TypoScript that automatically updates the year in the footer for me. This means less client calls at the beginning of the year <img src='http://www.typo3tricks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <span id="more-4"></span></p>
<ul>
<li>Pre 2004: Kept everything in my HTML file</li>
<li>2005: Had a marker in my HTML file, that my TEMPLATE object replaced</li>
<li>2006: Used TemplaVoila with defined footer fields, matching a TS object (lib.footer)</li>
<li>Post 2007: Used stdWrap effectively for my lib.footer object</li>
</ul>
<p>This is how it looks like if you just need a &#8220;self-updating&#8221; footer:<br />
<code>lib.footer = TEXT<br />
lib.footer {<br />
data = date:U<br />
strftime = %Y<br />
wrap = © |  b:dreizehn GbR • More stuff<br />
}<br />
</code><br />
The TEXT object has stdWrap methods at the base level, so I took &#8220;date:U&#8221; from the &#8220;getData&#8221; type, ran it through a strftime and wrapped it in my HTML code.</p>
<p>For many years (actually until 2006), most parts of stdWrap were a closed book for me, but if you read the source code itself, it all comes down to you. So simple, so powerful. Check out the source in your TYPO3 package (&#8221;typo3/sysext/cms/tslib/class.tslib_content.php&#8221;).</p>
<p>Quite simple, and if you think about it, you could have done that by yourself easily, right?</p>
<p>However, that&#8217;s not all that you can do with TypoScript, more to come&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3tricks.com/evolution-of-my-footer-code-part-1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Override LL-File Labels for a whole Installation</title>
		<link>http://www.typo3tricks.com/todays-trick-override-ll-file-labels-for-a-whole-installation/</link>
		<comments>http://www.typo3tricks.com/todays-trick-override-ll-file-labels-for-a-whole-installation/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 12:35:28 +0000</pubDate>
		<dc:creator>Benni</dc:creator>
		
		<category><![CDATA[TYPO3]]></category>

		<category><![CDATA[LocalLang]]></category>

		<category><![CDATA[Tricks]]></category>

		<category><![CDATA[TYPO3Core]]></category>

		<guid isPermaLink="false">http://www.typo3tricks.com/?p=3</guid>
		<description><![CDATA[Today I found out something very nice.
I had the problem that I needed to redefine some labels for alanguage file in an extension. This was client-specific, so it wasn&#8217;t suitable for a patch to send to the corresponding extension developer. But I didn&#8217;t want to modify the extension files by myself, because in case of [...]]]></description>
			<content:encoded><![CDATA[<p>Today I found out something very nice.</p>
<p>I had the problem that I needed to redefine some labels for alanguage file in an extension. This was client-specific, so it wasn&#8217;t suitable for a patch to send to the corresponding extension developer. But I didn&#8217;t want to modify the extension files by myself, because in case of an upgrade, the changes would have been erased. So I stumbled upon this nice feature, which worked just fine for my TYPO3 4.0 installation.<span id="more-3"></span></p>
<p>The idea is that you can specify an &#8220;override language label file&#8221; that TYPO3 loads directly after loading the labels of a specific file. It then overwrites the labels that were added in the file, but keeping the ones you didn&#8217;t touch. You only have to add this one line to the typo3conf/localconf.php.<br />
<code>$TYPO3_CONF_VARS['BE']['XLLfile']['EXT:sr_feuser_register/locallang_db.xml'] = \<br />
&#8216;typo3conf/my_custom_labels.xml&#8217;;<br />
</code><br />
The XML file itself looks like this:</p>
<pre>&lt;?xml version="1.0" encoding="utf-8" standalone="yes" ?&gt;
  &lt;T3locallang&gt;
    &lt;meta type="array"&gt;
      &lt;description&gt;Custom Labels especially for this installation&lt;/description&gt;
    &lt;/meta&gt;
    &lt;data type="array"&gt;
      &lt;languageKey index="default" type="array"&gt;
        &lt;label index="fe_users.gender"&gt;Gender:&lt;/label&gt;
        &lt;label index="fe_users.gender.I.0"&gt;Mr&lt;/label&gt;
        &lt;label index="fe_users.gender.I.1"&gt;Ms&lt;/label&gt;
      &lt;/languageKey&gt;
      &lt;languageKey index="de" type="array"&gt;
        &lt;label index="fe_users.gender"&gt;Anrede:&lt;/label&gt;
        &lt;label index="fe_users.gender.I.0"&gt;Herr&lt;/label&gt;
        &lt;label index="fe_users.gender.I.1"&gt;Frau&lt;/label&gt;
      &lt;/languageKey&gt;
    &lt;/data&gt;
&lt;/T3locallang&gt;</pre>
<p>After that, clear your cache and the labels will be changed&#8230; I know, somebody would now tell me that you can do this with pagesTSconfig (for the Backend) or TypoScript (for the Frontend), but she/he is wrong here. Why? The pagesTSconfig only works with TYPO3 4.2 and later. Also, with this awesome method it is possible to also change labels for e.g. the &#8220;Clear cache&#8221; menu in the backend.</p>
<p>Very nice, huh?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3tricks.com/todays-trick-override-ll-file-labels-for-a-whole-installation/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
