Code Monkey home page Code Monkey logo

viewhelpers's Introduction

Sudhaus7 Viewhelpers

This Extension provides a set of additional Viewhelpers and will add a hook to the RenderPostProcessHook facility of TYPO3. Additionally it will manage Metatags with the help of viewhelpers, automatically adding and overwriting Facebooks opengraph tags and others. It handles as well the generation of the cannonical URL. This makes this extension a mix of tools and seo optimizations

Usage

in your fluid template add this to the html-header: xmlns:s7="http://typo3.org/ns/SUDHAUS7/Sudhaus7Viewhelpers/ViewHelpers"

or inline: {namespace s7=SUDHAUS7\Viewhelpers\ViewHelpers}

Signal Slots

Classname: \SUDHAUS7\Sudhaus7Viewhelpers\Hooks\RenderPostProcessHook All slots expect its parameters returned wrapped in an array Slots:

  • paramsAfterTitle - the whole page configuration after title generation. Parameters: $params
  • metadataAfterImage - after guessing the image for example for og:image. Parameters: $params, $metaArray
  • generateCannonical - chance to influence the cannonical URL. Parameter: $url
  • newMetadata = array of the metadata to be set, wrapped in tags. Parameter: $newMeta
  • finish = last chance to change $params. Parameter: $params, $metaArray

Markers

the Marker ###CANONICALURL### will be replaced with the generated cannonical URL throughout the Document.

Viewhelpers

Meta Viewhelper: <s7:meta key="" value="" auto="1"/>

for example:

<s7:meta key="title" value="my title" auto="1"/>

will create meta tags for the attribute title with the value of "my title". the auto feature will automatically create apporipriate tags for facebook, twitter and googleplus. valid keys for auto are: title,type (see og:type), description,image,site,published,modified,section,keywords other keys will be added literally as

<meta name="key" content="value"/>

more TODO

viewhelpers's People

Contributors

dsimon-dsimon avatar

Watchers

James Cloos avatar Frank Berger avatar Markus Hofmann avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.