Use "resource_path" TALES extension to get resource URL
authorThierry Florac <thierry.florac@onf.fr>
Tue, 16 May 2017 11:22:11 +0200
changeset 26 f8e004744ae9
parent 25 afebe353cfa0
child 27 ad5f7192d437
Use "resource_path" TALES extension to get resource URL
src/pyams_thesaurus/zmi/templates/terms-tree.pt
--- a/src/pyams_thesaurus/zmi/templates/terms-tree.pt	Tue May 16 11:21:50 2017 +0200
+++ b/src/pyams_thesaurus/zmi/templates/terms-tree.pt	Tue May 16 11:22:11 2017 +0200
@@ -3,8 +3,8 @@
 </div>
 <div class="ams-widget" i18n:domain="pyams_thesaurus"
 	 data-ams-plugins="pyams_thesaurus"
-	 data-ams-plugin-pyams_thesaurus-src="/--static--/pyams_thesaurus/js/pyams_thesaurus.js"
-	 data-ams-plugin-pyams_thesaurus-css="/--static--/pyams_thesaurus/css/pyams_thesaurus.css">
+	 tal:attributes="data-ams-plugin-pyams_thesaurus-src extension:resource_path('pyams_thesaurus.zmi:pyams_thesaurus');
+					 data-ams-plugin-pyams_thesaurus-css extension:resource_path('pyams_thesaurus.zmi:pyams_thesaurus_css');">
 	<header>
 		<span class="widget-icon"><i class="fa fa-fw fa-tags"></i></span>
 		<h2>