Hi folks!

I've added a new variable name [route] for use in widgets. If you have a
multi-language site you must use this variables instead [root].

[root]
Contain the url of site, without language or site prefix (example:
www.openclipart.org).
Use it for reference to existing files (css, js, gif). Example:
<script src="[root]/assest/foo.js></script>
<link rel='stylesheet'  href='[root]/images/style.css'>

[route](1)
Contain the url of site,plus language (if needed) and in future with more
information (example: www.openclipart.org/es)
Use it in links to aiki routes:
<a href="[route]/news">News</a>
<a href="[route]/artist/foo">foo</a>
In site with only one language [route] is equal to [root], but when you add
a new language, if you have used [route] you don't need change widgets.
If you want adapt you site to multilanguage use [route] instead
[root-langauge]..with the same work you will be ready for multisite.


roger.

PD:
todo : doc...

(1) do somebody have a clear name?
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to