typo3

typo3 mobile version of a web site

Mobile phones become smarter at displaying the web. According to Google Analytics reports for several web sites, the number of visitors coming from phones grows every week. Therefore having a mobile version of the web site becomes an important business advantage. In this article I describe how to easily create a mobile version of the web site using TYPO3 and TemplaVoila. (continue reading…)


How to enable Memcached cache in TYPO3 4.3

Types of caches in TYPO3

There are three different caches in TYPO3 4.3:

  • cache_hash
    This cache saves data produced by some TYPO3 functions, mainly by substituteMarkerArrayCached. This cache can be very large, it is used only if page is not cached and it does not make sense to enable Memcached for this cache. Database or file will work best.
  • cache_pagesection
    This cache stores parsed TypoScript templates. It can be stored in Memcached but database is my personal preference for this cache.
  • cache_pages
    This cache stores pages. This is what needs to be as fast as possible. So Memcached will be the best candidate for this cache.

(continue reading…)


TypoScript in 45 minutes

Table of Contents
TypoScript in 45 minutes…………………..1
Introduction………………………………………………………….3
About this document……………………………………………..3
Feedback………………………………………………………………..3
TypoScript – a quick overview………………………………4 (continue reading…)

TCA – color picker

The colorpicker wizard allows you to select a HTML color value from a user-friendly pop-up box. The wizard type is “colorbox” which will first of all add a colored box next to an input field. Here’s how it looks in a “haiku” record of the “examples” extension:

onefunction (color) (continue reading…)


flexform配置reload显示不同配置项

主要用到displayCond这个标签:

<mode>
<TCEforms>
<label>LLL:EXT:cfa_mooflow/locallang_db.xml:cfa_mooflow.pi_flexform.mode</label>
<onChange>reload</onChange>
<config>
<type>select</type>
<items type=”array”>
<numIndex index=”0″ type=”array”>
<numIndex index=”0″>LLL:EXT:cfa_mooflow/locallang_db.xml:cfa_mooflow.pi_flexform.mode.0</numIndex>
<numIndex index=”1″>MANUAL</numIndex>
</numIndex>
<numIndex index=”1″ type=”array”>
<numIndex index=”0″>LLL:EXT:cfa_mooflow/locallang_db.xml:cfa_mooflow.pi_flexform.mode.1</numIndex>
<numIndex index=”1″>DIRECTORY</numIndex>
</numIndex>
</items>
</config>
</TCEforms>
</mode>

<defaultmode>
<TCEforms>
<displayCond>FIELD:mode:=:MANUAL</displayCond>
<label>LLL:EXT:cfa_mooflow/locallang_db.xml:cfa_mooflow.pi_flexform.images</label>
<config>
<type>group</type>
<internal_type>file</internal_type>
<allowed>jpg,gif,png</allowed>
<max_size>100000</max_size>
<uploadfolder>uploads/tx_cfamooflow/</uploadfolder>
<maxitems>100</maxitems>
<size>10</size>
<selectedListStyle>Width:280px</selectedListStyle>
</config>
</TCEforms>
</defaultmode> (continue reading…)


TypoScript reference – getText

This page is document in progress. TypoScript

getText is an advanced TypoScript datatype. It enables you to access almost any data in the TYPO3 system. getText is so flexible, that it deserves it’s own page and hopefully some day this page will have enough information to be pointed to by the TSref.

It is defined in typo3/sysext/cms/tslib/class.tslib_content.php function getData.

Luckily this datatype is available everywhere, where a property has the addition stdWrap. Namely the stdWrap.data and the stdWrap.dataWrap properties. If stdWrap.insertData is set to 1, then also the property itself is parsed similar as .dataWrap is. (continue reading…)

1 Comment more...

nav_title的TS应用

level:1

Gets the current level in the rootline.

levelfield:<position>,<fieldname>[,slide]

<position> position in rootline Examples: 0: Level 0 1: Level 1 etc -1: The Level of this Page -2: One Level Up etc <fieldname> name of a field of table pages. (see notes) “ , slide” parameter forces a walk to the bottom of the rootline until there’s a “true” value to return. (continue reading…)


RTE图片绝对路径

t3lib/class.t3lib_parsehtml_proc.php line533 块注释

                    // Convert abs to rel url
                 if ($imgSplit[$k])    {
                    $attribArray=$this->get_tag_attributes_classic($imgSplit[$k],1);
                    $absRef = trim($attribArray['src']);
                    if (t3lib_div::isFirstPartOfStr($absRef,$siteUrl))    {
                        $attribArray['src'] = $this->relBackPath.substr($absRef,strlen($siteUrl));
                        if (!isset($attribArray['alt']))    $attribArray['alt']='';        // Must have alt-attribute for XHTML compliance.
                        $imgSplit[$k]='';
                    }
                } 
1 Comment more...

RTE文件相对路径转绝对路径

Attached patch adds a setting RTE.default.proc.preserveExternalURLs, which if set to 1 fixes this issue. If someone needs the URLs to be relative, it can be set to 0. (continue reading…)


TYPO3 RTE Tip: Putting code tags inside ul, li, or ol tags

Sometimes I write tutorials about computer stuff. And sometimes I write lists in those tutorials.

The problem I was having with TYPO3 when doing this was that whenever I put a <code> tag inside of an ordered or unordered list, the <code> tag wasn’t properly translated on the frontend of the web site. The < and > brackets around the ‘code’ tag were run through htmlspecialcharacters and were showing up on the front end. (continue reading…)

1 Comment more...

Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress