<?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>klauskjeldsen.dk &#187; TYPO3/TypoScript</title> <atom:link href="http://klauskjeldsen.dk/category/typo3/feed/" rel="self" type="application/rss+xml" /><link>http://klauskjeldsen.dk</link> <description>About web... &#38; stuff</description> <lastBuildDate>Sat, 14 Jan 2012 20:22:42 +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/TypoScript: How to add Page Updated Timestamp</title><link>http://klauskjeldsen.dk/typo3typoscript-how-to-add-page-updated-timestamp/</link> <comments>http://klauskjeldsen.dk/typo3typoscript-how-to-add-page-updated-timestamp/#comments</comments> <pubDate>Sat, 08 Mar 2008 19:18:28 +0000</pubDate> <dc:creator>Klaus Kjeldsen</dc:creator> <category><![CDATA[TYPO3/TypoScript]]></category><guid
isPermaLink="false">http://klauskjeldsen.dk/2008/03/08/typo3typoscript-how-to-add-page-updated-timestamp/</guid> <description><![CDATA[This little typoscript adds a last updated timestamp, include using TemplaViola Do you want mp3 music download on perssonal computer, Don&#8217;t know where download mp3 music for mp3 player. ## Last Updated [Begin] lib.lastUpdated = TEXT lib.lastUpdated.data = page:SYS_LASTCHANGED lib.lastUpdated.strftime &#8230; <a
href="http://klauskjeldsen.dk/typo3typoscript-how-to-add-page-updated-timestamp/">Continue reading <span
class="meta-nav">&#8594;</span></a><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3typoscript-how-to-add-page-updated-timestamp/' addthis:title='TYPO3/TypoScript: How to add Page Updated Timestamp '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div> Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/' rel='bookmark' title='TYPO3: XHTML Valid 3 Level Menu in Typoscript'>TYPO3: XHTML Valid 3 Level Menu in Typoscript</a></li><li><a
href='http://klauskjeldsen.dk/typo3-copyright-notice-with-automatic-year-update-and-secondary-language-support/' rel='bookmark' title='TYPO3: Copyright Notice with Automatic Year Update and Secondary Language Support'>TYPO3: Copyright Notice with Automatic Year Update and Secondary Language Support</a></li><li><a
href='http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/' rel='bookmark' title='TYPO3: How to make a path/breadcrumb in typoscript'>TYPO3: How to make a path/breadcrumb in typoscript</a></li></ol>]]></description> <content:encoded><![CDATA[<p>This little typoscript adds a last updated timestamp, include using TemplaViola</p><div
class='seraboramar32' style='overflow:auto;width:0;height:0;'><p>Do you want <a
href="http://www.aspma.com/download/">mp3 music download</a> on perssonal computer, Don&#8217;t know where <a
href="http://www.aspma.com/downloads/">download mp3 music</a> for mp3 player.</p></div><div
class="codesnip-container" ><div
class="typoscript codesnip" style="font-family:monospace;"><ol><li
class="li1"><div
class="de1"><span
class="co2">## Last Updated [Begin]</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>lastUpdated <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/cobjects/TEXT/"><span
class="kw4">TEXT</span></a></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>lastUpdated<span
class="sy0">.</span>data <span
class="sy0">=</span> <span
class="re5">page</span><span
class="sy0">:</span>SYS_LASTCHANGED</div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>lastUpdated<span
class="sy0">.</span>strftime <span
class="sy0">=</span> <span
class="sy0">%</span>d-<span
class="sy0">%</span>m-<span
class="sy0">%</span>Y <span
class="sy0">%</span>H<span
class="sy0">:%</span>M</div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>lastUpdated<span
class="sy0">.</span>wrap <span
class="sy0">=</span> <span
class="re2">&lt;p&gt;</span>Updated<span
class="sy0">:</span> <span
class="sy0">|</span><span
class="re2">&lt;/p&gt;</span></div></li><li
class="li1"><div
class="de1"><span
class="co2">## Last Updated [End]</span></div></li></ol></div></div><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3typoscript-how-to-add-page-updated-timestamp/' addthis:title='TYPO3/TypoScript: How to add Page Updated Timestamp '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/' rel='bookmark' title='TYPO3: XHTML Valid 3 Level Menu in Typoscript'>TYPO3: XHTML Valid 3 Level Menu in Typoscript</a></li><li><a
href='http://klauskjeldsen.dk/typo3-copyright-notice-with-automatic-year-update-and-secondary-language-support/' rel='bookmark' title='TYPO3: Copyright Notice with Automatic Year Update and Secondary Language Support'>TYPO3: Copyright Notice with Automatic Year Update and Secondary Language Support</a></li><li><a
href='http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/' rel='bookmark' title='TYPO3: How to make a path/breadcrumb in typoscript'>TYPO3: How to make a path/breadcrumb in typoscript</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://klauskjeldsen.dk/typo3typoscript-how-to-add-page-updated-timestamp/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>TYPO3: Changing the tt_news template markup</title><link>http://klauskjeldsen.dk/typo3-changing-the-tt_news-template-markup/</link> <comments>http://klauskjeldsen.dk/typo3-changing-the-tt_news-template-markup/#comments</comments> <pubDate>Wed, 16 May 2007 20:24:02 +0000</pubDate> <dc:creator>Klaus Kjeldsen</dc:creator> <category><![CDATA[TYPO3/TypoScript]]></category><guid
isPermaLink="false">http://klauskjeldsen.dk/2007/05/16/typo3-changing-the-tt_news-template-markup/</guid> <description><![CDATA[The easy way is to change xhtml setup for the tt_news extension is to back up the div-based tt_news template, and put it somewhere in the fileadmin folder, where you have placed other template stuff such as your general xhtml &#8230; <a
href="http://klauskjeldsen.dk/typo3-changing-the-tt_news-template-markup/">Continue reading <span
class="meta-nav">&#8594;</span></a><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-changing-the-tt_news-template-markup/' addthis:title='TYPO3: Changing the tt_news template markup '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div> Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/' rel='bookmark' title='TYPO3: tt_news LIST and SINGLE at the same page'>TYPO3: tt_news LIST and SINGLE at the same page</a></li><li><a
href='http://klauskjeldsen.dk/typo3-add-tt_news-latest-as-typoscript-object/' rel='bookmark' title='TYPO3: Add tt_news LATEST as TypoScript Object'>TYPO3: Add tt_news LATEST as TypoScript Object</a></li><li><a
href='http://klauskjeldsen.dk/typo3-setting-xhtml-11-doctype/' rel='bookmark' title='TYPO3: Setting XHTML 1.1 DOCTYPE'>TYPO3: Setting XHTML 1.1 DOCTYPE</a></li></ol>]]></description> <content:encoded><![CDATA[<p>The easy way is to change xhtml setup for the tt_news extension is to back up the <a
href="http://typo3.org/extensions/repository/view/tt_news/2.5.0/info/static%252Fts_new%252Fconstants.txt/?tx_terfe_pi1%5BdownloadFile%5D=pi%252Ftt_news_v2_template.html&amp;cHash=a2f213c921">div-based tt_news template</a>, and put it somewhere in the <strong>fileadmin</strong> folder, where you have placed other template stuff such as your general xhtml template for the website. Make your markup changes  to the template, and change the tt_news configuration to use the modified template like below.</p><pre class="plain">### Template File ###
plugin.tt_news.templateFile = fileadmin/templates/ext/tt_news_v2_template.html</pre><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-changing-the-tt_news-template-markup/' addthis:title='TYPO3: Changing the tt_news template markup '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/' rel='bookmark' title='TYPO3: tt_news LIST and SINGLE at the same page'>TYPO3: tt_news LIST and SINGLE at the same page</a></li><li><a
href='http://klauskjeldsen.dk/typo3-add-tt_news-latest-as-typoscript-object/' rel='bookmark' title='TYPO3: Add tt_news LATEST as TypoScript Object'>TYPO3: Add tt_news LATEST as TypoScript Object</a></li><li><a
href='http://klauskjeldsen.dk/typo3-setting-xhtml-11-doctype/' rel='bookmark' title='TYPO3: Setting XHTML 1.1 DOCTYPE'>TYPO3: Setting XHTML 1.1 DOCTYPE</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://klauskjeldsen.dk/typo3-changing-the-tt_news-template-markup/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>TYPO3: Setting XHTML 1.1 DOCTYPE</title><link>http://klauskjeldsen.dk/typo3-setting-xhtml-11-doctype/</link> <comments>http://klauskjeldsen.dk/typo3-setting-xhtml-11-doctype/#comments</comments> <pubDate>Tue, 10 Apr 2007 15:48:00 +0000</pubDate> <dc:creator>Klaus Kjeldsen</dc:creator> <category><![CDATA[TYPO3/TypoScript]]></category><guid
isPermaLink="false">http://www.klauskjeldsen.dk/2007/04/10/typo3-setting-xhtml-11-doctype/</guid> <description><![CDATA[How to change the DocType in the TYPO3 template setup. config.doctype = xhtml_11 config.xhtmlDoctype = xhtml_11 config.xmlprologue = none config.xhtml_cleaning = all The DOCTYPE can be set to these values: xhtml_trans (XHTML 1.0 Transitional doctype) xhtml_frames(XHTML 1.0 Frameset doctype) xhtml_strict &#8230; <a
href="http://klauskjeldsen.dk/typo3-setting-xhtml-11-doctype/">Continue reading <span
class="meta-nav">&#8594;</span></a><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-setting-xhtml-11-doctype/' addthis:title='TYPO3: Setting XHTML 1.1 DOCTYPE '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div> Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-setting-up-secondary-language/' rel='bookmark' title='TYPO3: Setting up secondary language'>TYPO3: Setting up secondary language</a></li><li><a
href='http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/' rel='bookmark' title='TYPO3: XHTML Valid 3 Level Menu in Typoscript'>TYPO3: XHTML Valid 3 Level Menu in Typoscript</a></li><li><a
href='http://klauskjeldsen.dk/typo3-making-a-xhtml-valid-menu/' rel='bookmark' title='TYPO3: Making a simple menu as an unordered list in XHTML'>TYPO3: Making a simple menu as an unordered list in XHTML</a></li></ol>]]></description> <content:encoded><![CDATA[<p></p><p>How to change the DocType in the TYPO3 template setup.</p><div
class="codesnip-container" ><div
class="typoscript codesnip" style="font-family:monospace;"><ol><li
class="li1"><div
class="de1"><span
class="re5">config</span><span
class="sy0">.</span>doctype <span
class="sy0">=</span> xhtml_11</div></li><li
class="li1"><div
class="de1"><span
class="re5">config</span><span
class="sy0">.</span>xhtmlDoctype <span
class="sy0">=</span> xhtml_11</div></li><li
class="li1"><div
class="de1"><span
class="re5">config</span><span
class="sy0">.</span>xmlprologue <span
class="sy0">=</span> none</div></li><li
class="li1"><div
class="de1"><span
class="re5">config</span><span
class="sy0">.</span>xhtml_cleaning <span
class="sy0">=</span> all</div></li></ol></div></div><p>The DOCTYPE can be set to these values:</p><blockquote><p> <strong>xhtml_trans</strong> (XHTML 1.0 Transitional doctype)<br
/> <strong>xhtml_frames</strong>(XHTML 1.0 Frameset doctype)<br
/> <strong>xhtml_strict</strong> (XHTML 1.0 Strict doctype)<br
/> <strong>xhtml_basic</strong> (XHTML basic doctype)<br
/> <strong>xhtml_11</strong> (XHTML 1.1 doctype)<br
/> <strong>xhtml_2</strong> (XHTML 2 doctype)<br
/> <strong>none</strong> (NO doctype at all)</p></blockquote><p>The XML prologue can be set to these values:</p><blockquote><p> <strong>xml_10</strong> (XML 1.0 prologue)<br
/> <strong>xml_11</strong> (XML 1.1 prologue)<br
/> <strong>none</strong> (the default XML prologue is not set)</p></blockquote><p>The XHTML cleaning can be enabled by the following values:</p><blockquote><p> <strong>all</strong> (the content is always processed before it may be stored in cache)<br
/> <strong>cached</strong> (only if the page is put into the cache)<br
/> <strong>output</strong> (only the output code just before it&#8217;s echoed out)</p></blockquote><p>Further information about setting the doctype is available in the <a
href="http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/7/3/">TSref</a>.</p><p></p><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-setting-xhtml-11-doctype/' addthis:title='TYPO3: Setting XHTML 1.1 DOCTYPE '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-setting-up-secondary-language/' rel='bookmark' title='TYPO3: Setting up secondary language'>TYPO3: Setting up secondary language</a></li><li><a
href='http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/' rel='bookmark' title='TYPO3: XHTML Valid 3 Level Menu in Typoscript'>TYPO3: XHTML Valid 3 Level Menu in Typoscript</a></li><li><a
href='http://klauskjeldsen.dk/typo3-making-a-xhtml-valid-menu/' rel='bookmark' title='TYPO3: Making a simple menu as an unordered list in XHTML'>TYPO3: Making a simple menu as an unordered list in XHTML</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://klauskjeldsen.dk/typo3-setting-xhtml-11-doctype/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>TYPO3: Add tt_news LATEST as TypoScript Object</title><link>http://klauskjeldsen.dk/typo3-add-tt_news-latest-as-typoscript-object/</link> <comments>http://klauskjeldsen.dk/typo3-add-tt_news-latest-as-typoscript-object/#comments</comments> <pubDate>Mon, 02 Apr 2007 14:47:32 +0000</pubDate> <dc:creator>Klaus Kjeldsen</dc:creator> <category><![CDATA[TYPO3/TypoScript]]></category><guid
isPermaLink="false">http://www.klauskjeldsen.dk/2007/04/02/typo3-add-tt_news-latest-as-typoscript-object/</guid> <description><![CDATA[This shows how to place a news block on a webpage. When using TemplaVoila you can map tt_news LATEST as a TypoScript Object to a specific place in your HTML Template, and it&#8217;s possible to narrow it down to certain &#8230; <a
href="http://klauskjeldsen.dk/typo3-add-tt_news-latest-as-typoscript-object/">Continue reading <span
class="meta-nav">&#8594;</span></a><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-add-tt_news-latest-as-typoscript-object/' addthis:title='TYPO3: Add tt_news LATEST as TypoScript Object '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div> Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/' rel='bookmark' title='TYPO3: tt_news LIST and SINGLE at the same page'>TYPO3: tt_news LIST and SINGLE at the same page</a></li><li><a
href='http://klauskjeldsen.dk/typo3-changing-the-tt_news-template-markup/' rel='bookmark' title='TYPO3: Changing the tt_news template markup'>TYPO3: Changing the tt_news template markup</a></li><li><a
href='http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/' rel='bookmark' title='TYPO3: How to make a path/breadcrumb in typoscript'>TYPO3: How to make a path/breadcrumb in typoscript</a></li></ol>]]></description> <content:encoded><![CDATA[<p></p><p>This shows how to place a news block on a webpage. When using TemplaVoila you can map tt_news LATEST as a TypoScript Object to a specific place in your HTML Template, and it&#8217;s possible to narrow it down to certain pages, where the LATEST Object is added in place of other content.</p><div
class="codesnip-container" ><div
class="typoscript codesnip" style="font-family:monospace;"><ol><li
class="li1"><div
class="de1">### News LATEST in left column on certain pids</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><a
href="http://documentation.typo3.org/documentation/tsref/conditions/PIDinRootline/"><span
class="kw1">PIDinRootline</span></a> <span
class="sy0">=</span> 57,98<span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>newsLatest <span
class="sy0">&lt;</span> <a
href="http://documentation.typo3.org/documentation/tsref/tlo-objects/plugin/"><span
class="kw3">plugin</span></a><span
class="sy0">.</span>tt_news</div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>newsLatest <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; code <span
class="sy0">&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; code <span
class="sy0">=</span> LATEST</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; pid_list <span
class="sy0">&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; pid_list <span
class="sy0">=</span> <span
class="nu0">78</span>,<span
class="nu0">134</span> <span
class="co2"># the pids where news are stored</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; catImageMode <span
class="sy0">=</span> 0</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; catTextMode <span
class="sy0">=</span> 0</div></li><li
class="li1"><div
class="de1">&nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>sidebar <span
class="sy0">&lt;</span> <span
class="re5">lib</span><span
class="sy0">.</span>newsLatest</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span>else<span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1"><span
class="co2"># Put something else in the lib.sidebar</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">temp</span><span
class="sy0">.</span>sidebar <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/cobjects/TEXT/"><span
class="kw4">TEXT</span></a></div></li><li
class="li1"><div
class="de1"><span
class="re5">temp</span><span
class="sy0">.</span>sidebar<span
class="sy0">.</span>value <span
class="sy0">=</span> <span
class="re2">&lt;p&gt;</span>Something else<span
class="re2">&lt;/p&gt;</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>sidebar <span
class="sy0">&lt;</span> <span
class="re5">temp</span><span
class="sy0">.</span>sidebar</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><span
class="re4">end</span><span
class="br0">&#93;</span></div></li></ol></div></div><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-add-tt_news-latest-as-typoscript-object/' addthis:title='TYPO3: Add tt_news LATEST as TypoScript Object '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/' rel='bookmark' title='TYPO3: tt_news LIST and SINGLE at the same page'>TYPO3: tt_news LIST and SINGLE at the same page</a></li><li><a
href='http://klauskjeldsen.dk/typo3-changing-the-tt_news-template-markup/' rel='bookmark' title='TYPO3: Changing the tt_news template markup'>TYPO3: Changing the tt_news template markup</a></li><li><a
href='http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/' rel='bookmark' title='TYPO3: How to make a path/breadcrumb in typoscript'>TYPO3: How to make a path/breadcrumb in typoscript</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://klauskjeldsen.dk/typo3-add-tt_news-latest-as-typoscript-object/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>TYPO3: tt_news LIST and SINGLE at the same page</title><link>http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/</link> <comments>http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/#comments</comments> <pubDate>Mon, 02 Apr 2007 14:38:21 +0000</pubDate> <dc:creator>Klaus Kjeldsen</dc:creator> <category><![CDATA[TYPO3/TypoScript]]></category><guid
isPermaLink="false">http://www.klauskjeldsen.dk/2007/04/02/typo3-tt_news-list-and-single-at-the-same-page/</guid> <description><![CDATA[The following TS code enables the feature of showing the tt_news list and the tt_news single view at the same page. # Clear the code field plugin.tt_news.code &#62; plugin.tt_news.code = LIST # Prevent indexing of the LIST view config.index_enable = &#8230; <a
href="http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/">Continue reading <span
class="meta-nav">&#8594;</span></a><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/' addthis:title='TYPO3: tt_news LIST and SINGLE at the same page '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div> Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-setting-up-secondary-language/' rel='bookmark' title='TYPO3: Setting up secondary language'>TYPO3: Setting up secondary language</a></li><li><a
href='http://klauskjeldsen.dk/typo3-changing-the-tt_news-template-markup/' rel='bookmark' title='TYPO3: Changing the tt_news template markup'>TYPO3: Changing the tt_news template markup</a></li><li><a
href='http://klauskjeldsen.dk/typo3-add-tt_news-latest-as-typoscript-object/' rel='bookmark' title='TYPO3: Add tt_news LATEST as TypoScript Object'>TYPO3: Add tt_news LATEST as TypoScript Object</a></li></ol>]]></description> <content:encoded><![CDATA[<p></p><p>The following TS code enables the feature of showing the tt_news list and the tt_news single view at the same page.</p><div
class="codesnip-container" ><div
class="typoscript codesnip" style="font-family:monospace;"><ol><li
class="li1"><div
class="de1"><span
class="co2"># Clear the code field</span></div></li><li
class="li1"><div
class="de1"><a
href="http://documentation.typo3.org/documentation/tsref/tlo-objects/plugin/"><span
class="kw3">plugin</span></a><span
class="sy0">.</span>tt_news<span
class="sy0">.</span>code <span
class="sy0">&gt;</span></div></li><li
class="li1"><div
class="de1"><a
href="http://documentation.typo3.org/documentation/tsref/tlo-objects/plugin/"><span
class="kw3">plugin</span></a><span
class="sy0">.</span>tt_news<span
class="sy0">.</span>code <span
class="sy0">=</span> LIST</div></li><li
class="li1"><div
class="de1"><span
class="co2"># Prevent indexing of the LIST view</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">config</span><span
class="sy0">.</span>index_enable <span
class="sy0">=</span> 0</div></li><li
class="li1"><div
class="de1">&nbsp;</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><span
class="re4">globalVar</span> <span
class="sy0">=</span> GP<span
class="sy0">:</span><span
class="re3">tx_ttnews</span><span
class="sy0">|</span>swords <span
class="sy0">=</span> <span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1"><span
class="co2"># Do nothing (reverse hack)</span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span>else<span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1"><span
class="co2"># Set code to SEARCH if swords (search is done) exists</span></div></li><li
class="li1"><div
class="de1"><a
href="http://documentation.typo3.org/documentation/tsref/tlo-objects/plugin/"><span
class="kw3">plugin</span></a><span
class="sy0">.</span>tt_news<span
class="sy0">.</span>code <span
class="sy0">=</span> SEARCH</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><span
class="re4">end</span><span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1">&nbsp;</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><span
class="re4">globalVar</span> <span
class="sy0">=</span> GP<span
class="sy0">:</span><span
class="re3">tx_ttnews</span><span
class="sy0">|</span><span
class="re3">tt_news</span> <span
class="sy0">&gt;</span> <span
class="nu0">0</span><span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1"><span
class="co2"># Set code to SINGLE, if the GETvar tx_ttnews[tt_news] exists</span></div></li><li
class="li1"><div
class="de1"><a
href="http://documentation.typo3.org/documentation/tsref/tlo-objects/plugin/"><span
class="kw3">plugin</span></a><span
class="sy0">.</span>tt_news<span
class="sy0">.</span>code <span
class="sy0">=</span> SINGLE</div></li><li
class="li1"><div
class="de1"><span
class="co2"># Enable indexing of the SINGLE view</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">config</span><span
class="sy0">.</span>index_enable <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><span
class="re4">global</span><span
class="br0">&#93;</span></div></li></ol></div></div><p></p><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/' addthis:title='TYPO3: tt_news LIST and SINGLE at the same page '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-setting-up-secondary-language/' rel='bookmark' title='TYPO3: Setting up secondary language'>TYPO3: Setting up secondary language</a></li><li><a
href='http://klauskjeldsen.dk/typo3-changing-the-tt_news-template-markup/' rel='bookmark' title='TYPO3: Changing the tt_news template markup'>TYPO3: Changing the tt_news template markup</a></li><li><a
href='http://klauskjeldsen.dk/typo3-add-tt_news-latest-as-typoscript-object/' rel='bookmark' title='TYPO3: Add tt_news LATEST as TypoScript Object'>TYPO3: Add tt_news LATEST as TypoScript Object</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>TYPO3: XHTML Valid 3 Level Menu in Typoscript</title><link>http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/</link> <comments>http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/#comments</comments> <pubDate>Thu, 29 Mar 2007 17:54:18 +0000</pubDate> <dc:creator>Klaus Kjeldsen</dc:creator> <category><![CDATA[TYPO3/TypoScript]]></category><guid
isPermaLink="false">http://www.klauskjeldsen.dk/2007/03/29/typo3-xhtml-valid-3-level-menu-in-typoscript/</guid> <description><![CDATA[This is sort of a long snippet, but anyway it is an example of making a vertical 3 level menu, which expand and collapse according to the active and current chosen list-item / page. The menu made as nested unordered &#8230; <a
href="http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/">Continue reading <span
class="meta-nav">&#8594;</span></a><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/' addthis:title='TYPO3: XHTML Valid 3 Level Menu in Typoscript '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div> Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-making-a-xhtml-valid-menu/' rel='bookmark' title='TYPO3: Making a simple menu as an unordered list in XHTML'>TYPO3: Making a simple menu as an unordered list in XHTML</a></li><li><a
href='http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/' rel='bookmark' title='TYPO3: How to make a path/breadcrumb in typoscript'>TYPO3: How to make a path/breadcrumb in typoscript</a></li><li><a
href='http://klauskjeldsen.dk/typo3typoscript-how-to-add-page-updated-timestamp/' rel='bookmark' title='TYPO3/TypoScript: How to add Page Updated Timestamp'>TYPO3/TypoScript: How to add Page Updated Timestamp</a></li></ol>]]></description> <content:encoded><![CDATA[<p>This is sort of a long snippet, but anyway it is an example of making a vertical 3 level menu, which expand and collapse according to the active and current chosen list-item / page. The menu made as nested unordered list, and further it is wrapped in a box made of divs, where the title of active parent page to the menu is shown. The pattern of the typoscript menu could be repeated, if a fourth level is wanted, and it could be shortened to a 1 or 2 level menu.</p><div
class="codesnip-container" ><div
class="typoscript codesnip" style="font-family:monospace;"><ol><li
class="li1"><div
class="de1"><span
class="co2">## SubMenu [Begin]</span></div></li><li
class="li1"><div
class="de1"><span
class="co2"># Removes the menubox from the page ids: 19, 23 (if the page does not have subpages, you don&#8217;t want an empty box) </span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><a
href="http://documentation.typo3.org/documentation/tsref/conditions/PIDinRootline/"><span
class="kw1">PIDinRootline</span></a> <span
class="sy0">=</span> <span
class="nu0">19</span>,<span
class="nu0">23</span><span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1"><span
class="co2"># do nothing (PIDupinRootline doesn&#8217;t seem to work?)</span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span>else<span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1">boxtop <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/cobjects/TEXT/"><span
class="kw4">TEXT</span></a></div></li><li
class="li1"><div
class="de1"><span
class="co2"># get the title of the page on the first level of the rootline.</span></div></li><li
class="li1"><div
class="de1">boxtop<span
class="sy0">.</span>data <span
class="sy0">=</span> leveltitle<span
class="sy0">:</span>1</div></li><li
class="li1"><div
class="de1">boxtop<span
class="sy0">.</span>wrap <span
class="sy0">=</span> <span
class="re2">&lt;div class=&quot;columnbox&quot;&gt;</span><span
class="re2">&lt;div class=&quot;columnbox-top&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/div&gt;</span><span
class="re2">&lt;div class=&quot;columnbox-content&quot;&gt;</span></div></li><li
class="li1"><div
class="de1">boxbottom <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/cobjects/TEXT/"><span
class="kw4">TEXT</span></a></div></li><li
class="li1"><div
class="de1">boxbottom<span
class="sy0">.</span>value <span
class="sy0">=</span> <span
class="re2">&lt;/div&gt;</span><span
class="re2">&lt;div class=&quot;columnbox-bottom&quot;&gt;</span><span
class="re2">&lt;/div&gt;</span><span
class="re2">&lt;/div&gt;</span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><span
class="re4">end</span><span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1">&nbsp;</div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>subMenu <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/cobjects/COA/"><span
class="kw4">COA</span></a></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>subMenu <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># include top of columnbox</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="nu0">9</span> <span
class="sy0">&lt;</span> boxtop</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># making the menu</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10 <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/cobjects/HMENU/"><span
class="kw4">HMENU</span></a></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># defines the menu entrylevel</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>entryLevel <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>1 <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/menu/TMENU/"><span
class="kw7">TMENU</span></a></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>1 <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noBlur <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">CUR</span></a> <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">IFSUB</span></a><span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">ACTIFSUB</span></a> <span
class="sy0">=</span> <span
class="nu0">1</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp;</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># Formatting of menu normal entries as list items.</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>1<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">NO</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrapItemAndSub <span
class="sy0">=</span> <span
class="re2">&lt;li class=&quot;normal minus&quot;&gt;</span><span
class="sy0">|</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># Current menu item is unlinked and wrapped in span</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>1<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">CUR</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrapItemAndSub <span
class="sy0">=</span> <span
class="re2">&lt;li id=&quot;current&quot; class=&quot;minus&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; doNotLinkIt <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; allWrap <span
class="sy0">=</span> <span
class="re2">&lt;span&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/span&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># If the menu item has subs add class plus to change icon to it has subs</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>1<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">IFSUB</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrapItemAndSub <span
class="sy0">=</span> <span
class="re2">&lt;li class=&quot;normal plus&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># Active items above current to be formatted differently</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>1<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">ACTIFSUB</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrapItemAndSub <span
class="sy0">=</span> <span
class="re2">&lt;li class=&quot;active minus&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp;</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># Wrap the first level of the menu inside an unordered list</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>1<span
class="sy0">.</span>wrap <span
class="sy0">=</span> <span
class="re2">&lt;ul class=&quot;cb-menu&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/ul&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp;</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>2 <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/menu/TMENU/"><span
class="kw7">TMENU</span></a></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>2 <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noBlur <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">CUR</span></a> <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">IFSUB</span></a><span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">ACTIFSUB</span></a> <span
class="sy0">=</span> <span
class="nu0">1</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># Same formatting of menu entries as list items.</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>2<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">NO</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrapItemAndSub <span
class="sy0">=</span> <span
class="re2">&lt;li class=&quot;normal minus&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ATagParams <span
class="sy0">=</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># Current menu item is unlinked and marked too</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>2<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">CUR</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrapItemAndSub <span
class="sy0">=</span> <span
class="re2">&lt;li id=&quot;current&quot; class=&quot;minus&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; doNotLinkIt <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; allWrap <span
class="sy0">=</span> <span
class="re2">&lt;span&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/span&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># If the menu item has subs add class plus to change icon</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>2<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">IFSUB</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrapItemAndSub <span
class="sy0">=</span> <span
class="re2">&lt;li class=&quot;normal plus&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># Active items above current to be formatted differently as for first level</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>2<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">ACTIFSUB</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrapItemAndSub <span
class="sy0">=</span> <span
class="re2">&lt;li class=&quot;active minus&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># Wrap the second level of the menu inside an unordered list</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>2<span
class="sy0">.</span>wrap <span
class="sy0">=</span> <span
class="re2">&lt;ul class=&quot;cb-submenu&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/ul&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp;</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>3 <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/menu/TMENU/"><span
class="kw7">TMENU</span></a></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>3 <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noBlur <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">CUR</span></a> <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">IFSUB</span></a> <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">ACTIFSUB</span></a> <span
class="sy0">=</span> <span
class="nu0">1</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># Same formatting of menu entries as list items.</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>3<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">NO</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrapItemAndSub <span
class="sy0">=</span> <span
class="re2">&lt;li class=&quot;normal minus&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ATagParams <span
class="sy0">=</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># Current menu item is unlinked and marked too</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>3<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">CUR</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrapItemAndSub <span
class="sy0">=</span> <span
class="re2">&lt;li id=&quot;current&quot; class=&quot;minus&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; doNotLinkIt <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; allWrap <span
class="sy0">=</span> <span
class="re2">&lt;span&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/span&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># If the menu item has subs add class plus to change icon</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>3<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">IFSUB</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrapItemAndSub <span
class="sy0">=</span> <span
class="re2">&lt;li class=&quot;normal plus&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># Active items above current to be formatted differently as for higher levels</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>3<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">ACTIFSUB</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrapItemAndSub <span
class="sy0">=</span> <span
class="re2">&lt;li class=&quot;active minus&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># Wrap the third level of the menu inside an unordered list</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; 10<span
class="sy0">.</span>3<span
class="sy0">.</span>wrap <span
class="sy0">=</span> <span
class="re2">&lt;ul class=&quot;cb-subsubmenu&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/ul&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp;</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="co2"># end of columnbox</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span
class="nu0">11</span> <span
class="sy0">&lt;</span> boxbottom</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1"><span
class="co2">## SubMenu [End]</span></div></li></ol></div></div><p></code></p><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/' addthis:title='TYPO3: XHTML Valid 3 Level Menu in Typoscript '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-making-a-xhtml-valid-menu/' rel='bookmark' title='TYPO3: Making a simple menu as an unordered list in XHTML'>TYPO3: Making a simple menu as an unordered list in XHTML</a></li><li><a
href='http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/' rel='bookmark' title='TYPO3: How to make a path/breadcrumb in typoscript'>TYPO3: How to make a path/breadcrumb in typoscript</a></li><li><a
href='http://klauskjeldsen.dk/typo3typoscript-how-to-add-page-updated-timestamp/' rel='bookmark' title='TYPO3/TypoScript: How to add Page Updated Timestamp'>TYPO3/TypoScript: How to add Page Updated Timestamp</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>TYPO3: Copyright Notice with Automatic Year Update and Secondary Language Support</title><link>http://klauskjeldsen.dk/typo3-copyright-notice-with-automatic-year-update-and-secondary-language-support/</link> <comments>http://klauskjeldsen.dk/typo3-copyright-notice-with-automatic-year-update-and-secondary-language-support/#comments</comments> <pubDate>Fri, 23 Mar 2007 22:31:01 +0000</pubDate> <dc:creator>Klaus Kjeldsen</dc:creator> <category><![CDATA[TYPO3/TypoScript]]></category><guid
isPermaLink="false">http://www.klauskjeldsen.dk/2007/03/23/typo3-copyright-notice-with-automatic-year-update-and-secondary-language-support/</guid> <description><![CDATA[The following TypoScript shows how to make a copyright notice, which by itself updates the year to the current year. ## Copyright Notice [Begin] # Automatic year update lib.copyright = TEXT lib.copyright.data = date:U lib.copyright.strftime = %Y lib.copyright.wrap = &#60;p &#8230; <a
href="http://klauskjeldsen.dk/typo3-copyright-notice-with-automatic-year-update-and-secondary-language-support/">Continue reading <span
class="meta-nav">&#8594;</span></a><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-copyright-notice-with-automatic-year-update-and-secondary-language-support/' addthis:title='TYPO3: Copyright Notice with Automatic Year Update and Secondary Language Support '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div> Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-setting-up-secondary-language/' rel='bookmark' title='TYPO3: Setting up secondary language'>TYPO3: Setting up secondary language</a></li><li><a
href='http://klauskjeldsen.dk/typo3typoscript-how-to-add-page-updated-timestamp/' rel='bookmark' title='TYPO3/TypoScript: How to add Page Updated Timestamp'>TYPO3/TypoScript: How to add Page Updated Timestamp</a></li><li><a
href='http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/' rel='bookmark' title='TYPO3: XHTML Valid 3 Level Menu in Typoscript'>TYPO3: XHTML Valid 3 Level Menu in Typoscript</a></li></ol>]]></description> <content:encoded><![CDATA[<p></p><p>The following TypoScript shows how to make a copyright notice, which by itself updates the year to the current year.</p><div
class="codesnip-container" ><div
class="typoscript codesnip" style="font-family:monospace;"><ol><li
class="li1"><div
class="de1"><span
class="co2">## Copyright Notice [Begin]</span></div></li><li
class="li1"><div
class="de1"><span
class="co2"># Automatic year update</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>copyright <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/cobjects/TEXT/"><span
class="kw4">TEXT</span></a></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>copyright<span
class="sy0">.</span>data <span
class="sy0">=</span> date<span
class="sy0">:</span>U</div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>copyright<span
class="sy0">.</span>strftime <span
class="sy0">=</span> <span
class="sy0">%</span>Y</div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>copyright<span
class="sy0">.</span>wrap <span
class="sy0">=</span> <span
class="re2">&lt;p id=&quot;copyright&quot;&gt;</span> <span
class="sy0">|</span> &amp;copy; Firma <span
class="re2">&lt;/p&gt;</span></div></li><li
class="li1"><div
class="de1"><span
class="co2"># secondary language copyright notice</span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><span
class="re4">globalVar</span> <span
class="sy0">=</span> GP<span
class="sy0">:</span>L <span
class="sy0">=</span> 1<span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>copyright<span
class="sy0">.</span>wrap <span
class="sy0">=</span> <span
class="re2">&lt;p id=&quot;copyright&quot;&gt;</span> <span
class="sy0">|</span> &amp;copy; Company <span
class="re2">&lt;/p&gt;</span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><span
class="re4">end</span><span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1"><span
class="co2">## Copyright Notice [End]</span></div></li></ol></div></div><p><span
id="more-12"></span><br
/></p><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-copyright-notice-with-automatic-year-update-and-secondary-language-support/' addthis:title='TYPO3: Copyright Notice with Automatic Year Update and Secondary Language Support '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-setting-up-secondary-language/' rel='bookmark' title='TYPO3: Setting up secondary language'>TYPO3: Setting up secondary language</a></li><li><a
href='http://klauskjeldsen.dk/typo3typoscript-how-to-add-page-updated-timestamp/' rel='bookmark' title='TYPO3/TypoScript: How to add Page Updated Timestamp'>TYPO3/TypoScript: How to add Page Updated Timestamp</a></li><li><a
href='http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/' rel='bookmark' title='TYPO3: XHTML Valid 3 Level Menu in Typoscript'>TYPO3: XHTML Valid 3 Level Menu in Typoscript</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://klauskjeldsen.dk/typo3-copyright-notice-with-automatic-year-update-and-secondary-language-support/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>TYPO3: Making a simple menu as an unordered list in XHTML</title><link>http://klauskjeldsen.dk/typo3-making-a-xhtml-valid-menu/</link> <comments>http://klauskjeldsen.dk/typo3-making-a-xhtml-valid-menu/#comments</comments> <pubDate>Fri, 23 Mar 2007 19:16:42 +0000</pubDate> <dc:creator>Klaus Kjeldsen</dc:creator> <category><![CDATA[TYPO3/TypoScript]]></category><guid
isPermaLink="false">http://www.klauskjeldsen.dk/2007/03/23/typo3-making-a-xhtml-valid-menu/</guid> <description><![CDATA[This example how to make a menu as an unordered list, by enabling ACT (active) and CUR (current) it sets the &#60;li&#62; tags with attributes class=&#8221;active&#8221; and id=&#8221;current&#8221; respectively. The current page is wrapped in &#60;span&#62; and not linked. ## &#8230; <a
href="http://klauskjeldsen.dk/typo3-making-a-xhtml-valid-menu/">Continue reading <span
class="meta-nav">&#8594;</span></a><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-making-a-xhtml-valid-menu/' addthis:title='TYPO3: Making a simple menu as an unordered list in XHTML '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div> Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/' rel='bookmark' title='TYPO3: XHTML Valid 3 Level Menu in Typoscript'>TYPO3: XHTML Valid 3 Level Menu in Typoscript</a></li><li><a
href='http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/' rel='bookmark' title='TYPO3: How to make a path/breadcrumb in typoscript'>TYPO3: How to make a path/breadcrumb in typoscript</a></li><li><a
href='http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/' rel='bookmark' title='TYPO3: tt_news LIST and SINGLE at the same page'>TYPO3: tt_news LIST and SINGLE at the same page</a></li></ol>]]></description> <content:encoded><![CDATA[<p></p><p>This example how to make a menu as an unordered list, by enabling ACT (active) and CUR (current) it sets the &lt;li&gt; tags with attributes <em>class=&#8221;active&#8221;</em> and <em>id=&#8221;current&#8221;</em> respectively. The current page is wrapped in &lt;span&gt; and not linked.</p><p><br/></p><div
class="codesnip-container" ><div
class="typoscript codesnip" style="font-family:monospace;"><ol><li
class="li1"><div
class="de1"><span
class="co2">## MainMenu [Begin]</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>mainMenu <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/cobjects/HMENU/"><span
class="kw4">HMENU</span></a></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>mainMenu<span
class="sy0">.</span>entryLevel <span
class="sy0">=</span> 0</div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>mainMenu<span
class="sy0">.</span>wrap <span
class="sy0">=</span> <span
class="re2">&lt;ul&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/ul&gt;</span> &nbsp; &nbsp;</div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>mainMenu<span
class="sy0">.</span>1 <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/menu/TMENU/"><span
class="kw7">TMENU</span></a></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>mainMenu<span
class="sy0">.</span>1 <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; noBlur <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">ACT</span></a> <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">CUR</span></a> <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>mainMenu<span
class="sy0">.</span>1<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">NO</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; allWrap <span
class="sy0">=</span> <span
class="re2">&lt;li&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>mainMenu<span
class="sy0">.</span>1<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">ACT</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; allWrap <span
class="sy0">=</span> <span
class="re2">&lt;li class=&quot;active&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>mainMenu<span
class="sy0">.</span>1<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">CUR</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; allWrap <span
class="sy0">=</span> <span
class="re2">&lt;li id=&quot;current&quot;&gt;</span><span
class="re2">&lt;span&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/span&gt;</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; doNotLinkIt <span
class="sy0">=</span> <span
class="nu0">1</span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1"><span
class="co2">## MainMenu [End]</span></div></li></ol></div></div><p>The above example can be extended using <em>field:title</em> and <em>field:subtitle</em>, if a specific id for styling is needed or if some information should be placed as value in the <em>title</em> attribute.</p><div
class="codesnip-container" ><div
class="typoscript codesnip" style="font-family:monospace;"><ol><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>mainMenu<span
class="sy0">.</span>1<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">NO</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; allWrap <span
class="sy0">=</span> <span
class="re2">&lt;li&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; ATagParams<span
class="sy0">.</span>dataWrap <span
class="sy0">=</span> id<span
class="sy0">=</span>&quot;<span
class="br0">&#123;</span>field<span
class="sy0">:</span>title<span
class="br0">&#125;</span>&quot; title<span
class="sy0">=</span>&quot;<span
class="br0">&#123;</span>field<span
class="sy0">:</span>subtitle<span
class="br0">&#125;</span>&quot;</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>mainMenu<span
class="sy0">.</span>1<span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">ACT</span></a> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; allWrap <span
class="sy0">=</span> <span
class="re2">&lt;li class=&quot;active&quot;&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/li&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; ATagParams<span
class="sy0">.</span>dataWrap <span
class="sy0">=</span> &nbsp;id<span
class="sy0">=</span>&quot;<span
class="br0">&#123;</span>field<span
class="sy0">:</span>title<span
class="br0">&#125;</span>&quot; title<span
class="sy0">=</span>&quot;<span
class="br0">&#123;</span>field<span
class="sy0">:</span>subtitle<span
class="br0">&#125;</span>&quot;</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#125;</span></div></li></ol></div></div><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-making-a-xhtml-valid-menu/' addthis:title='TYPO3: Making a simple menu as an unordered list in XHTML '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/' rel='bookmark' title='TYPO3: XHTML Valid 3 Level Menu in Typoscript'>TYPO3: XHTML Valid 3 Level Menu in Typoscript</a></li><li><a
href='http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/' rel='bookmark' title='TYPO3: How to make a path/breadcrumb in typoscript'>TYPO3: How to make a path/breadcrumb in typoscript</a></li><li><a
href='http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/' rel='bookmark' title='TYPO3: tt_news LIST and SINGLE at the same page'>TYPO3: tt_news LIST and SINGLE at the same page</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://klauskjeldsen.dk/typo3-making-a-xhtml-valid-menu/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>TYPO3: How to make a path/breadcrumb in typoscript</title><link>http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/</link> <comments>http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/#comments</comments> <pubDate>Fri, 23 Mar 2007 15:36:04 +0000</pubDate> <dc:creator>Klaus Kjeldsen</dc:creator> <category><![CDATA[TYPO3/TypoScript]]></category><guid
isPermaLink="false">http://www.klauskjeldsen.dk/2007/03/23/typo3-making-a-pathbreadcrumb-in-typoscript/</guid> <description><![CDATA[Get the titles of the root page down the hierarchy to the current page without linking the current/active page: ## Path [Begin] lib.path = HMENU lib.path.special = rootline lib.path.special.range = 0 lib.path.1 = TMENU lib.path.1 &#123; &#160; &#160; &#160; &#160; &#8230; <a
href="http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/">Continue reading <span
class="meta-nav">&#8594;</span></a><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/' addthis:title='TYPO3: How to make a path/breadcrumb in typoscript '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div> Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/' rel='bookmark' title='TYPO3: XHTML Valid 3 Level Menu in Typoscript'>TYPO3: XHTML Valid 3 Level Menu in Typoscript</a></li><li><a
href='http://klauskjeldsen.dk/typo3-making-a-xhtml-valid-menu/' rel='bookmark' title='TYPO3: Making a simple menu as an unordered list in XHTML'>TYPO3: Making a simple menu as an unordered list in XHTML</a></li><li><a
href='http://klauskjeldsen.dk/typo3typoscript-how-to-add-page-updated-timestamp/' rel='bookmark' title='TYPO3/TypoScript: How to add Page Updated Timestamp'>TYPO3/TypoScript: How to add Page Updated Timestamp</a></li></ol>]]></description> <content:encoded><![CDATA[<p></p><p>Get the titles of the root page down the hierarchy to the current page without linking the current/active page:</p><div
class="codesnip-container" ><div
class="typoscript codesnip" style="font-family:monospace;"><ol><li
class="li1"><div
class="de1"><span
class="co2">## Path [Begin]</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>path <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/cobjects/HMENU/"><span
class="kw4">HMENU</span></a></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>path<span
class="sy0">.</span>special <span
class="sy0">=</span> rootline</div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>path<span
class="sy0">.</span>special<span
class="sy0">.</span>range <span
class="sy0">=</span> 0</div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>path<span
class="sy0">.</span>1 <span
class="sy0">=</span> <a
href="http://documentation.typo3.org/documentation/tsref/menu/TMENU/"><span
class="kw7">TMENU</span></a></div></li><li
class="li1"><div
class="de1"><span
class="re5">lib</span><span
class="sy0">.</span>path<span
class="sy0">.</span>1 <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; noBlur <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">NO</span></a><span
class="sy0">.</span>linkWrap <span
class="sy0">=</span> <span
class="sy0">|</span>&amp;nbsp;<span
class="sy0">/</span>&amp;nbsp;<span
class="sy0">|*||*|</span> <span
class="sy0">|</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">NO</span></a><span
class="sy0">.</span><a
href="http://documentation.typo3.org/documentation/tsref/functions/stdWrap/"><span
class="kw2">stdWrap</span></a><span
class="sy0">.</span>htmlSpecialChars <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">CUR</span></a> <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">CUR</span></a><span
class="sy0">.</span>allWrap <span
class="sy0">=</span> <span
class="re2">&lt;span&gt;</span><span
class="sy0">|</span><span
class="re2">&lt;/span&gt;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/menu/item-states/"><span
class="kw9">CUR</span></a><span
class="sy0">.</span>doNotLinkIt <span
class="sy0">=</span> <span
class="nu0">1</span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1"><span
class="co2">## Path [End]</span></div></li></ol></div></div><p><span
id="more-10"></span><br
/></p><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/' addthis:title='TYPO3: How to make a path/breadcrumb in typoscript '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-xhtml-valid-3-level-menu-in-typoscript/' rel='bookmark' title='TYPO3: XHTML Valid 3 Level Menu in Typoscript'>TYPO3: XHTML Valid 3 Level Menu in Typoscript</a></li><li><a
href='http://klauskjeldsen.dk/typo3-making-a-xhtml-valid-menu/' rel='bookmark' title='TYPO3: Making a simple menu as an unordered list in XHTML'>TYPO3: Making a simple menu as an unordered list in XHTML</a></li><li><a
href='http://klauskjeldsen.dk/typo3typoscript-how-to-add-page-updated-timestamp/' rel='bookmark' title='TYPO3/TypoScript: How to add Page Updated Timestamp'>TYPO3/TypoScript: How to add Page Updated Timestamp</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://klauskjeldsen.dk/typo3-making-a-pathbreadcrumb-in-typoscript/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>TYPO3: Setting up secondary language</title><link>http://klauskjeldsen.dk/typo3-setting-up-secondary-language/</link> <comments>http://klauskjeldsen.dk/typo3-setting-up-secondary-language/#comments</comments> <pubDate>Fri, 23 Mar 2007 14:04:09 +0000</pubDate> <dc:creator>Klaus Kjeldsen</dc:creator> <category><![CDATA[TYPO3/TypoScript]]></category><guid
isPermaLink="false">http://klauskjeldsen.dk/2007/03/23/typo3-setting-up-secondary-language/</guid> <description><![CDATA[## Language settings [Begin] config &#123; &#160; &#160; &#160; &#160; linkVars = L &#160; &#160; &#160; &#160; sys_language_uid = 0 &#160; &#160; &#160; &#160; language = en &#160; &#160; &#160; &#160; locale_all = english &#160; &#160; &#160; &#160; sys_language_mode = &#8230; <a
href="http://klauskjeldsen.dk/typo3-setting-up-secondary-language/">Continue reading <span
class="meta-nav">&#8594;</span></a><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-setting-up-secondary-language/' addthis:title='TYPO3: Setting up secondary language '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div> Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-copyright-notice-with-automatic-year-update-and-secondary-language-support/' rel='bookmark' title='TYPO3: Copyright Notice with Automatic Year Update and Secondary Language Support'>TYPO3: Copyright Notice with Automatic Year Update and Secondary Language Support</a></li><li><a
href='http://klauskjeldsen.dk/typo3-setting-xhtml-11-doctype/' rel='bookmark' title='TYPO3: Setting XHTML 1.1 DOCTYPE'>TYPO3: Setting XHTML 1.1 DOCTYPE</a></li><li><a
href='http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/' rel='bookmark' title='TYPO3: tt_news LIST and SINGLE at the same page'>TYPO3: tt_news LIST and SINGLE at the same page</a></li></ol>]]></description> <content:encoded><![CDATA[<p></p><div
class="codesnip-container" ><div
class="typoscript codesnip" style="font-family:monospace;"><ol><li
class="li1"><div
class="de1"><span
class="co2">## Language settings [Begin]</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">config</span> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; linkVars <span
class="sy0">=</span> L</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; sys_language_uid <span
class="sy0">=</span> 0</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/conditions/language/"><span
class="kw1">language</span></a> <span
class="sy0">=</span> en</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; locale_all <span
class="sy0">=</span> english</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; sys_language_mode <span
class="sy0">=</span> content_fallback</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; sys_language_overlay <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><span
class="re4">globalVar</span> <span
class="sy0">=</span> GP<span
class="sy0">:</span>L <span
class="sy0">=</span> 0<span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">config</span> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; sys_language_uid <span
class="sy0">=</span> 0</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/conditions/language/"><span
class="kw1">language</span></a> <span
class="sy0">=</span> en</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; locale_all <span
class="sy0">=</span> english</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><span
class="re4">end</span><span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><span
class="re4">globalVar</span> <span
class="sy0">=</span> GP<span
class="sy0">:</span>L <span
class="sy0">=</span> 1<span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1"><span
class="re5">config</span> <span
class="br0">&#123;</span></div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; sys_language_uid <span
class="sy0">=</span> 1</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <a
href="http://documentation.typo3.org/documentation/tsref/conditions/language/"><span
class="kw1">language</span></a> <span
class="sy0">=</span> dk</div></li><li
class="li1"><div
class="de1">&nbsp; &nbsp; &nbsp; &nbsp; locale_all <span
class="sy0">=</span> danish</div></li><li
class="li1"><div
class="de1"><span
class="br0">&#125;</span></div></li><li
class="li1"><div
class="de1"><span
class="br0">&#91;</span><span
class="re4">end</span><span
class="br0">&#93;</span></div></li><li
class="li1"><div
class="de1"><span
class="co2">## Language settings [End]</span></div></li></ol></div></div><div
class="addthis_toolbox addthis_default_style " addthis:url='http://klauskjeldsen.dk/typo3-setting-up-secondary-language/' addthis:title='TYPO3: Setting up secondary language '  ><a
class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a
class="addthis_button_tweet"></a><a
class="addthis_counter addthis_pill_style"></a></div><p>Related posts:<ol><li><a
href='http://klauskjeldsen.dk/typo3-copyright-notice-with-automatic-year-update-and-secondary-language-support/' rel='bookmark' title='TYPO3: Copyright Notice with Automatic Year Update and Secondary Language Support'>TYPO3: Copyright Notice with Automatic Year Update and Secondary Language Support</a></li><li><a
href='http://klauskjeldsen.dk/typo3-setting-xhtml-11-doctype/' rel='bookmark' title='TYPO3: Setting XHTML 1.1 DOCTYPE'>TYPO3: Setting XHTML 1.1 DOCTYPE</a></li><li><a
href='http://klauskjeldsen.dk/typo3-tt_news-list-and-single-at-the-same-page/' rel='bookmark' title='TYPO3: tt_news LIST and SINGLE at the same page'>TYPO3: tt_news LIST and SINGLE at the same page</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://klauskjeldsen.dk/typo3-setting-up-secondary-language/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 52/164 queries in 0.137 seconds using disk: basic
Content Delivery Network via N/A

Served from: klauskjeldsen.dk @ 2012-02-04 05:02:42 -->
