概要(Overview)
A twig block need asset to work properly. Asset can only put into body of block, and it break html validation.
期待する内容(Expect) or 要望 (Requirement)
Example:
SamplePlugin\Resource\template\block_slider.twig
{% block slider %}
.....
<script src="path/to/js"></script>
<link type="stylesheet" href="path/to/css" />
{% endblock %}
<script src="path/to/js"></script> should be at before </body> tag
<link type="stylesheet" href="path/to/css" /> should be at before </head> tag
再現手順(Procedure)
環境 (environment)
- EC-CUBE: 3.n
- PHP: 7.1
- DB:
関連情報 (Ref)
概要(Overview)
A twig block need asset to work properly. Asset can only put into body of block, and it break html validation.
期待する内容(Expect) or 要望 (Requirement)
Example:
SamplePlugin\Resource\template\block_slider.twig
<script src="path/to/js"></script>should be at before</body>tag<link type="stylesheet" href="path/to/css" />should be at before</head>tag再現手順(Procedure)
環境 (environment)
関連情報 (Ref)