if i have:
my template volt :
general.volt ( this is the main view)
if i put : {{ assets.outputInlineJs() }}
show the alert...
but if..
showCaptcha.volt (this is the action view and Inherited from general.volt)
if i put : {{ assets.outputInlineJs() }}
not show the alert...
I want to put the {{ assets.outputInlineJs() }} in my main view becouse:
general.volt have:
{% set cacheName = constant("SITE_DOMAIN")~"_"~config.application.langDefault~"_"~lang_before_cache~"_"~router.getControllerName() %}
{% cache cacheName~"_"~headerContent 18800 %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="{{ config.client.description }}">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="MCETS Team">
<title>{{ config.client.siteName }} - COMMON PAGE </title>
{{ assets.outputCss('cssCommon') }}
{{ assets.outputCss() }}
{% endcache %}
{% cache cacheName~"_"~router.getActionName()~"_"~dynamicContent 18800 %}
</head>
<body>
{{ this.getContent() }}
{% endcache %}
{% cache cacheName~"_"~footerContent 18800 %}
{{ assets.outputJs('jsCommon') }}
{{ assets.outputInlineJs() }} // i want to put here the inline Js from my actions views..
</body>
</html>
{% endcache %}
i want to put here the inline Js from my actions views..
Any help please!!....