yii-seo Nice and flexible way to manage your SEO, without rewriting the code

yiiSEO

  1. Description
  2. Installation
  3. Usage
  4. Find us
  5. Change Log

Description

YiiSEO has been completely refactored. It is lot more flexible and now you can make almost any SEO changes without changing your code.

Features :

  • single language and multi-language site support
  • can be used to add author meta, FB meta and many more
  • uses inverse hierarchy to find meta data

Requirements : update your URLManager in /protected/config/main.php this way :

'urlManager'=>array(
            'urlFormat'=>'path',
            'showScriptName'=>false,
),

Installation

  1. Unpack 'yiiseo' folder to '/protected/modules/'
  2. Add folowing code to configuration files (protected/config/main.php)
'modules'=>array(
        	....
        	'yiiseo'=>array(
                    'class'=>'application.modules.yiiseo.YiiseoModule',
                    'password'=>'111', // your default password is 111
                 ),
        ),
        
        'components'=>array(
        	....
        	'seo'=>array(
        	'class' => 'application.modules.yiiseo.components.SeoExt',
        	),
        ),
        
        'import'=>array(
        	....
        	'application.modules.yiiseo.models.*',
        ),

3.Run following line of code that suits you into your main layouts head :

  • In case the site has one language:
`Yii::app()->seo->run();`
  • In case when site is multilingual:
`Yii::app()->seo->run(Yii::app()->language);`

4.Run module by typing in the link : http://yoursite.com/yiiseo/

Usage

When you enter this module - you'll see the usual CRUD. For starters - press CreateYiiSEOUrl. In the form below enter your meta data.

URL URL - is the relative link to your project. For example - if you want to write meta for the root(homepage) of your project - just write "/" in the URL.

Another example : You need a SEO meta data for http://example.com/sites/news page. Than in the URL - write down "sites/news" (without shash in the beggining)

If you want to use it for multiple links - for example you have links like this http://example.com/post/7 and you need all posts to have the same meta patern - just use following URL "post/*"

Main meta There are 3 metas that we devided from the rest : Title, meta description, meta keywords. In case of title or description - just type the text as you would usually do. In keywords write down phrases separated by commas.

Params Using the params is a tricky part. To use a param in main meta - just use the "{param}" in place where you want it to be. After that - choose it from the list. The list is auto generated from site models and there relations.

Find us

Find us on GitHub : https://github.com/Idol-IT/yiiSEO

yiiSEO wiki : https://github.com/Idol-IT/yiiSEO/wiki

For more info or advanced functions contact us : http://idol-it.com/

Change Log

19.05.2012

  • change : path to models is now more flexible (thanks to Alexey Naydenko)
  • bug : missing assets folder is now added to archive

17.05.2012

  • feature : added line break for each meta
  • feature : added module logout button
  • feature : no need to create dump files, they are automatically generated
  • change : module password setting is set in 'protected/config/main.php'
  • change : single space added after each comma in keywords
  • feature : no need to create dump files, they are automaticly generated
  • bug : model without db table issue fixed
  • bug : unique session for yiiSEO users, to fix a user authorization conflict
  • bug : tags are now stripped
5 0
27 followers
2 174 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Developed by: monkeymafia
Created on: May 16, 2012
Last updated: 12 years ago

Downloads

show all

Related Extensions