Table of contents
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 ofname
(done in r61370)
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:
{metatag content="https://some.website/foo.jpg" name="twitter:image"}
Block syntax example:
{METATAG()} og:image |https://some.website/foo.jpg twitter:image |https://some.website/foo.jpg {METATAG}
or
{METATAG()} <meta content="https://some.website/foo.jpg" name="twitter:image"> <meta content="https://some.website/foo.jpg" property="og:image"> {METATAG}
Related
Commits
Demo
Presentation on TRM 2017-01-19
luci's demo for https://tiki.org/Roundtable+Meeting+2017+01
Bugs/Wishes
References
- http://ogp.me/ — The Open Graph protocol by Facebook
- https://developers.facebook.com/tools/debug/sharing/ — FB sharing debugger