2017 © Pedro Peláez
 

symfony-bundle seo-bundle

Allows management of page title, meta description and meta keywords.

image

astina/seo-bundle

Allows management of page title, meta description and meta keywords.

  • Wednesday, August 14, 2013
  • by pkraeutli
  • Repository
  • 5 Watchers
  • 0 Stars
  • 582 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

AstinaSeoBundle

Allows management of page title, meta description and meta keywords., (*1)

Installation

Step 1: Add to composer.json

"require" :  {
    // ...
    "astina/seo-bundle":"dev-master",
}

Step 2: Enable the bundle

Enable the bundle in the kernel:, (*2)

``` php <?php // app/AppKernel.php, (*3)

public function registerBundles() { $bundles = array( // ... new Astina\Bundle\SeoBundle\AstinaSeoBundle(), ); }, (*4)


### Step 3: Load routing config Add routing if you want to be able to edit page meta data directly. ```yml astina_seo: resource: "@AstinaSeoBundle/Resources/config/routing.yml"

Warning: make sure to protect this URL in your app/config/security.yml, (*5)

Usage

Place {{ seo_meta_tags(app.request) }} in your Twig template where you want the meta tags to be rendered., (*6)

Parameters:, (*7)


/** * @param \Symfony\Component\HttpFoundation\Request $request * @param string $defaultTitle * @param array $defaults * @param string $titleSuffix * @return string */ public function renderPageMetaTags(Request $request, $defaultTitle = null, array $defaults = array(), $titleSuffix = null)

The function tries to find a PageMetaData entity for the current request and uses it to render the meta tags., (*8)

Global Defaults

Configure global default values for title, description and keywords if needed:, (*9)

# app/config.yml
astina_seo:
    global_defaults:
        title: "Foo App"
        description: "The greatest and bestest app in the internet"
        keywords: "greatest, bestest"

@todo: UI to create/delete PageMetaData entitites., (*10)

The Versions

14/08 2013

dev-master

9999999-dev https://github.com/astina/AstinaSeoBundle

Allows management of page title, meta description and meta keywords.

  Sources   Download

MIT

24/04 2013

0.1.3

0.1.3.0

  Sources   Download

28/02 2013

0.1.2

0.1.2.0

  Sources   Download

27/02 2013

0.1.1

0.1.1.0

  Sources   Download

27/02 2013

0.1.0

0.1.0.0

  Sources   Download