813

Product support

Get help in the plugin support forum.

Categories

Blog

Blog plugin for October CMS.

Blog

Blog plugin for October CMS.

Installation

Run the following to install this plugin:

php artisan plugin:install Yamobile.Blog

To uninstall this plugin:

php artisan plugin:remove Yamobile.Blog

Using components

This plugin provides 4 components: Categories, Category, Posts and Post. Components have no default markup but they provide convenient work with data. Markup must be added by themes.

Categories component

This component allows you to display all categories.

Basic usage example:

[Categories]
==
{% for category in Categories.categories %}
    <section>
        <h2>
            <a href="{{ category.slug }}">
                {{ category.name }}
            </a>
        </h2>
        <p>
            {{ category.description }}
        </p>
    </section>
{% endfor %}

Category component

This component allows you to display data of a specific category.

Basic usage example:

[Category]
slug = "{{ :slug }}"
==
<h1>
    {{ Category.category.name }}
</h1>
<p>
    {{ Category.category.description }}
</p>

Posts component

This component allows you to display all posts by a specific category.

Basic usage example:

[Posts]
slug = "{{ :slug }}"
==
{% for post in Posts.posts %}
    <section>
        <h2>
            <a href="{{ post.slug }}">
                {{ post.name }}
            </a>
        </h2>
        <img src="{{ post.image | media }}">
        <p>
            {{ post.description }}
        </p>
    </section>
{% endfor %}

Post component

This component allows you to display data of a specific post.

Basic usage example:

[Post]
slug = "{{ :slug }}"
==
<h1>
    {{ Post.post.name }}
</h1>
{{ Post.post.content | raw }}
1.0.18

Updated table yamobile_blog_category

May 10, 2023

1.0.17

Updated table yamobile_blog_post

May 10, 2023

1.0.16

Updated table yamobile_blog_post

May 10, 2023

1.0.13

Updated table yamobile_blog_post

May 10, 2023

1.0.12

Updated table yamobile_blog_post

May 10, 2023

1.0.11

Updated table yamobile_blog_posts_tags

May 10, 2023

1.0.10

Created table yamobile_blog_posts_tags

May 10, 2023

1.0.9

Updated table yamobile_blog_tags

May 10, 2023

1.0.8

Created table yamobile_blog_tags

May 10, 2023

1.0.7

Updated table yamobile_blog_post

May 10, 2023

1.0.6

Updated table yamobile_blog_category

May 10, 2023

1.0.5

Updated table yamobile_blog_category

May 10, 2023

1.0.4

Created table yamobile_blog_posts_categories

May 10, 2023

1.0.3

Created table yamobile_blog_post

May 10, 2023

1.0.2

Created table yamobile_blog_category

May 10, 2023

1.0.1

Initialize plugin.

May 10, 2023