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 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:
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
60884
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
{maketoc}
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 [http://recordings.blindsidenetworks.com/citadelrock/d559965849921585c1849af03b7a51638700d979-1484833430270/presentation/?t=34m40s|TRM])
*In ''short syntax'' if proprietary OG meta tag is detected in the name, use -+property+- attribute instead of -+name+- (done in r((rev: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:
{CODE(colors="tiki")}{metatag content="https://some.website/foo.jpg" name="twitter:image"}{CODE}
Block syntax example:
{CODE(colors="tiki")}
{METATAG()}
og:image |https://some.website/foo.jpg
twitter:image |https://some.website/foo.jpg
{METATAG}
{CODE}
or
{CODE(colors="htmlmixed")}
{METATAG()}
<meta content="https://some.website/foo.jpg" name="twitter:image">
<meta content="https://some.website/foo.jpg" property="og:image">
{METATAG}
{CODE}
!! Related
!!! Commits
((rev:60884))
((rev:61370))
!!! Demo
!!!! Presentation on TRM 2017-01-19
luci's demo for https://tiki.org/Roundtable+Meeting+2017+01
* http://recordings.blindsidenetworks.com/citadelrock/d559965849921585c1849af03b7a51638700d979-1484833430270/presentation/?t=27m50s
!!! Bugs/Wishes
{LIST()} {filter content="5" field="tracker_id"}
{filter field="tracker_status" content="o OR p"}
{filter field="tracker_field_subject" content="Meta"}
{sort mode="tracker_field_priority_desc"}
{OUTPUT(template="table")}
{column field="mod_date" label="LastModif" mode="raw"}
{column field="tracker_status" label="" mode="raw"}
{column sort="tracker_field_priority" field="tracker_field_priority" label="Priority" mode="raw"}
{column sort="tracker_field_resolution_status" field="tracker_field_resolution_status" label="Resolution Status" mode="raw"}
{column sort="tracker_field_submitted_by" field="tracker_field_submitted_by" label="Submitted By"}
{column field="tracker_field_assigned_to" label="Volunteered" mode="raw"}
{column field="tracker_field_subject" label="Title" mode="raw"}
{column label="Category" field="category" mode="raw"}
{column sort="tracker_field_version" field="tracker_field_version" label="Version" mode="raw"}
{column field="tracker_field_feature" label="Feature" mode="raw"}
{tablesorter server="n" sortable="y"}
{OUTPUT}
{FORMAT(name="mod_date")}{display name="modification_date" format="date"}{FORMAT}
{FORMAT(name="tracker_status")}{display name="tracker_status" format="trackerrender"}{FORMAT}
{FORMAT(name="tracker_field_priority")}{display name="tracker_field_priority" format="trackerrender" default="" editable=inline}{FORMAT}
{FORMAT(name="tracker_field_resolution_status")}{display name="tracker_field_resolution_status" default="" format="trackerrender" editable=inline}{FORMAT}
{FORMAT(name="tracker_field_submitted_by")}{display name="tracker_field_submitted_by" format="trackerrender"}{FORMAT}
{FORMAT(name="tracker_field_assigned_to")}{display name="tracker_field_assigned_to" format="trackerrender" editable=inline default=""}{FORMAT}
{FORMAT(name="tracker_field_subject")}{display name="tracker_field_subject" format="trackerrender"}{FORMAT}
{FORMAT(name="category")}{display name="tracker_field_category" format="trackerrender"}{FORMAT}
{FORMAT(name="tracker_field_version")}{display name="tracker_field_version" format="trackerrender"}{FORMAT}
{FORMAT(name="tracker_field_feature")}{display name="tracker_field_feature" format="trackerrender"}{FORMAT}
{LIST}
!! References
* http://ogp.me/ -- The Open Graph protocol by Facebook
* https://developers.facebook.com/tools/debug/sharing/ -- FB sharing debugger
-=Aliases=-
(alias(PluginMeta)) | (alias(PluginMetaTags))