Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
rsmayer
New Contributor

Custom js and/or css for replacement pages?

Is there any way I can update custom js and/or css files to the Fortigate to be referenced in the customized Replacement pages?
Rich Mayer LGS Innovations
Rich Mayer LGS Innovations
3 REPLIES 3
rwpatterson
Valued Contributor III

Check under ' System > Config > Replacement Messages' . I loaded mine on a public web server, and link to them from the FGT.

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
rsmayer

Thanks for your input Bob, I can see how to update the page html in the replacment message part of the gui. The problem is that if included inline, the css and js would cause the page to exceed the size limit of 8k. So what I really want to do is add something like the following to the page html in the replacement message section: <script type=" text/javascript" href=" myjavascript.js" ></script> <link rel=" stylesheet" type=" text/css" href=" mystylesheet.css" > and then upload myjavascript.js and mystylesheet.css to the apprporiate location on the fortigate. Is that possible?
Rich Mayer LGS Innovations
Rich Mayer LGS Innovations
rwpatterson
Valued Contributor III

I haven' t tried to upload the CSS/Java to the FGT file system. I imagine when you upgrade, you will have to re-add all that stuff back to the FGT again. This is why I chucked my code on a remote server.
 <script src=" xxx.xxx.xxx.xxx/script_name.js"  type=" text/javascript" ></script>
 

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors