<?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>David Ansermot &#187; Snippets</title>
	<atom:link href="http://www.ansermot.ch/cats/devs/snippets/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ansermot.ch</link>
	<description>Web Developer / TYPO3 Integrator</description>
	<lastBuildDate>Mon, 26 Dec 2011 23:58:09 +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 &#8211; Disable upload option for images fields in DS</title>
		<link>http://www.ansermot.ch/devs/cms/2011/typo3-disable-upload-option-images-fields-datastructur.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=typo3-disable-upload-option-images-fields-datastructur</link>
		<comments>http://www.ansermot.ch/devs/cms/2011/typo3-disable-upload-option-images-fields-datastructur.html#comments</comments>
		<pubDate>Tue, 29 Nov 2011 08:20:23 +0000</pubDate>
		<dc:creator>Ansermot.ch</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Flexible Content]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[TYPO3]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.ansermot.ch/?p=1590</guid>
		<description><![CDATA[A small tip today but usefull for contributors. When you make a FCE, and use fields of type "image" of "image fixed W + H", the contributor can select image in TYPO3 or upload a new one. By putting this code in the field's config xml in your datastructure, it'll block the upload field. (You [...]]]></description>
		<wfw:commentRss>http://www.ansermot.ch/devs/cms/2011/typo3-disable-upload-option-images-fields-datastructur.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TYPO3 &#8211; Auto assign not-logged feuser to a fegroup</title>
		<link>http://www.ansermot.ch/devs/cms/2011/typo3-auto-assign-not-logged-feuser-to-a-fegroup.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=typo3-auto-assign-not-logged-feuser-to-a-fegroup</link>
		<comments>http://www.ansermot.ch/devs/cms/2011/typo3-auto-assign-not-logged-feuser-to-a-fegroup.html#comments</comments>
		<pubDate>Wed, 16 Nov 2011 09:21:08 +0000</pubDate>
		<dc:creator>Ansermot.ch</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[TYPO3]]></category>

		<guid isPermaLink="false">http://www.ansermot.ch/?p=1584</guid>
		<description><![CDATA[In today's short snippet, I'll give you the easiest way I now to to assign a fegroup to your visitors, without login. 1- Begin by creating your FEgroup if not done yet. 2- In your localconf.php, for exemple, add those lines : $ip = $_SERVER&#91;'REMOTE_ADDR'&#93;; $GLOBALS&#91;'TYPO3_CONF_VARS'&#93;&#91;'FE'&#93;&#91;'IPmaskMountGroups'&#93;&#91;&#93; = array&#40;$ip, GROUPID&#41;; 3- Replace "GROUPID" by the id [...]]]></description>
		<wfw:commentRss>http://www.ansermot.ch/devs/cms/2011/typo3-auto-assign-not-logged-feuser-to-a-fegroup.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TYPO3 &#8211; Get FCE&#8217;s header title in your DataStructure</title>
		<link>http://www.ansermot.ch/devs/cms/2011/typo3-get-fces-header-title-in-your-datastructure.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=typo3-get-fces-header-title-in-your-datastructure</link>
		<comments>http://www.ansermot.ch/devs/cms/2011/typo3-get-fces-header-title-in-your-datastructure.html#comments</comments>
		<pubDate>Wed, 02 Nov 2011 15:29:44 +0000</pubDate>
		<dc:creator>Ansermot.ch</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[TYPO3]]></category>
		<category><![CDATA[TypoScript]]></category>

		<guid isPermaLink="false">http://www.ansermot.ch/?p=1579</guid>
		<description><![CDATA[Hi, today I'll give you a small but usefull tip if you use FCEs in your installations. I prefere use the FCE's standard header title to name my FCEs and so display this title on the frontend. To do this, create a FCE field of type "Only TypoScript". In the datastructure, between the &#60;TypoScript/&#62; tags, [...]]]></description>
		<wfw:commentRss>http://www.ansermot.ch/devs/cms/2011/typo3-get-fces-header-title-in-your-datastructure.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TYPO3 &#8211; 4.5 set link target for page type &#8220;external url&#8221;</title>
		<link>http://www.ansermot.ch/devs/cms/2011/typo3-4-5-set-link-target-for-page-type-external-url.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=typo3-4-5-set-link-target-for-page-type-external-url</link>
		<comments>http://www.ansermot.ch/devs/cms/2011/typo3-4-5-set-link-target-for-page-type-external-url.html#comments</comments>
		<pubDate>Mon, 05 Sep 2011 09:44:53 +0000</pubDate>
		<dc:creator>Ansermot.ch</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Features]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[TYPO3]]></category>

		<guid isPermaLink="false">http://www.ansermot.ch/?p=1573</guid>
		<description><![CDATA[Recently, I've encountered a problem to define the target for my external urls in page tree. The solution I found works on TYPO3 4.5 but not tested on older version. Edit external url page properties Go to the Behavior tab Set the field "Link target" with _blank (or other if needed). See ya Posts that [...]]]></description>
		<wfw:commentRss>http://www.ansermot.ch/devs/cms/2011/typo3-4-5-set-link-target-for-page-type-external-url.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; Detect if script is running in CLI mode</title>
		<link>http://www.ansermot.ch/devs/snippets/2011/php-detect-if-script-is-running-in-cli-mode.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=php-detect-if-script-is-running-in-cli-mode</link>
		<comments>http://www.ansermot.ch/devs/snippets/2011/php-detect-if-script-is-running-in-cli-mode.html#comments</comments>
		<pubDate>Wed, 18 May 2011 07:39:50 +0000</pubDate>
		<dc:creator>Ansermot.ch</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://www.ansermot.ch/?p=1543</guid>
		<description><![CDATA[It'll not be a long snippet for this. Just a "have to know" snippet $isCLI = &#40;php_sapi_name&#40;&#41; == 'cli'&#41; ? true : false; Nothing more is needed. Enjoy Posts that maybe you want to read :: HowTo Detect SSL in PHP TYPO3 &#8211; Auto assign not-logged feuser to a fegroup TYPO3 &#8211; Get content element [...]]]></description>
		<wfw:commentRss>http://www.ansermot.ch/devs/snippets/2011/php-detect-if-script-is-running-in-cli-mode.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; Generate Luhn checksum (for valid account numbers)</title>
		<link>http://www.ansermot.ch/devs/snippets/2011/php-generate-luhn-checksum-for-valid-account-numbers.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=php-generate-luhn-checksum-for-valid-account-numbers</link>
		<comments>http://www.ansermot.ch/devs/snippets/2011/php-generate-luhn-checksum-for-valid-account-numbers.html#comments</comments>
		<pubDate>Tue, 26 Apr 2011 12:51:51 +0000</pubDate>
		<dc:creator>Ansermot.ch</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Account]]></category>
		<category><![CDATA[Algorithm]]></category>
		<category><![CDATA[Checksum]]></category>
		<category><![CDATA[Luhn]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippet]]></category>

		<guid isPermaLink="false">http://www.ansermot.ch/?p=1502</guid>
		<description><![CDATA[Here's a function to calculate the Luhn checksum of a 15 digits account number (the checksum'll be the 16th digit) : public function luhnChecksum&#40;$accountNumber&#41; &#123; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; // Buffer &#160; &#160; &#160; &#160; $sum = 0; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; // [...]]]></description>
		<wfw:commentRss>http://www.ansermot.ch/devs/snippets/2011/php-generate-luhn-checksum-for-valid-account-numbers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TYPO3 &#8211; Change files/images upload limit</title>
		<link>http://www.ansermot.ch/devs/cms/2011/typo3-change-filesimages-upload-limit.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=typo3-change-filesimages-upload-limit</link>
		<comments>http://www.ansermot.ch/devs/cms/2011/typo3-change-filesimages-upload-limit.html#comments</comments>
		<pubDate>Mon, 18 Apr 2011 08:33:40 +0000</pubDate>
		<dc:creator>Ansermot.ch</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Trick]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[TYPO3]]></category>
		<category><![CDATA[Upload]]></category>

		<guid isPermaLink="false">http://www.ansermot.ch/?p=1484</guid>
		<description><![CDATA[Today I'll explain how to change the limit for files, images and other medias upload. To do the trick, you have multiple changes to make. 1- Apache configuration Change the limit of Apache by editing this variable : LimitRequestBody 100MB &#160; 2- PHP module configuration You have to ways to do that. In the php.ini [...]]]></description>
		<wfw:commentRss>http://www.ansermot.ch/devs/cms/2011/typo3-change-filesimages-upload-limit.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript &#8211; Test if variable is numeric</title>
		<link>http://www.ansermot.ch/devs/snippets/2011/javascript-test-if-variable-is-numeric.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=javascript-test-if-variable-is-numeric</link>
		<comments>http://www.ansermot.ch/devs/snippets/2011/javascript-test-if-variable-is-numeric.html#comments</comments>
		<pubDate>Thu, 14 Apr 2011 13:08:23 +0000</pubDate>
		<dc:creator>Ansermot.ch</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Numeric]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[Test]]></category>

		<guid isPermaLink="false">http://www.ansermot.ch/?p=1478</guid>
		<description><![CDATA[Here's a simple way to check if a variable is numeric or not in javascript function isNumeric&#40;input&#41; &#123; &#160; &#160; &#160; &#160; return &#40;input - 0&#41; == input &#38;&#38; input.length &#62; 0; &#125; Enjoy Posts that maybe you want to read :: Google Maps &#8211; Center and fit map to a group of markers JS [...]]]></description>
		<wfw:commentRss>http://www.ansermot.ch/devs/snippets/2011/javascript-test-if-variable-is-numeric.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TYPO3 &#8211; Get content element from extension code</title>
		<link>http://www.ansermot.ch/devs/cms/2011/typo3-get-content-element-from-extension-code.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=typo3-get-content-element-from-extension-code</link>
		<comments>http://www.ansermot.ch/devs/cms/2011/typo3-get-content-element-from-extension-code.html#comments</comments>
		<pubDate>Wed, 13 Apr 2011 13:15:42 +0000</pubDate>
		<dc:creator>Ansermot.ch</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Content Element]]></category>
		<category><![CDATA[Extension]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[TYPO3]]></category>

		<guid isPermaLink="false">http://www.ansermot.ch/?p=1473</guid>
		<description><![CDATA[I've not wrote something from long time, so today I give you a little snippet. If you have to use in your extension a content element from another page, you can use this function to get it from it's uid : function loadContentElement&#40;$uid&#41; &#123; &#160; &#160; &#160; &#160; &#160; $conf = array&#40; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://www.ansermot.ch/devs/cms/2011/typo3-get-content-element-from-extension-code.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Maps &#8211; Center and fit map to a group of markers</title>
		<link>http://www.ansermot.ch/devs/snippets/2011/google-maps-center-and-fit-map-to-a-group-of-markers.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=google-maps-center-and-fit-map-to-a-group-of-markers</link>
		<comments>http://www.ansermot.ch/devs/snippets/2011/google-maps-center-and-fit-map-to-a-group-of-markers.html#comments</comments>
		<pubDate>Wed, 23 Mar 2011 10:30:36 +0000</pubDate>
		<dc:creator>Ansermot.ch</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[Graphic]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Snippet]]></category>

		<guid isPermaLink="false">http://www.ansermot.ch/?p=1463</guid>
		<description><![CDATA[Today I'll explain how you can center and auto zoom to the correct value your map to fit a group of markers. Suppose that we have our map called myMap and a group of markers called markers (^.^') First of all, we create a group (LatLngBounds object) called bound and we fill it with LatLng [...]]]></description>
		<wfw:commentRss>http://www.ansermot.ch/devs/snippets/2011/google-maps-center-and-fit-map-to-a-group-of-markers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

