Jump to content

Plugin resource location


ipbfuck

Recommended Posts

Hi!

I've make for myself a small plugin "cookie consent" and it work as expected except when i delete cache from support tool...

Block of code

'content' => '<script type="text/javascript" src="{resource=\'plugins/script.min.js\' app=\'core\' location=\'global\'}"></script>',

with *.min.js inside resource folder:

<resources filename="script.min.js">

 

then, in source i see right my code, but if i delete cache remain only empty script tag:

from:

<script type="text/javascript" src="https://laltroweb.it/uploads/set_resources_**/script.min.js"></script>

to:

<script type="text/javascript" src=""></script>

 

and cause of this, usually, i am without cookie content alert.

 

what can be wrong?

maybe is related to:

Quote

{resource=\'plugins/script.min.js\' app=\'core\' location=\'global\'}

?

 

thanks in advance for any help ^_^

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...