contao/test — Issue #2788: TL_JAVASCRIPT not set, when inlcuding article
Author: importer
Created: 2011-11-29 10:19:25+00:00
State: open
Labels: Defect, Duplicate, frontend

Hello Leo,

1. Create a page "resources"
2. Create an article on page "resources"
3. Insert a module into article, which add an item to global TL_JAVASCRIPT-array in its compile()-function
4. Create a module "html code" with the following code (## replaced by article-id)

```
{{insert_article::##}}
```

5. Create a layout and choose the created module "html code" as one of the content modules
6. Create a page "test" with created layout and view the frontpage

Bug: The html-header does contain the javascript, set in compile()-function!

Maybe it depends on the order of parsing the elements, so that TL_JAVASCRIPT is not set, when accessing it in PageRegular.php line 446?

Sincerely
Oliver

Tested with Contao 2.9.3

Related issues: #2600

--- _Originally created by ofriedrich on January 11th, 2011, at 12:27pm (ID 2788)_