typoscript

TSMENU给指定页面加class

NO.ATagParams = 
NO.ATagParams.append = TEXT
NO.ATagParams.append.value = class="lightbox"
NO.ATagParams.append.if {
  value.field = uid
  equals = 77
}

(continue reading…)


Use strong and em instead of b and i Tags

By default the RTE in TYPO3 creates and tags which have no semantic meaning but just represent a visual style. Therefore these tags are considered deprecated in modern web design, just like the font-tag. People use CSS to decide if something should be bold or italic. Therefore web developers have switched to strong and em tags which do have a semantic meaning.
Put the following in your TS Setup to convert and tags to and (continue reading…)


TS PHP_SCRIPT

TYPOSCRIPT

temp.phpScript = PHP_SCRIPT
temp.phpScript {
    file = fileadmin/scripts/php_script.inc.php
    myVerySpecialOwnParameter = bla
    myParamArray {
        a = 1
        b = ja
    }
}
page.30.70.10 < temp.phpScript

php_script.inc.php
PHP

' );
?>

TYPO3: RTE embed / iframe tag

TYPO3: RTE embed / iframe tag

According to Google Analytics a lot of people are currently looking for a way to use embed tags within the (tt_news) RTE. By default the TYPO3 RTE will remove these embed tags, but it’s fairly easy to change this. In this tutorial I’ll show you how to insert an iframe, within the TYPO3 RTE.
(continue reading…)


Typoscript Auto Copyright

## Copyright Notice [Begin]
      # Automatic year update
      lib.copyright = TEXT
      lib.copyright.data = date:U
      lib.copyright.strftime = %Y
      lib.copyright.wrap = 
      # secondary language copyright notice
      [globalVar = GP:L = 1]
        lib.copyright.wrap = 
      [end]
      ## Copyright Notice [End]

Displaying the current date

You can display the current date in various formats on a web site. This can be implemented by using the PHP function strftime within your TypoScript template record. (continue reading…)


tt_content自定义type

h1-h6扩展:
1. 在根page的option里配置TS

TCEFORM.tt_content.header_layout.addItems.99 = test

2. 在page.setup的TS里配置:

lib.stdheader = COA
lib.stdheader{
  10.99 < .10.1
  10.99.fontTag = 
|
}

({register:headerStyle}{register:headerClass}为系统自动生成, 可自定义)

Indentation and Frames 扩展:

TCEFORM.tt_content.section_frame.addItems.99 = register frame
tt_content.stdWrap.innerWrap.cObject{
  99 =< tt_content.stdWrap.innerWrap.cObject.default
  99.15.value = register_now
}

Frontend layout

TCEFORM.pages.layout.altLabels.0 = Default
TCEFORM.pages.layout.altLabels.1 = layout one
TCEFORM.pages.layout.altLabels.2 = layout two
TCEFORM.pages.layout.altLabels.3 = layout three
TCEFORM.pages.layout.addItems.4 = layout new1

TS重写MENU逻辑

1{
	expAll = 1   #sub menu all show
	wrap = 
    |
NO.doNotLinkIt = 1 #NO.stdWrap.htmlSpecialChars = 1 NO.wrapItemAndSub = | NO.allWrap.dataWrap=

TS页面跳转

[usergroup=*]
config >
config.additionalHeaders = Location: http://{$config.domain}
page >
page = PAGE
page.10 = TEXT
page.10.value=No Access!
[global]

v8.7+
config.additionalHeaders.10 {
  header = Location: https://www.example.de/login/
}
https://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Config/Index.html#additionalheaders

typoscript numberFormat

Calls the PHP function number_format
Allows you to format numbers
Note: TYPO3 v4.5 introduces a stdWrap property numberFormat. In order to avoid conflicts, the extension disables its own stdWrap property described below.Converting a number to localized Euro value

(continue reading…)


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