来源于:http://trac.seagullproject.org/wiki/Modules/Export

Export Module(输出模块)

该模块将content/data转化成各种格式,xml, PDF, RSS等

Export2Mgr

概述

  • 导出任何CMS或数据存取对象为有效的RSS2 feed.
  • 易于配置

最小需求

  • Seagull 0.6.2
  • CMS 1.1
  • PHP5

导出CMS内容

  • 获取FOO类型(类型ID为5)的最新内容,在modules/export/conf.ini中添加下列几行:
[/datasrc/cms/contenttype/5]
title = name
description = text
  • 调用URL

http://localhost/seagull/www/index.php/export/rss2/datasrc/cms/contenttype/5

导出 DAO内容 实例1

  • 获取系统中所有用户的RSS feed, 添加下列巑到 modules/user/conf.ini 文件中
[/datasrc/dao/module/user/method/getUsers] ; you must create this method
title = first_name
description = usr_id, telephone, address_1, address_2
  • 调用URL

http://localhost/seagull/www/index.php/export/rss2/datasrc/dao/module/user/method/getUsers

导出 DAO内容 实例2

  • 获取系统中所有最新图片的RSS feed, 添加下列巑到 modulesmedia/conf.ini 文件中 [/datasrc/dao/module/media/method/getMediaByFileType/5] ; 5 is the image type title = name description = mime_type createdBy = media_added_by * 调用URL http://localhost/seagull/www/index.php/export/rss2/datasrc/dao/module/media/method/getMediaByFileType/filetype/5 ===== 限制 ===== * 动态方法可以有任意个参数,或者一个也没有 * 参数必须是子类型 * 在URL中的参数使用约定是 key1/value1/key2/value2 * 配置文件中的模式只需要输入值,如, value1/value2 ===== 即将推出 ===== * 可以在配置文件中为'description'指定多个本栏位,并将集成到RSS输出
 
modules/export.txt · 最后更改: 2010/05/30 00:21 (外部编辑)
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2