-
Notifications
You must be signed in to change notification settings - Fork 21
Seo Title Tags
Nick Baker edited this page Jun 5, 2014
·
4 revisions
Working with SEO Titles feature. This is useful for setting title tags based on incoming uris. This will overwrite the existing title_for_layout if a title for that URI is found (added in the admin tool)
Include the Seo.Seo
Helper to your AppController.php
:
public $helpers = array('Seo.Seo');
Alter your layout to include the Seo Title in the head of your layout
<!-- other head items -->
<?php echo $this->Seo->title($title_for_layout); ?>
http://www.example.com/admin/seo/seo_titles
http://www.example.com/admin/seo/seo_titles/add
- Incoming URI that a user is requesting that you want to assign this title to. Either a relative link following domain (www.example.com).
- The Name title you'd like to create for this URI