SEO Manager Created by: Igniter Labs

 11

Manage SEO meta & open graph tags for all frontend pages with ease.

 Extension
Version
v1.0.0
Updated
1 week ago
Author
Igniter Labs
Licence
MIT

Views: 152

This extension adds SEO functionality to TastyIgniter. It supports frontend pages, Igniter.Pages out of the box. One robust solution for all your SEO needs.

Features

  • Favicon & App Icon Generator
  • Open Graph support
  • Robots meta configuration
  • Canonical URLs
  • 301 Redirects
  • Easily edit robots.txt and .htaccess in Admin Settings
  • Easy integration with other extensions

TO DO:

  • Sitemap generator
  • SEO Analyzer with Google snippet preview
  • SEO Assessments
  • Focus keywords check

Installation

To install this extension, click on the Add to Site button on the marketplace item page or search for IgniterLabs.SeoManager in Admin System > Updates > Browse Extensions

This extension includes one component:

  • SEO Tags

Usage

After installation all pages will now display additional tabs with SEO and Open Graph fields.

To display meta information on frontend pages, you ONLY need to place the SEO component in your theme layout head section.

---
...

'[seoTags]':
---
<!DOCTYPE html>
<html>
    <head>
        <?= component('seoTags') ?>
    </head>

Configuration

To configure this Extension, go to Admin System > Settings > SEO Configuration.

Integration with models

SEO fields can be attached to any TastyIgniter model with single line of code. You just need to implement SEO Action in your model class like:

public $implement = [\IgniterLabs\SeoManager\Actions\SeoModel::class];

After implementing this action to your model class, SEO Manager will extend it with SEO fields and create relation to model.

To allow SEO Tags Component to recognize page with seo model attached you must passed it to the page view. This is most often done in component onRun() method like:

$this->page['menu'] = Menus_model::find($id); // pass menu record to page view

Extending SEO fields

This extension will fire seoManager.extendSeoFields event to allow for extensibility of the form fields. This can be used to modify or add more SEO fields. You can listen for this event like:

Event::listen('seoManager.extendSeoFields', function ($fields) {

    // modify or add more fields

    return $fields; // remember to return modified fields array
});

Similar approach can be used to extend Open Graph fields with seoManager.extendOgFields event.

Access SEO Tag before rendered on page

This extension will fire seoManager.beforeComponentRender event to allow for extensibility. This can be used to access page with associated SEO Tag.

Event::listen('seoManager.beforeComponentRender', function ($component, $page) {
    if ($page->url == '/local/:slug') {
        $component->page['seoMeta']->title = $page->controller->vars['location']->name;
    }
});

Releases

  1.   Latest release
    v1.0.0

    First version of Seo Manager