typoscript

Allow embed (Youtube) HTML tags in the RTE

Options:
RTE.default.proc {
allowTagsOutside = img, table, br, span, hr, h1, h2, h3, h4,h5,h6,embed,object,param
# Allow embed (Youtube) HTML tags in the RTE
allowTags := addToList(object,param,embed)
allowTagsOutside := addToList(object,embed)
}
Page:
# Allow embed (Youtube) HTML tags in the RTE
lib.parseFunc_RTE.allowTags := addToList(object,param,embed)


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

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文件相对路径转绝对路径

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...

Typoscript: wrap only if content is not empty

Often i run into this problem in TYPO3 : i have to wrap a content element with Typoscript but ONLY if there is content. This has an easy solution but all too often i forget it and have to search it up again. So this time i post it here and maybe it helps others too. (continue reading…)


How to allow embedding of Flash (YouTube videos for example) in the TYPO3 RTE

How to allow embedding of Flash (YouTube videos for example) in the TYPO3 RTE

1 RTE.default.proc {
2 allowTags := addToList(object,param,embed)
3 allowTagsOutside := addToList(object,embed)
4 entryHTMLparser_db.allowTags < RTE.default.proc.allowTags
5 }

How to get rid of those annoying images inserted before links (continue reading…)


TS判断系统与浏览器

General notes:

Values are normally trimmed for whitespaces before comparison.

You may combine several conditions with two operators: && (and), || (or)

Alternatively you may use “AND” and “OR” instead of “&&” and “||”. The AND operator has always higher precedence over OR. If no operator has been specified, it will default to OR. (continue reading…)


How to remove typo3 temp js and css

config.removeDefaultJS = 1

plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE >
plugin.tt_news._CSS_DEFAULT_STYLE >
plugin.tx_indexedsearch._CSS_DEFAULT_STYLE >
# usw, usw, ...

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