ourac 发表于 2006-10-10 12:00:23

关于tt_news的分类(category)重要说明..应该有用的

我在安装tt_news的时候,就是一步步的按照默认的安装..安装完成后就新建分类...

但是新建分类后却在Parent category里看不到我之前建的分类.

我看了一下loacalconf.php的代码.如下所示

$TYPO3_CONF_VARS['EXT']['extConf']['tt_news'] = 'a:14:{s:13:"useStoragePid";s:1:"1";s:13:"noTabDividers";s:1:"0";s:25:"l10n_mode_prefixLangTitle";s:1:"1";s:22:"l10n_mode_imageExclude";s:1:"1";s:20:"hideNewLocalizations";s:1:"0";s:13:"prependAtCopy";s:1:"1";s:5:"label";s:5:"title";s:9:"label_alt";s:0:"";s:10:"label_alt2";s:0:"";s:15:"label_alt_force";s:1:"0";s:11:"treeOrderBy";s:3:"uid";s:21:"categorySelectedWidth";s:1:"0";s:17:"categoryTreeWidth";s:1:"0";s:18:"categoryTreeHeigth";s:1:"5";}'; //  Modified or inserted by TYPO3 Extension Manager.




然后我就用下面的代码代替

$TYPO3_CONF_VARS['EXT']['extConf']['tt_news'] = 'a:14:{s:13:"useStoragePid";s:1:"0";s:13:"noTabDividers";s:1:"0";s:25:"l10n_mode_prefixLangTitle";s:1:"1";s:22:"l10n_mode_imageExclude";s:1:"1";s:20:"hideNewLocalizations";s:1:"0";s:13:"prependAtCopy";s:1:"1";s:5:"label";s:5:"title";s:9:"label_alt";s:5:"title";s:10:"label_alt2";s:5:"title";s:15:"label_alt_force";s:1:"1";s:11:"treeOrderBy";s:5:"title";s:21:"categorySelectedWidth";s:1:"0";s:17:"categoryTreeWidth";s:1:"0";s:18:"categoryTreeHeigth";s:1:"5";}';       // Modified or inserted by TYPO3 Extension Manager.

结果就好了....可以正常显示已经建好的分类..后面的代码是一个朋友提供的..不知道是为什么??是不是在安装的时候设置的 问题.....

ourac 发表于 2006-10-10 12:09:50

其实这是个很小的错误.因为没有好好看说明....

Use "General record storage page"

This option configures the handling of news categories in BackEnd forms and on the website (FrontEnd). By default categories will be displayed only if they are found in the "General record storage page" (AKA "GRSP" or "storagePid"). If you set "useStoragePid" to "0", all categories from the pagetree will be displayed (that was the default behaviour for tt_news versions < 1.3.0). If you're updating an older tt_news version or if you need the "GRSP" for other records (e.g. fe_users) you should set this value to "0". If "useStoragePid" is set to "1" and the tt_news categories are not located in the "GRSP" you won't see any categories in BackEnd forms or on the website. See tt_news manual for more information.

hahahaha78 发表于 2006-10-10 17:02:36

只要在EM中设置一下

见图,不用更改代码

typo3 发表于 2006-10-10 17:33:32

很好的知识经验~!

ourac 发表于 2006-11-28 10:33:31

谢谢三楼的
我已经在二楼发了说明了...

说明已经说了很清楚了.我只是没有好好看..

应该把这个值修改的

ourac 发表于 2006-11-28 10:36:03

If you set "useStoragePid" to "0", all categories from the pagetree will be displayed
页: [1]
查看完整版本: 关于tt_news的分类(category)重要说明..应该有用的