站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
Gallery:嵌入
”
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
Firebrance
(
讨论
|
贡献
)
2008年7月17日 (四) 15:54的版本
(
差异
)
←上一版本
|
最后版本
(
差异
) |
下一版本→
(
差异
)
跳转至:
导航
、
搜索
警告:您正在编辑的是本页面的旧版本。
如果您发布该更改,该版本后的所有更改都会丢失。
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
= 嵌入Gallery2 = Gallery2可以完美地嵌入到你的网站中。你可以自定义一个已有的外观主题从而使得G2符合网站的外观风格。你还可以在功能上将G2整合到网站中。G2可以很轻易地被嵌入到其他的应用程序中。并且它还提供一个界面用来与网站/PHP运作的应用程序进行对话 == 可视化整合vs.功能性整合 == 如果你所需要的只是在网站中'''可视化地嵌入'''G2,比如在网站次级页面的顶部/左边/右边或中间添加菜单。那么你就只能在themes/matrix/templates/中编辑主要的主题模板,并通过调整CSS样式来确保字体大小和颜色的符合。 参见:'''[[Gallery:Themes|外观主题向导]]''' | '''[[Gallery:Tpl_Reference|模板相关参考]]''' | '''[[Gallery:How_Tos#Website_Integration|指导 - 可视化整合]]''' If you also want to place some random images of G2 on other pages of your website, you can use the external imageblock from the [[Gallery:Modules:imageblock|imageblock module]]. If visual embedding is not enough and you need to '''integrate G2's user management and authentication system''' and other parts with another PHP application, you can do that by using G2's GalleryEmbed class which is an interface between G2 and the application in which G2 should be embedded in. Another option for PHPNuke users is to use [http://www.htd.net/modules.php?name=Downloads&d_op=getit&lid=5 IFRAME v1.0] which requires very little editing and you can place your entire Gallery2 inside of an (IFRAME) for display on your main site without having to match CSS or any other site specific information. Just follow the readme file included in the package. == Existing Integrations == Thanks to dedicated integration developers there are some more or less complete integrations available. For most of these you need to separately install Gallery 2 and the other application (CMS, portal, forum, wiki, ...) and then connect the two by using the integration for that application. For most applications you can use a module/extension/plugin, some less elaborate applications are not that modular and require that you edit some files. But you should never have to edit G2 files. See: '''[[Integration|List of Available Integrations]]''' == Embedding Gallery in Other Applications == Gallery is designed specifically to manage your multimedia online. Gallery is not a content management system or a blog or a website editor. However, there's no reason why Gallery can't be the multimedia management portion of a much larger system which does much more context content management or blogging, etc. Many such systems focus on their core competency and provide a very weak multimedia management system. Gallery is designed to work within those larger systems and provide the functionality that they lack. How we actually go about embedding Gallery into another program depends heavily on which program we are going to work with. More and more PHP based applications are modular and for these you can integrate G2 just by installing G2, the other application and additionally a module in that other application that integrates / wraps G2 into that application. One of the most important goals when writing a (G2) integration should always be to make sure that no files have to be edited / replaced by the user. Only a very modular approach ensures that the user can maintain both applications independentely and upgrade quickly when a new (security) release is available for any of the 3 components (G2, emApp, and the integration). See: * '''[[Gallery:Embedding:Integration|Integration Development Documentation]]''' for instructions about writing a new integration * '''[[Gallery:Embedding:Event-Based_Loose-Coupled_Integration|Event-Based Loose-Coupled Integration]]''' for the principle behind G2's approach to embedding * '''[[Gallery:Embedding:Integration_Aspects|Integration Aspects]]''' for an overview of all aspects involved when integration web applications Also see: [[Gallery:Embedding:Development Roadmap|Embedding Development Roadmap]] == Short URLs in Embedded G2 == Enabling short URLs (rewrite module) in embedded G2 is often not that easy. Therefore we have documented the necessary steps. See: '''[[Gallery:Modules:rewrite#URL_Rewrite_Embedded|Configuring URL Rewrite for Embedded G2]]''' == Code Snippets == See: '''[[Gallery:Embedding:Code_Snippets|GalleryEmbed related Code Snippets]]''' [[Category:Gallery 2:Installation|Embedding]] [[Category:Gallery 2:Configuration|Embedding]] [[Category:Gallery 2:Development|Embedding]]
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)