<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		
		<title>Lelesys: Articles</title>
		<link>http://www.lelesys.com/</link>
		<description>Latest articles from lelesys.com</description>
		<language>en</language>
		<image>
			<title>Lelesys: Articles</title>
			<url>http://www.lelesys.com/EXT:tt_news/ext_icon.gif</url>
			<link>http://www.lelesys.com/</link>
			<width></width>
			<height></height>
			<description>Latest articles from lelesys.com</description>
		</image>
		<generator>TYPO3 - get.content.right</generator>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		
		
		
		<lastBuildDate>Fri, 26 Feb 2010 16:40:00 +0530</lastBuildDate>
		
		
		<item>
			<title>Enabling preformatted block format in TYPO3 RTE</title>
			<link>http://www.lelesys.com/blog-detail/article//enabling-preformatted-block-format-in-typo3-rte.html</link>
			<description>Enabling &quot;Preformatted&quot; block format option for TYPO3 RTE</description>
			<content:encoded><![CDATA[<p class="bodytext">With a new TYPO3 installation default setting for rtehtmlarea is to use &quot;Typical&quot; configuration. This configuration hides the option &quot;Preformatted&quot; from the block format drop-down in the RTE. If you want to write code snippets in your blog then using this Preformatted block format is nice option which basically adds a &lt;pre&gt; tag.</p>
<p class="bodytext">To enable this option put following code snippet in your website's root page TSConfig.</p>
<pre>RTE.default.hidePStyleItems := removeFromList(pre)</pre>]]></content:encoded>
			<category>Articles</category>
			
			<author>pankaj@lelesys.com</author>
			<pubDate>Fri, 26 Feb 2010 16:40:00 +0530</pubDate>
			
		</item>
		
		<item>
			<title>Category drop-down for TYPO3 &quot;cal&quot; extension</title>
			<link>http://www.lelesys.com/blog-detail/article//category-drop-down-for-typo3-cal-extension.html</link>
			<description>Making a drop-down menu of &quot;cal&quot; categories with simple TypoScript object where on change of the...</description>
			<content:encoded><![CDATA[<p class="bodytext">Today I came across a TYPO3 requirement from one of our customers that they need a simple list of events and single view of each event. Additionally they wanted to have a drop-down box showing all event categories and the event list should be filtered with the selected category on change of the drop-down.</p>
<p class="bodytext">I was knowing that the &quot;cal&quot; extension is good extension to work with events in TYPO3. &quot;cal&quot; has list and single event view out of the box but there was no marker available for the list view for category selection. I googled to seek a solution but nothing was found quickly. So I decided to write a quick TypoScript object which simply queries the category table and makes a &lt;select&gt; construct. It took 10 minutes for me to develop the TS and I have it running now. So I thought to share this with everybody.&nbsp;</p>
<p class="bodytext">The following TS object can be put on any page with plugin &quot;tscobj&quot; and it will show you the drop-down with the cal categories. Only thing you have to change is the pid of the event listing page and pid of the events sysfolder.</p>
<pre># object to render cal categories as a dropdown<br />lib.eventcategories = COA<br />lib.eventcategories {<br />  # the all/alle option<br />  10 = TEXT<br />  10 {<br />    # pid of the event list page<br />    typolink.parameter = 131<br />    typolink.returnLast = url<br />    wrap = &lt;option value=&quot;|&quot;&gt;Alle&lt;/option&gt;<br />  }<br />  # render all categories as &lt;option&gt;&lt;/option&gt;<br />  20 = CONTENT<br />  20 {<br />    table = tx_cal_category<br />    # pid of the event storage sysfolder<br />    select.pidInList = 132<br />    renderObj = COA<br />    renderObj {<br />      # this object is rendered only if the tx_cal_controller[category] does not equal<br />      # to category uid in record set<br />      10 = TEXT<br />      10 {<br />        # pid of the event list page<br />        typolink.parameter = 131<br />        typolink.additionalParams.dataWrap = &amp;tx_cal_controller[category]={field:uid}<br />        typolink.useCacheHash = 1<br />        typolink.returnLast = url<br />        dataWrap = &lt;option value=&quot;|&quot;&gt;{field:title}&lt;/option&gt;<br />        if.value.data = GPvar:tx_cal_controller|category<br />        if.equals.field = uid<br />        if.negate = 1<br />      }<br />      # this object is rendered only if the tx_cal_controller[category] equal to<br />      # category uid in record set. so it makes the option selected!<br />      20 &lt; .10<br />      20 {<br />        dataWrap = &lt;option value=&quot;|&quot; selected=&quot;selected&quot;&gt;{field:title}&lt;/option&gt;<br />        if.negate &gt;<br />      }<br />    }<br />  }<br />  # wrapping all options in a select and JS to make redirect onChange!<br />  wrap = &lt;select onChange=&quot;javascript: window.location=this.options[this.selectedIndex].value;&quot;&gt;|&lt;/select&gt;<br />}<br /># this condition hides the category dropdown on single event page!<br />[globalString = GP:tx_cal_controller|view = event]<br /><br />lib.eventcategories &gt;<br /><br />[global]</pre>]]></content:encoded>
			<category>Articles</category>
			
			<author>pankaj@lelesys.com</author>
			<pubDate>Fri, 26 Feb 2010 13:44:00 +0530</pubDate>
			
		</item>
		
	</channel>
</rss>