SOY CMS manual

Manual top

Page management

Method of displaying entry on page(the 1)

1. How to make block(the 1)

As follows

<html>
<body>
<h4>corporate profile </h4>
<div>The content of the corporate profile enters here.</div>
</body>
</html>

It explains drinking HTML.

There is roughly separately two kinds of how to makes block. It is a method to specify by specification by the comment and the attribute of the HTML tag.

1.1 Specification by comment.

Company information and the content part are wrapped by the following comments.

<!-- block:id="company_info" -->Content of block<!-- /block:id="company_info" -->

Please note that the "/" slash is necessary for the block:id of the end tag front.

Therefore, the entire HTML 

<html>
<body>
<!-- block:id="company_info" -->
<h4>Corporate profile</h4>
<div>The content of the corporate profile enters here.</div>
<!-- /block:id="company_info" -->
</body>
</html>

It becomes it.

1.2 Specification according to attribute of HTML tag

It is possible to block it by even specifying the block:id attribute for the route of the HTML node to be blocked.

For instance, when it thinks the corporate profile and the content are wrapped with the div tag, and the div tag is blocked

<html>
<body>
<div block:id="company_info">
<h4>Corporate profile</h4>
<div>The content of the corporate profile enters here.</div>
</div block:id="company_info" >
</body>
</html>

It becomes it.

Please differ from usual HTML, and specify the block:id attribute for the end part.

Moreover, the "/" slash need not differ when commenting and be applied to the attribute of the end tag.

 

The subsequent page explains the method of specifying the content of the block (How to use of cms:id).