Use "resource_path" TALES extension to get resource URL
authorThierry Florac <thierry.florac@onf.fr>
Tue, 16 May 2017 10:58:42 +0200
changeset 73 22bd0cc53c47
parent 72 3d0cfef1753e
child 74 57f97b550c57
Use "resource_path" TALES extension to get resource URL
src/pyams_content/component/extfile/zmi/templates/widget-input.pt
--- a/src/pyams_content/component/extfile/zmi/templates/widget-input.pt	Tue Apr 18 15:59:22 2017 +0200
+++ b/src/pyams_content/component/extfile/zmi/templates/widget-input.pt	Tue May 16 10:58:42 2017 +0200
@@ -1,6 +1,6 @@
 <label class="input bordered with-icon" i18n:domain="pyams_content"
 	   data-ams-plugins="pyams_content"
-	   data-ams-plugin-pyams_content-src="/--static--/pyams_content/js/pyams_content{MyAMS.devext}.js">
+	   tal:attributes="data-ams-plugin-pyams_content-src extension:resource_path('pyams_content.skin:pyams_content')">
 	<i class="icon-append fa fa-plus-square txt-color-green hint opaque"
 		title="Add external file" i18n:attributes="title"
 		data-ams-url="add-extfile.html?origin=link" data-toggle="modal"