rskuipers / typecms
此软件包已被 放弃 且不再维护。未建议替代软件包。
此软件包最新版本(3.1.0)没有可用的许可证信息。
3.1.0
2016-03-29 09:30 UTC
Requires
This package is auto-updated.
Last update: 2023-07-14 20:45:02 UTC
README
Magento模块,为CMS添加页面类型。
上述功能完全通过XML实现。
功能
TypeCMS的开发旨在提高Magento CMS的灵活性。TypeCMS引入了页面类型,它们具有自己的自定义后端字段和前端模板。通过XML定义自定义页面类型 通过XML定义页面类型的自定义后端字段 通过XML定义页面类型的自定义模板 可选地添加您自己的后端模型来处理您的字段。
用法
创建页面类型的推荐方法是创建一个单独的自定义模块,并在其config.xml中定义页面类型。可选地,您可以将页面类型直接放在app/etc/modules/RK_TypeCMS.xml文件中。定义页面类型
<global> <page> <types> <test> <!-- This is the code of your page type (required) --> <label>Test</label> <!-- The page type's label (required) --> <model>typecms/page_type_default</model> <!-- Render the backend fields yourself (optional) --> <block>typecms/page_type_default</block> <!-- Define the block used to display the page --> <template>typecms/default.phtml</template> <!-- Use this template to render the page (optional) --> <handle>typecms_default</handle> <!-- Add a layout handle to the page (optional) --> <attributes> <!-- A list of all the attributes for the page type (optional) --> <name> <!-- Code of the attribute (required) --> <label>Name</label> <!-- Label of the attribute (required) --> <type>text</type> <!-- The type of data, this also determines the field to be rendered. (required) --> <!-- Options: text, editor, int, select, yesno, file, image. --> </name> <age> <label>Age</label> <type>int</type> </age> <gender> <label>Gender</label> <type>select</type> <options> <!-- Options of the select --> <male>Male</male> <!-- "Male" is the option label, "male" is the option value. --> <female>Female</female> </options> </gender> <married> <label>Married</label> <type>yesno</type> </married> <picture> <label>Picture</label> <type>image</type> </picture> <cv> <label>CV</label> <type>file</type> </cv> <introduction> <label>Introduction</label> <type>editor</type> </introduction> <signature> <label>Signature</label> <type>textarea</type> </signature> </attributes> </test> </types> </page> </global>
上述定义了一个名为Default的页面类型(在这种情况下是默认页面类型),具有自己的模板和属性。
变更日志
版本 3.1.0 (29-03-2016)
版本 3.0.0 (12-08-2015)
- [BC break] 引入对Bubble CMS(以前称为Clever CMS)的支持(感谢 @adamj88)
版本 2.1.0 (17-01-2014)
- 添加集合页面类型,允许您轻松读取页面子项并显示它们的信息(目前仅为CleverCMS支持)
- 为所有内容添加docblocks
- 添加块类型,并可选择为页面类型定义块类型
- 添加modman支持
- 修复在setupAttributes()期间重新安装属性的问题
- 修复使用数据库前缀时的问题
- 小的错误修复
版本 2.0.4 (03-01-2014)
- 修复模板不显示的问题
版本 2.0.3 (05-12-2013)
- 修复与Clever CMS的兼容性问题
版本 2.0.2 (28-11-2013)
- 将模板处理器添加到默认模板(以解析小部件等)
版本 2.0.1 (12-11-2013)
- 修复插入时删除属性的错误
- 修复与Clever CMS的兼容性问题
版本 2.0.0 (29-09-2013)
- 添加文件字段
- 添加图片字段
- 添加是/否字段
- 添加选择字段
版本 1.0.2 (15-09-2013)
- 修复整数和varchar表的价值列类型。
版本 1.0.1 (15-09-2013)
- 修复不正确的目录结构
版本 1.0.0 (01-09-2013)
- 首次发布