typo3

typo3取子页面

$this->pageList += $GLOBALS['TSFE']->sys_page->getMenu($pageInfo['uid'],
                    'uid,doktype,no_search,SYS_LASTCHANGED,tx_ddgooglesitemap_lastmod',
                    '', 'and nav_hide=0', false);

RTE Block/Text Style

RTE {
 default {
 contentCSS = global.css
 #ignoreMainStyleOverride = 1
 buttons.blockstyle.tags.div.allowedClasses = black_text,small_h1,black_bold_link
 buttons.textstyle.tags.span.allowedClasses = black_text,small_h1,black_bold_link
 proc.allowedClasses := addToList(black_text,small_h1,black_bold_link)
 showButtons = textstylelabel,textstyle, bold, italic, orderedlist, unorderedlist, insertcharacter, link, image, removeformat, copy, cut, paste, undo, redo, subscript, superscript, findreplace, chMode, formatblock
  #hideButtons = left, center, right, justifyfull, textindicator,user,blockstyle, blockstylelabel,
 }
 classes {
  small_h1{
     name = small_h1
     #value = color:#800080; font-size:11px;
  }
  black_text{
    name = black_text
    #value = color:#800080; font-size:11px;
  }
  black_bold_link{
      name = black_bold_link
      #value = color:#800080; font-size:11px;
  }
 }
}

Image Link in FCE

ich habe ein fce (box) habe dort ein bild gemappt und einen link um das bild gemappt. funktioniert auch so weit

jetzt möcht eich aber wenn kein link ausgewählt ist das kein link gewrappt wird.
Habe schon viel gesucht aber verstehe es nicht. (continue reading…)


templavoila wizards tab

page ts: templavoila.wizards.newContentElement.renderMode = tabs


Adding canonical tags

temp.canonical = COA
temp.canonical.10 = TEXT
temp.canonical.10 {
  typolink {
    parameter.data = TSFE:id
    addQueryString = 1
    addQueryString {
      method = GET
      // vermeide doppelte id:
      exclude = id
    }
    returnLast = url
  }
  wrap =

}

BEUSER清除指定page缓存

You can enable “flash icon” clear cache command for common BEuser, just add this code to user’s and/or user’s group TSconfig

options.clearCache.pages = 1
options.clearCache.all = 1

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


typo3 gzip

### Begin: Compression via TYPO3 ###

# Compressing resource files will save bandwidth and so improve loading speed especially for users
# with slower internet connections. TYPO3 can compress the .js and .css files for you.
# *) Uncomment the following lines and
# *) Set $TYPO3_CONF_VARS['BE']['compressionLevel'] = '9' for the Backend
# *) Set $TYPO3_CONF_VARS['FE']['compressionLevel'] = '9' together with the TypoScript properties
#    config.compressJs=1 and config.compressCss=1 in typoscript for GZIP compression of Frontend JS and CSS files.


	AddType "text/javascript" .gzip


	AddType "text/css" .gzip

AddEncoding gzip .gzip

### End: Compression via TYPO3 ###
1 Comment more...

TYPO3 – Sorry, you didn’t have proper permissions to perform this change

Wer evtl. selber beim arbeiten mit Typo3 auf diese Fehlermeldung stößt und evtl. nach einem Aufschluss sucht und bis jetztnoch keine Gefunden hat, dem hoffe ich mit diesem kleinen Hinweis auf dem Typo3-BugTracker zu helfen.
Quelle Typo3 BugTracker: 0018583: Changing or adding new elements in the backend is not possible anymore

Um dieses Problem zu umgehen könnt ihr entweder in die Listen-Ansicht wechseln, oder aber ihr fügt folgenden Code in der PhpMyAdmin Oberfläche aus. Und Arbeitet wirklich normal weiter.

ALTER TABLE pages ADD t3ver_swapmode tinyint(4) NOT NULL default ’0′

Dieser Code-Schnippsel erzeugt in der Tabelle eurer Typo3 Datenbank eine Spalte “pages”. Grund und Ursache des Problems Scheint das beliebte TemplaVoilá zu sein. Bei einer reinen Typoscript Programmierung hab eich das Poblem noch nicht gehabt! Aber das ganze ist ja schnell behoben.


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