RTE Config for htmlarea delivered with TYPO3 4.2.2
This is a extended version of the standard config.

See link for latest version!

Links:

# This is a modified version by Felix Nagel - FelixNagel.com # original file
could be found under:
\typo3\sysext\rtehtmlarea\res\typical\pageTSConfig.txt # based upon
htmlare delivered with TYPO3 4.2.2 # latest version:
http://www.felixnagel.com/blog/arti

Updated snippet to accommodate multiple links when there are multiple images
(comma separated)
Add link to an image caption. The image in Text with Image and Image content
elements can be assigned a link. But you might want the caption to be linked to
the same location. This line of code will add the link to the caption if a link
is set.

Add link to an image caption. The image in Text with Image and Image content
elements can be assigned a link. But you might want the caption to be linked
to the same location. This line of code will add the link to the caption if a
link is set.

Creates login or logout link for FE users.
- If FE user is NOT logged in, the link text is LOGIN and points to the
login form page.
- If FE user IS logged in, the links text is LOGOUT and directly triggers a
logout.

// addthis to your TS setup:// include lib to handle tt_news cat title in alternative langpage.includeLibs.user_realurlEncTitle=fileadmin/scripts/user_realurlEncTitle.php// In realUrl php config file,add to the postVarSets array in the lookUpTable > useUniqueCache_conf key, add the next key=val:// 'encodeTitle_userProc' => 'user_realurlEncTitle->process'// next the content of the user_realurlEncTitle.php<?php/** * @author Laurent cherpit * @version 0.1.0 * <2010-03-22> * little tricks to set cat title to realurl in alternative language title * Attention: before realurl 1.7.1, the next path is required : http://bugs.typo3.org/view.php?id=13721 */classuser_realurlEncTitle{protected$_keys;protected$_cfg;publicfunctionprocess(&$params){$titlesOl='';$this->_keys=$params['pObj']->orig_paramKeyValues;$this->_cfg=$params['encodingConfiguration'];// work on tt_newscat and syslang > 0if(isset($this->_keys['tx_ttnews[cat]'])&&$this->_keys['L']>0){$res=$GLOBALS['TYPO3_DB']->exec_SELECTquery('title_lang_ol','tt_news_cat','uid='.(int)$this->_keys['tx_ttnews[cat]']);if(($row=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))){$titlesOl=$row['title_lang_ol'];}$GLOBALS['TYPO3_DB']->sql_free_result($res);if(!empty($titlesOl)){$titlesOl=t3lib_div::trimExplode('|',$titlesOl);// get alt label in order of lang id declaration$processedTitle=$titlesOl[((int)$this->_keys['L']-1)]?$titlesOl[((int)$this->_keys['L']-1)]:$params['processedTitle'];unset($titlesOl);// clean title$this->_cleanTitle($processedTitle);$params['processedTitle']=$processedTitle;unset($processedTitle);}}return$params['processedTitle'];}/** * Code snippet from realurl * @param string $processedTitle */protectedfunction_cleanTitle(&$processedTitle){// Fetch character set:$charset=$GLOBALS['TYPO3_CONF_VARS']['BE']['forceCharset']?$GLOBALS['TYPO3_CONF_VARS']['BE']['forceCharset']:$GLOBALS['TSFE']->defaultCharSet;// Convert to lowercase:if($this->_cfg['strtolower']){$processedTitle=$GLOBALS['TSFE']->csConvObj->conv_case($charset,$processedTitle,'toLower');}// Convert some special tokens to the space character:$space=$this->_cfg['spaceCharacter']?substr($this->_cfg['spaceCharacter'],0,1):'_';$processedTitle=strtr($processedTitle,' -+_',$space.$space.$space.$space);// convert spaces// Convert extended letters to ascii equivalents:$processedTitle=$GLOBALS['TSFE']->csConvObj->specCharsToASCII($charset,$processedTitle);// Strip the rest...:$processedTitle=preg_replace('/[^a-zA-Z0-9\\'.$space.']/','',$processedTitle);// strip the rest$processedTitle=preg_replace('/\\'.$space.'+/',$space,$processedTitle);// Convert multiple 'spaces' to a single one$processedTitle=trim($processedTitle,$space);}}

This snippet allows you to simulate common page title for news records, it
includes service name, category and news title.

Sample title:
My News Portal: Extensions updates - New version of tt_news brings more
power into your TYPO3

Code:

// Notes for tt_news 3.x// 1. Below declaration MUST TO be placed after SINGLE view declaration (registers)// 2. SINGLE view template MUST TO contain one of these markers: (registers)// ###NEWS_CATEGORY###// ###NEWS_CATEGORY_ROOTLINE###// ###NEWS_CATEGORY_IMAGE###// tip: If you don't want to show anywhere values of these markers use HTML comment to hide it in template file,// however, you need to use one of them!// tip: Manipulate with sequence and wraps of the COA indexes to get proper title format// tip: make sure that you can use page.headerData.10 (is not used by other declaration)// change it's index if required// tip: by changing lib.newsTitle.wrap you can also display this combination somewhere on the page.[globalVar = GP:tx_ttnews|tt_news > 0]lib.newsTitle =COAlib.newsTitle {10=TEXT10.value = My News Portal
10.noTrimWrap =||:|20=RECORDS20{
source.data = register:newsCategoryUid
tables = tt_news_cat
conf.tt_news_cat =TEXT
conf.tt_news_cat.field = title
conf.tt_news_cat.noTrimWrap =|| - |}30=RECORDS30{
source ={GPvar:tx_ttnews|tt_news}
source.insertData =1
tables = tt_news
conf.tt_news >
conf.tt_news =TEXT
conf.tt_news.field=title
}
wrap =<title>|</title>}page.config.noPageTitle =2page.headerData.10>page.headerData.10< lib.newsTitle
[global]

The tiny snippet is very useful when working on TypoScript templates. Normally
templates are cached and you have to clear cache from time to time while
developing. With the the snippet, template cache is disabled while you are
logged in.
The snippet code needs to be set as userTS in BE user properties.