tsTitlePlugin - 0.0.3

Plugin for easy creation of nice title tag

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

tsTitlePlugin

tsTitlePlugin allows simply create nice title tag with info of default view.yml files. It ovecomes default symfony behavior, that overwrite content of tag title with every view.yml. Now it is possible to build "breadcrumb" title with nice delimiter without any other config files.

Installation

  • Install the plugin

    $ symfony plugin:install tsTitlePlugin

  • Clear the cache

    $ symfony cache:clear

Usage

Simply add config in app_dir/config/view.yml

all:
  metas:
    title: 'My Site'

Then add config in module_dir/config/view.yml

all:
  metas:
    title: 'My Module'

Now your title tag will contain some like that:

<title>My Site | My Module</title>

You can customize delimiter and direction of composite title redefine tsTitlePlugin config options

all:
  title:
    direction: "forward" # forward or backward
    delimiter: ' | '