Skip to content

[3n]-[Core] Twig blockの中にアセットを入れる問題 #130

@ndquocphong

Description

@ndquocphong

概要(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:
    • MySQL 5.7

関連情報 (Ref)

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions