8

I want to update from TYPO3 4.7.5 to TYPO3 4.7.10. Now I'm in the Upgrade Wizard and it says:

Deprecated RTE properties in Page TSconfig

The following Page TSconfig RTE properties are deprecated since TYPO3 4.6 and will be removed in TYPO3 6.0.

Deprecated property Use instead
disableRightClick contextMenu.disable
disableContextMenu contextMenu.disable
hidePStyleItems buttons.formatblock.removeItems
hideFontFaces buttons.fontstyle.removeItems
fontFace buttons.fontstyle.addItems
hideFontSizes buttons.fontsize.removeItems
classesCharacter buttons.textstyle.tags.span.allowedClasses
classesParagraph buttons.blockstyle.tags.div.allowedClasses
classesTable buttons.blockstyle.tags.table.allowedClasses
classesTD buttons.blockstyle.tags.td.allowedClasses
classesImage buttons.image.properties.class.allowedClasses
classesLinks buttons.link.properties.class.allowedClasses
blindImageOptions buttons.image.options.removeItems
blindLinkOptions buttons.link.options.removeItems
defaultLinkTarget buttons.link.properties.target.default
fontSize buttons.fontsize.addItems
RTE.default.classesAnchor RTE.default.buttons.link.properties.class.allowedClasses RTE.default.classesAnchor.default.[link-type] RTE.default.buttons.link.[link-type].properties.class.default mainStyleOverride contentCSS mainStyleOverride_add.[key] contentCSS mainStyle_font contentCSS mainStyle_size contentCSS
mainStyle_color contentCSS mainStyle_bgcolor contentCSS
inlineStyle.[any-keystring] contentCSS ignoreMainStyleOverride n.a. disableTYPO3Browsers buttons.image.TYPO3Browser.disabled and buttons.link.TYPO3Browser.disabled
showTagFreeClasses buttons.blockstyle.showTagFreeClasses and buttons.textstyle.showTagFreeClasses
disablePCexamples buttons.blockstyle.disableStyleOnOptionLabel and buttons.textstyle.disableStyleOnOptionLabel You are currently using some of these properties on 1 pages (including deleted and hidden pages).

Pages id's: 2

This wizard cannot update the following properties, some of which are present on those pages:

Deprecated property fontSize RTE.default.classesAnchor
RTE.default.classesAnchor.default.[link-type] mainStyleOverride
mainStyleOverride_add.[key] mainStyle_font mainStyle_size
mainStyle_color mainStyle_bgcolor inlineStyle.[any-keystring]
ignoreMainStyleOverride disableTYPO3Browsers showTagFreeClasses
disablePCexamples

Therefore, the Page TSconfig column of those pages will need to be updated manually.

Only page records were searched for deprecated properties. However, such properties can also be used in BE group and BE user records (prepended with page.). These are not searched nor updated by this wizard.

Page TSconfig may also be included from external files. These are not updated by this wizard. If required, the update will need to be done manually.

Note also that deprecated properties have been replaced in default configurations provided by htmlArea RTE

I found a page TS config:

RTE.classes{
  highlight{
      name = newStyle
      value = color:#636466; font-size:15px;
  } 
  brown{
      name = braun
      value = color:#9A3811;
  }
}

RTE.default{
  ignoreMainStyleOverride = 1 
  useCSS = 1
  showTagFreeClasses = 1
  contentCSS = fileadmin/templates/css/rte.css
  buttons {
    blockstyle.tags.div.allowedClasses := addToList(highlight, brown)
    blockstyle.tags.p.allowedClasses := addToList(highlight, brown)
    textstyle.tags.span.allowedClasses := addToList(highlight, brown)
  }
  proc.allowedClasses := addToList(highlight, brown)
}

I changed it to

RTE.classes{
  highlight{
      name = newStyle
      value = color:#636466; font-size:15px;
  } 
  brown{
      name = braun
      value = color:#9A3811;
  }
}

RTE.default{
  useCSS = 1
  contentCSS = fileadmin/templates/css/rte.css
  buttons {
    blockstyle.showTagFreeClasses = 1
    blockstyle.tags.div.allowedClasses := addToList(highlight, brown)
    blockstyle.tags.p.allowedClasses := addToList(highlight, brown)
    textstyle.showTagFreeClasses = 1
    textstyle.tags.span.allowedClasses := addToList(highlight, brown)
  }
  proc.allowedClasses := addToList(highlight, brown)
}

but the Upgrade Wizard still complains. I looked in the main TS, user TS, user group TS, export of the database but there is none of the mentioned properties used. My added style also doesn't work anymore ...

Where are the deprecated properties? How can I find that out?

4

2 回答 2

1

我建议在数据库页面表中进行手动搜索以查找具有 TSconfig 的页面:

SELECT uid, TSconfig FROM pages WHERE TSconfig!='';

如果这不会给你想要的结果,那么 grep 在你的扩展中设置:

find typo3conf/ext/ -type f -name ext_*\.php -exec egrep -H -n '(addPageTSConfig|addUserTSConfig)' {} \;

RTE 的 TSconfig 弃用处理在以下位置完成: tx_rtehtmlarea_deprecatedRteProperties::getPagesWithDeprecatedRteProperties()

这个类可以在typo3/sysext/rtehtmlarea/hooks/install/class.tx_rtehtmlarea_deprecatedrteproperties.php

于 2013-05-12T15:16:22.070 回答
0

升级向导正在使用 SQL 语句

SELECT uid, TSconfig FROM pages WHERE (TSConfig LIKE BINARY "%RTE.%showTagFreeClasses%" AND TSConfig NOT LIKE BINARY "%RTE.%showTagFreeClassess%")

所以即使将 showTagFreeClasses 更改为 buttons.blockstyle.showTagFreeClasses 也无济于事。只需从 RTE 配置中删除,一切都很好。

于 2014-07-11T07:16:56.193 回答