编辑“Gallery:整合的相关帮助指导”
该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第229行: | 第229行: | ||
==== 移除embedPath并将其并入embedUri ==== | ==== 移除embedPath并将其并入embedUri ==== | ||
取代embedUri和embedPath,并合并为一个参量,名为'''embedUri''' | 取代embedUri和embedPath,并合并为一个参量,名为'''embedUri''' | ||
* | * 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 | ||
* | * 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 | ||
** | ** Example: embedUri = '/portal/index.php?module=gallery2' then we would parse for the last '/' and find '/portal/' | ||
* | * 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. | ||
* | * 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]] |