Use "oid_to_href" HTML renderer to convert internal links
authorThierry Florac <thierry.florac@onf.fr>
Wed, 04 Jul 2018 09:05:03 +0200
changeset 69 724814dd17d1
parent 68 902e9f5dc296
child 70 4f8c98a5f7b9
Use "oid_to_href" HTML renderer to convert internal links
src/pyams_default_theme/component/paragraph/templates/html-default.pt
--- a/src/pyams_default_theme/component/paragraph/templates/html-default.pt	Tue Jul 03 14:34:19 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/html-default.pt	Wed Jul 04 09:05:03 2018 +0200
@@ -1,3 +1,3 @@
 <h3 tal:content="view.title">title</h3>
-<div tal:content="structure view.body">body</div>
+<div tal:content="structure extension:html(view.body, 'oid_to_href')">body</div>
 <tal:var content="structure view.render_illustration()">Illustration</tal:var>