disable_js_injection
Submitted AndyMillne, Apr 11 2012 09:01 PM | Last updated Jul 28 2012 03:00 AM
When disable_js_injection is set true, blocks are still getting empty <script></script> tags added when embedded in page templates.
If the block is added to a page directly then no additional tags are added.
This is causing problems particularly for items such as the ipcontent_files block which is often embedded within "src" attributes and thus braking layouts.
If the block is added to a page directly then no additional tags are added.
This is causing problems particularly for items such as the ipcontent_files block which is often embedded within "src" attributes and thus braking layouts.
| Status: | Fixed |
| Version: | 2.3.1 |
| Fixed In: | 2.3.2 |











11 Comments
As of right now with 2.3.1, it's impossible to use the media files block in both a Page Template and that template's individual pages so I have to actually hardcode the specific URLs for any images, files, and whatever else media I have stored in the block. It's pretty much useless right now since that is a huge inconvenience.
http://community.inv...-in-ipc-23-r615
I'm assuming that ipcmedia loads the path to ccs_files? It's a shame the media block is useless because it was nice just being able to click a button and have it inserted into where my cursor was. Now I have to type in or paste this new parse everytime.
Hopefully the media block will be fixed and become useful again lol
See ccsFunctions->injectBlockFramework
... see /xml/ccs_settings.xml
.... confused... but able to load it locally now... is that supposed to be a setting?
I will investigate this specific report, but no, the setting should not be included.
In any event, I have added code to allow the template engine not to add the empty script tags if disable_js_injection is enabled.
My mods code checks this as well.... if you turn that on and it still occurs then I would submit a ticket, if not, you should be doing as I said and stop using blocks in image/link/script tags.... or manually loading it if you insist.