Mercurial > hg > MPIWGWeb
changeset 277:d8a4ae8db589
make image src url relative.
author | casties |
---|---|
date | Thu, 05 Mar 2015 17:05:14 +0100 |
parents | c886c0cb3455 |
children | 51c43df418fc |
files | zpt/project/project_index_xml.zpt |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/zpt/project/project_index_xml.zpt Mon Feb 23 22:47:36 2015 +0100 +++ b/zpt/project/project_index_xml.zpt Thu Mar 05 17:05:14 2015 +0100 @@ -1,6 +1,7 @@ <?xml version="1.0"?> <project xmlns:tal="http://xml.zope.org/namespaces/tal" - xmlns:metal="http://xml.zope.org/namespaces/metal"> + xmlns:metal="http://xml.zope.org/namespaces/metal" + tal:define="rootUrl here/en/MPIWGrootURL;"> <id tal:content="here/getId"/> <title tal:content="here/getProjectTitle">History of Scientific Objectivity, 18th-19th Cs</title> <label tal:content="here/getLabel"/> @@ -17,7 +18,7 @@ <cooperationpartners tal:content="here/getCooperationPartners"/> <images> <image tal:repeat="image here/getImageList"> - <src tal:content="image/getUrl"/> + <src tal:content="python:image.getUrl(baseUrl=here.getId())"/> <link tal:content="image/getLink"/> <caption tal:content="image/caption"/> </image>