RSS Feed/News Javascript & css files

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
28,804
Points
823

Reputation:

How should I be including java script files and css in a addon?
I'm aware I can just add javascript files into the zip folder manually, but surely theres an easier way.

For css files, i've been creating templates and calling them like this:
HTML:

<xf:css src="public:template_name.less" />

But for javascript, i've been writing it manually in the /js folder and calling it like this:
HTML:

<xf:js src="addonName/javascript_file_name.js" min="1" />

Continue reading...
 
Status
Not open for further replies.
Top