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…)


magento can’t login in backend

Open magento/app/code/core/Mage/Core/Model/Session/Abstract/varien.php

Notes :line 96

//if (isset($cookieParams[‘domain’])) {
//$cookieParams[‘domain’] = $cookie->getDomain();
//      }


Linux Software Installation

Linux系统中,软件安装程序比较纷繁复杂,不过最常见的有两种:

1)一种是软件的源代码,您需要自己动手编译它。这种软件安装包通常是用gzip压缩过的tar包(后缀为.tar.gz)。
2)另一种是软件的可执行程序,你只要安装它就可以了。这种软件安装包通常被是一个RPM包(Redhat Linux Packet Manager,就是Redhat的包管理器),后缀是.rpm。

当然,也有用rpm格式打包的源代码,用gzip压缩过的可执行程序包。只要您理解了以下的思路,这两种形式的安装包也不在话下了。 (continue reading…)


ImageMagick PDF to JPG convert error

error:

Postscript delegate failed

Solution

It looks like the input or output filenames are missing or have some problem. Look closer and it is an error caused by gswin32c.exe. ImageMagick uses gswin32c.exe from the Ghostscript package to convert PDF files. So, to fix this error make sure that:

  1. Ghostscript package is installed.
  2. The directory containing gswin32c.exe is in the PATH environment variable.

.htaccess二级域名绑定子目录

RewriteCond %{HTTP_HOST} ^(bbs|blog|download).domain.com$
RewriteRule ^(.*)$ /%1/$1 [L, NC] (continue reading...)

MySQL存储引擎

InnoDB和MyISAM是在使用MySQL最常用的两个表类型,各有优缺点,视具体应用而定。基本的差别为:MyISAM类型不支持事务处理等高级处 理,而InnoDB类型支持。MyISAM类型的表强调的是性能,其执行数度比InnoDB类型更快,但是不提供事务支持,而InnoDB提供事务支持已 经外部键等高级数据库功能。
(continue reading…)


css文字不换行、自动换行、强制换行

强制不换行

div{
white-space:nowrap;
}
自动换行

div{
word-wrap: break-word;
word-break: normal;
}
强制英文单词断行

div{
word-break:break-all;
}

============================================ (continue reading…)


mysql存储引擎和优化

mysql
ISAM MYISAM HEAP INNODB Berkley DB

ISAM
定义明确且历经时间考验的数据表格管理方法,读取操作快,不占用内存和存储资源。
不支持事务,和容错机制 (continue reading…)


MySQL SQL优化的索引问题详解

以下的文章主要介绍的是MySQL SQL优化的索引问题,我们大家都知道在一般的数据中,很多人喜欢用相关索引来对MySQL数据库进行优化。我们通过相关索引在一般的情况下,是帮助我们解决大多数的MySQL SQL性能问题。 (continue reading…)


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