编辑“Gallery:整合的相关帮助指导

跳转至: 导航、​ 搜索
警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第229行: 第229行:
==== 移除embedPath并将其并入embedUri ====
==== 移除embedPath并将其并入embedUri ====
取代embedUri和embedPath,并合并为一个参量,名为'''embedUri'''
取代embedUri和embedPath,并合并为一个参量,名为'''embedUri'''
* 在G2中,我们需要设法找到embedPath。它可以作为一个参量,或自当前REQUEST_URI中解析出来
* In G2, we somehow need to find the embedPath. It could either be given as a parameter or we can parse it from the current REQUEST_URI
* 旧式embedUri也包括有embedPath,我们可以解析最后一条斜线以找到embedPath
* If we had old-style (winter 2004/05) embedUri which includes also the embedPath, we could parse for the last slash to find the embedPath
** 举例:embedUri = '/portal/index.php?module=gallery2',那么我们就会解析最后的一条'/'并找到'/portal/'
** Example: embedUri = '/portal/index.php?module=gallery2' then we would parse for the last '/' and find '/portal/'
* 这回比分别询问embedUri和embedPath要更令人困扰吗?尤其是目前我们有了g2Path,它具有与当前embedPath相同的样式。
* But would that be more confusing than asking for embedUri and embedPath separately? Especially since we have at this point g2Path which has the same pattern as the current embedPath.
* 短URL又如何?短URL仍只进行一次配置,而且不需要任何其他的输入。但我们还引入了一个特点,就是当前的embedPath可以覆盖经存储的embeddedLocation(在重写模块配置时存储的embedPath)。我们引入它就是为了允许从多个vHost访问启用重写的嵌入G2。如给定了embedUri是否还能够实现?我们仍会解析embedUri中的最后一个'/'来获取embedPath。但embedUri很可能是短URL的格式,如embedUri = '/portal/gallery2/'。那么在此特例中的embedPath = embedUri,baseFile会是''。无法想出会出现问题的情况。
* What about short URLs? Short URLs are still configured once and don't need any other input. But we introduced a feature a while back, that the current embedPath can override the stored embeddedLocation (the embedPath that was stored at rewrite module configuration time). We introduced this to allow accessing rewrite enabled embedded G2 from multiple vHosts. Would that still be possible if just embedUri was given? We could still parse for the last '/' in embedUri to get embedPath. But embedUri is likely to be in short URL format too, e.g. embedUri = '/portal/gallery2/'. Thus embedPath = embedUri in this special case (example), baseFile would be '' and it should be fine. Can't think of a case where we'd have problems.


[[Category:Gallery 2:Development|Integration Howto]]
[[Category:Gallery 2:Development|Integration Howto]]
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅Wordpress-mediawiki:版权的细节)。 未经许可,请勿提交受版权保护的作品!
取消 编辑帮助(在新窗口中打开)