Timeline for Magento 1.8 - How to addItem to block other than `head`? [duplicate]
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 15, 2020 at 8:30 | history | edited | CommunityBot |
Commonmark migration
|
|
Nov 29, 2018 at 13:20 | vote | accept | Black | ||
Jun 4, 2018 at 20:20 | history | closed | Marius♦ | Duplicate of Trouble adding JS to before body end without modifying Magento theme | |
Jun 4, 2018 at 14:27 | review | Close votes | |||
Jun 4, 2018 at 20:20 | |||||
Jun 4, 2018 at 14:03 | comment | added | Black |
Ok I see, so I could just add a <script></script> block to the template with the script.
|
|
Jun 4, 2018 at 14:01 | answer | added | Black | timeline score: 1 | |
Jun 4, 2018 at 14:01 | comment | added | kunj |
your way is proper to include JS file. you can access js functions in your block which you added under before_body_end .
|
|
Jun 4, 2018 at 13:57 | comment | added | Black |
Ok I see, addItem is not supported for blocks with type core/text_list for whatever reason. I can call my modules block which includes html., But how can I properly include my script?
|
|
Jun 4, 2018 at 13:36 | comment | added | kunj |
because addItem method not exist core/text_list you can call your custom modules block there.
|
|
Jun 4, 2018 at 13:17 | history | asked | Black | CC BY-SA 4.0 |