Merge pull request #3 from plone/fix_display_url

Fix url in display templates, so that it uses absolute urls.
This fixes display URLs in scenarios with virtual hosting.
This commit is contained in:
Lukas Graf 2012-08-07 04:57:56 -07:00
commit 8e1ef3231b
3 changed files with 14 additions and 3 deletions

View File

@ -4,10 +4,13 @@ Changelog
1.0.6 (unreleased)
------------------
* Fix url in display templates, so that it uses absolute urls.
[phgross]
* pep8
[joka]
* Fix term title genration to use the brain id if there is not brain title
* Fix term title genration to use the brain id if there is not brain title
[joka]
* Added Italian translation.

View File

@ -1,4 +1,8 @@
<span id="" class=""
tal:define="url_tool context/@@plone_tools/url;
portal_url url_tool/portal_url;
portal_path url_tool/getPortalPath"
tal:attributes="id view/id;
class view/klass;
style view/style;
@ -17,7 +21,7 @@
>
<div tal:repeat="term view/terms">
<a tal:content="term/title"
tal:attributes="href term/token"
tal:attributes="href python: term.token.replace(portal_path, portal_url, 1)"
tal:condition="python:not(term.token.startswith('#error-'))"
/>
</div>

View File

@ -1,4 +1,8 @@
<span id="" class=""
tal:define="url_tool context/@@plone_tools/url;
portal_url url_tool/portal_url;
portal_path url_tool/getPortalPath"
tal:attributes="id view/id;
class view/klass;
style view/style;
@ -17,7 +21,7 @@
>
<div tal:repeat="term view/terms">
<a tal:content="term/title"
tal:attributes="href term/token"
tal:attributes="href python: term.token.replace(portal_path, portal_url, 1)"
tal:condition="python:not(term.token.startswith('#error-'))"
/>
</div>