Topic Closed

Hello Developers,

I am a German user of Typesetter in the version 5.1.0 and would like to include a code with the CookieBar in the template. But it is not that simple.

How can I do it best? The generated code with "<script> ..... Code .... </script>" already exists.

Thanks in advance.

6 years ago#10402

mahotilo
93 Posts

Look at theme ThemeGarage-Gold (http://www.typesettercms.com/Themes/322_ThemeGarage_Gold) for example.

You will see in template.php strings like

    <?php
        $page->head_js[] = dirname($page->theme_path) . '/scripts.js';
    ?>
 

So if you write your  ..... Code .... in scripts.js it will be included in your page html via string like

<script type="text/javascript" src="/themes/MyTheme/scripts.js?v=5.1"></script>

And all should work fine.

I hope, my "advice" will help you:)

6 years ago#10403

OK thank you.

Your tips have brought something and I can put the scripts simply in the "head" area of the template.php.

That worked very well and the cookie bar is now displayed.

6 years ago#10405

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

Log In

  Register