• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    FOG 1.6 own plugin

    Scheduled Pinned Locked Moved General
    1 Posts 1 Posters 2 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      Valer
      last edited by

      Hello,

      How can I add JavaScript and CSS files to my own custom plugin in FOG 1.6?

      My plugin has several submenus, and I would like all of them to use the same JavaScript and CSS files. I want to avoid creating duplicate files for each submenu or copying the same files multiple times under different names.

      For example:

      index.php?node=myplugin&sub=list
      

      should load:

      myjs.js
      mycss.css
      

      and

      index.php?node=myplugin&sub=something
      

      should also load:

      myjs.js
      mycss.css
      

      What is the recommended way to include shared JS and CSS files across all pages/submenus of a custom FOG 1.6 plugin?

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post

      80

      Online

      12.7k

      Users

      17.6k

      Topics

      156.9k

      Posts
      Copyright © 2012-2026 FOG Project