Download the PHP package mgrechanik/yii2-seo-categories without Composer
On this page you can find all versions of the php package mgrechanik/yii2-seo-categories. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mgrechanik/yii2-seo-categories
More information about mgrechanik/yii2-seo-categories
Files in mgrechanik/yii2-seo-categories
Package yii2-seo-categories
Short Description Active Record hierarchical SEO categories and tags for Yii2 framework
License BSD-3-Clause
Informations about the package yii2-seo-categories
Active Record hierarchical SEO categories and tags for Yii2 framework
Русская версия
Table of contents
- Goal
- Demo
- Installing
- Module settings
Goal
This extension gives you a variation of categories module, in which the opportunity to create any your own category models was given.
We suggest that when creating pages at frontend to display associated content of the category (or tag) we would need to manage SEO information of such category page.
Respectively we add next fields to our SEO category model:
- to name category
- for content of tag
- for value of attribute of tag
- for value of attribute of tag
- to inserting any other meta tags you may need
- serves as a "slug", or tail, in the page address
With all this in module's settings you may choose not to use
or fields and they will not appear in the web form of creating/editing SEO category
Installing
Installing through composer:
The preferred way to install this extension is through composer.:
Either run
or add
to the require section of your composer.json
Migrations
This extension comes with two migrations:
- the first creates SEO categories table with all indexes needed
- the second creates unique index for field
You can run both of them:
, or when you do not use field run only the first migration:
Setting the module up
As was mentioned in the basic categories module, this module follows the approach of universal module, and since it gives you only backend pages when you set it up into your application specify the next :
Done. When you access page you will see all your SEO categories in a form of tree.
Module settings
base categories module, we can use it's next properties:
- Whether to use field
- Whether to use field. It is supposed to be unique
- When we use previous field in this property we set up regular expression of expected symbols
- Whether to display field in the categories list grid
- Whether to display field in the categories list grid