When I use the output filter htmlToBottom in a chunk located in the head tag like so:
[[$insertJs:htmlToBottom]] it inserts it to the bottom of the page, but it also leaves the chunk in the head as well. So i get duplicate js calls.
This project uses MODX 2.2.5
Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
-
- 24,544 Posts
Looking at the code, it appears that they would all do that.
I think maybe those cases in the filter() method of core\model\modx\filters\modoutputfilter.class.php should all have a second line:
Sounds like a bug then. I will post it to bugtracker.
Thanks Bob!
Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
-
- 24,544 Posts
Quote from: BobRay at Aug 28, 2013, 09:43 PMLooking at the code, it appears that they would all do that.
I think maybe those cases in the filter() method of core\model\modx\filters\modoutputfilter.class.php should all have a second line:
Huge +1!
Have not tested the above, but have definitely had to work around this on numerous occasions...