I would recommend adding File Browser (magnify icon).
Any progress on this?
I would love to have full path or CDN as well…
Any progress on this? This will be super…
If I had an option to place a “defer” in the script tag would help me out as well.
If you use the override technique from this article (I know it is long but the technique works):
So, in the Display HTML section in Widget Builder, I have:
And that should add the script to the end of the page, before the body close tag?
edit: Didn’t work :-\
Those macro updates don’t actually go in Widget builder display template. They would go in a .vm file that you would place in rx_resources/vm directory on the server.
Let me know if that makes sense,
Let me know if that makes sense
The usefulness of creating a custom widget just got complicated very quickly, lol.
I don’t know when I can sit down and start this process, but when I do I’ll resurrect this thread again.
The checkbox is a good idea. I hadn’t thought of making the location configurable like that. Was leaning towards shifting everything to the Before Body close by default.
I didn’t mean to over complicate things for you, just letting you know that you have some options, and letting you know how the system works.
The simplest thing you could do for now would be to add the js to the Before Body Close in the Template or Pages that use the custom widget.
The only downside is that the system Resource manager won’t handle the dependency for you automatically.