Loading...
 
Skip to main content
(Cached)

PluginMetaTag


This wiki plugin should be able to insert (or optionally replace matching) meta tags in the head of the page where present.
Useful when you want to provide custom meta tags per page, e.g. for sharing on Social Networks.
Will probably always require plugin approval on each edit.

ToDo

Done

  • Introduce in trunk (next Tiki 17)
  • Add support for rawhtml insertion of the plugin body to headerlib
  • Allow both: short with params and block syntax
  • Rename the plugin to something less "meta-physical" (as discussed on the TRM)
  • In short syntax if proprietary OG meta tag is detected in the name, use property attribute instead of name (done in rrev:61370)

Ideas

  • More security? (is not plugin approval enough?)
  • Replace existing matching meta tags possible? (would need new param probably e.g. replace="y"

Syntax

Short syntax example:

Copy to clipboard
{metatag content="https://some.website/foo.jpg" name="twitter:image"}


Block syntax example:

Copy to clipboard
{METATAG()} og:image |https://some.website/foo.jpg twitter:image |https://some.website/foo.jpg {METATAG}


or

Copy to clipboard
{METATAG()} <meta content="https://some.website/foo.jpg" name="twitter:image"> <meta content="https://some.website/foo.jpg" property="og:image"> {METATAG}


Commits

rev:60884
rev:61370

Demo

Presentation on TRM 2017-01-19

luci's demo for https://tiki.org/Roundtable+Meeting+2017+01

Bugs/Wishes

References

Aliases

PluginMeta | PluginMetaTags

Show PHP error messages