手册:$wgContentHandlerUseDB
Appearance
内容模型及处理器 |
---|
MediaWiki允许维基文本之外的页面内容类型。 提供对JavaScript、CSS、JSON和纯文本的内置支持。 扩展程序可以使用MediaWiki的内容处理器(ContentHandler)机制来添加新的内容模型,以便接受不同格式的文本,并控制这些页面如何渲染、存储和编辑。 |
关于 |
用法 |
配置设置 |
支持和发展
|
此功能已在版本1.35.0中完全移除。 |
杂项设置: $wgContentHandlerUseDB | |
---|---|
Whether to use the database fields introduced by the ContentHandler facility |
|
引进版本: | 1.21.0 |
弃用版本: | 1.34.0 (Gerrit change 535666; git #165d3cc5) |
移除版本: | 1.35.0 (Gerrit change 589018; git #385ab887) |
允许的值: | (布尔值) |
默认值: | true |
其他设置: 按首字母排序 | 按功能排序 |
详情
Set to false to disable use of the database fields introduced by the ContentHandler facility.
This way, the ContentHandler facility can be used without any additional information in the database.
A page's content model is then derived solely from the page's title.
This however means that changing a page's default model (e.g. using $wgNamespaceContentModels
) will break the page and/or make the content inaccessible.
This also means that pages can not be moved to a title that would default to a different content model.
Overall, set to false
, no database updates are needed, but content handling is less robust and less flexible.
Categories:
- MediaWiki configuration settings/zh
- MediaWiki configuration settings introduced in version 1.21.0/zh
- MediaWiki configuration settings deprecated in version 1.34.0/zh
- MediaWiki configuration settings removed in version 1.35.0/zh
- MediaWiki deprecated or obsolete features/zh
- Miscellaneous settings variables/zh