TACTIC Open Source
How to Embed Fancybox 3 to TACTIC 4.5? - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: How to Embed Fancybox 3 to TACTIC 4.5? (/showthread.php?tid=79)



How to Embed Fancybox 3 to TACTIC 4.5? - listy - 02-27-2020

Hi all!

There is two reasons to use custom gallery view:
Performance
Mobility

I think fancybox 3 is really good choice. One question, is it possible to make tactic work with it?

https://fancyapps.com/fancybox/3/

I hope there is no limitation, and it would be simple.

Is anyone tried something similar?


RE: How to Embed Fancybox 3 to TACTIC 4.5? - remkonoteboom - 02-28-2020

The one problem is that I don't think 4.5 is compatible with JQuery. This was because it conflicted with another of the base javascript toolsets we were using (Mootools) because of namespace issues. So I don't think this can work with 4.5.

This was obviously not ideal as JQuery is considered basic functionality for the webrowser now. So, for 4.7+, this should be rectified as JQuery should be fully functional on TACTIC. You can add additional js and css files to TACTIC in the config file with a comma separated list

<install>
<include_js>
https://d3js.org/d3.v3.min.js
/plugins/whatever.js
</include_js>

<include_css>
</include_css>
</install>