Download the PHP package insight-media/seotamic without Composer
On this page you can find all versions of the php package insight-media/seotamic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download insight-media/seotamic
More information about insight-media/seotamic
Files in insight-media/seotamic
Package seotamic
Short Description Simple SEO addon for Statamic v3
License MIT
Informations about the package seotamic
Seotamic - Statamic SEO Addon
Statmic v3 only. Automatically adds a SEO tab to all your collection entries where you can fine tune SEO for every entry.
Generates the whole array of SEO settings:
Version 2 changes
Version 2 has breaking changes. If you update from version 1, your global settings will not be transfered, you need to manually copy the old files to the content directory.
Installation
Include the package with composer:
The package requires Laravel 7+ and PHP 7.3+. It will auto register.
The SEO section tab will appear on all collection entries automatically.
Configuration (optional)
You can override the default options by publishing the configuration:
This will copy the default config file to `config/seotamic.php'.
If you need to change the default assets container, make sure to apply the change in the Blueprints as well.
Usage
Usage is fairly simple and straight forward. You can visit the global Settings by following the Seotamic link on the navigation in the CP. Make sure to follow the instructions on each field.
After this you can fine tune the output of each collection entry by editing the SEO settings under the entry's SEO tab.
Antlers
There are several antler tags available, the easiest is to just include the do everything base tag in the head of your layout:
If you need more control you can manually get each part of the output by using:
This will return strings, so you need to wrap them in the appropriate tags, ie:
Social ones will still return everything with tags
Dynamic OG Image
In projects where you want the OG Image to be dynamic, for now you can use this ViewModel and inject it to your collection in order to dynamically assign the OG Image.
In the example above we are assuming in your collection you have an image
field which you can change to suit your usecase. Then in your collections you just have to inject the ViewModel.
Credits
This package was built by CNJ Digital.
License
This project is licensed under the MIT License.