PluginMetaTag
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
propertyattribute instead ofname(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}
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 |
||
| 28 Oct 13 | 12 | New | Frank Guthausen | Meta: preview button for this "Bugs & Wish list" |
|
Accessibility | ||
| 03 Feb 25 | 25 | New | Gary Cunningham-Lee | meta name="theme-color" tag is broken in master | ||||
| 27 Mar 24 | 56 | New | Gary Cunningham-Lee | Tiki should use modern meta tag for charset |
|
27.x | Meta Tag | |
| 11 Oct 21 | 25 | New | Bernard Sfez / Tiki Specialist | Preference metatag_imagetitle is not defined error on admin meta-tags |
|
23.x | Meta Tag | |
| 23 Jun 26 | 35 | New | Bernard Sfez / Tiki Specialist | There is a regression in the meta description for Article between Tiki29 and Tiki30 |
|
30.x Regression from 29.x to 30.x master |
Article | |
| 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) |
References
- http://ogp.me/ — The Open Graph protocol by Facebook
- https://developers.facebook.com/tools/debug/sharing/ — FB sharing debugger