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
LastModif | Priority | Resolution Status | Submitted By | Volunteered | Title | Category | Version | Feature | |
---|---|---|---|---|---|---|---|---|---|
28 Oct 13 | 42 | Marc Laporte | Custom fields for wiki pages (structured data / meta-data for wiki pages) |
|
9.x 10.x |
Wiki (page view, edit, history, rename, etc) Category |
|||
20 Oct 22 | 35 | New | Bernard Sfez / Tiki Specialist | Metatag, Metatag plugin; having a meta tag plugins content (per object) should remove the admin meta tag content (global) |
|
24.x |
Administration Meta Tag Wiki Plugin (extends basic syntax) |
||
11 Oct 21 | 25 | New | Bernard Sfez / Tiki Specialist | Preference metatag_imagetitle is not defined error on admin meta-tags |
|
23.x | Meta Tag | ||
28 Oct 13 | 12 | New | Frank Guthausen | Meta: preview button for this "Bugs & Wish list" |
|
Accessibility |
References
- http://ogp.me/ — The Open Graph protocol by Facebook
- https://developers.facebook.com/tools/debug/sharing/ — FB sharing debugger