[dev] [patch] Relative paths in Xinha

Roel Gloudemans roel at gloudemans.info
Sun Jan 22 09:13:05 PST 2006


If you insert a link/image/etc in Xinha, you'll always get the  
absolute path (including server; even if you modify the path to be  
relative, on save it is extended to an absolute path). For some  
purposes (e.g. mail) this is what you want.

For other purposes it is not. E.g. when using Giapeto, it means that  
all images and links always refer to the full URL, which is often  
https and not the http most people are using to view you site.

On top of that, if you have multiple domains for the same giapeto  
tree, or make a switch in domain names, all links and images will be  
invalidated. So, for Giapeto you'd probably want relative links to you  
own site.

This patch allows for that. When creating the form, you can give a  
helper parameters which tells Xinha to use relative paths (built in  
Xinha functionality).
On top of that; it patches Giapeto to use relative paths.

This patch should be applied on top of the Xinha patch I submitted a  
week ago (which contains new Xinha plugins and modifies the framework  
xinha script)

Cheers,
Roel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xinha_relative.patch
Type: text/x-patch
Size: 2638 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20060122/17ce399e/xinha_relative.bin


More information about the dev mailing list