Convert oid:// URLs to href in HTML portlet
authorThierry Florac <thierry.florac@onf.fr>
Tue, 27 Nov 2018 13:37:03 +0100
changeset 220 b2858d5e3449
parent 219 dd049d6d0503
child 221 dadc318d0871
Convert oid:// URLs to href in HTML portlet
src/pyams_portal/portlets/html/skin/html.pt
--- a/src/pyams_portal/portlets/html/skin/html.pt	Tue Nov 27 13:36:16 2018 +0100
+++ b/src/pyams_portal/portlets/html/skin/html.pt	Tue Nov 27 13:37:03 2018 +0100
@@ -1,1 +1,3 @@
-<tal:var replace="structure i18n:view.settings.body">HTML code</tal:var>
\ No newline at end of file
+<tal:var define="body i18n:view.settings.body">
+	${structure:tales:html(body, 'oid_to_href')}
+</tal:var>
\ No newline at end of file