# Posts module

## Installation via composer

 ```composer require ciext/post 3.*```
 
## Integration into project
1. Create a page template for posts and add shortcode ``` {{ module('post/post_site/posts') }} ```
2. Create a page template for a detailed view and add needed fields
```html
<div class="content">
    <div class="promo">
        <div class="wrap">
            <div class="title_wrap">
                <h1>{{ module('post/post_site/current', 'category_title') }}</h1>
            </div>
        </div>
    </div>
    <div class="newsletters_page">
        <div class="wrap">
            <div class="newsletters_col_tt">
                <h2>{{ module('post/post_site/current', 'title') }}</h2>
            </div>
            <div class="newsletters_col_desc">
                <p>{{ module('post/post_site/current', 'content') }}</p>
            </div>
        </div>
    </div>
</div>
```
3. Configure the module using the ```post/config/config.php``` file