Document Metatag's APIs and provide examples for:

  • Creating new meta tags.
  • Disabling meta tags provided by default by the module.
  • Adding meta tag support to new entities.
  • Loading meta tags for a given entity.
  • How to customize the form fields.

Original issue:
Any examples out there showing how to use the API to "define your own meta tags"?

Thanks!

Files: 
CommentFileSizeAuthor
#12 metatag-n1466292-12.patch6.67 KBDamienMcKenna
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es).
[ View ]
#2 metatag-n1466292.patch216 bytesDamienMcKenna
PASSED: [[SimpleTest]]: [MySQL] 15 pass(es).
[ View ]

Comments

Version:7.x-1.0-alpha4» 7.x-1.x-dev
Issue tags:+D7 stable release blocker

We need to fully document this for the 1.0 release.

Status:Active» Needs review
StatusFileSize
new216 bytes
PASSED: [[SimpleTest]]: [MySQL] 15 pass(es).
[ View ]

A placeholder so other issues have somewhere to add details to.

Status:Needs review» Needs work

I've committed this file, but more work is needed.

Sweet, thanks!
I can't wait to define my own (Token based) meta tags.
Great stuff.

Example on how to create your own meta tags using Metatag module.
http://www.agileapproach.com/blog-entry/creating-custom-meta-tags-metata...

Component:Miscellaneous» Documentation
Category:support» task

@s1l: Excellent post! Thank you!

Title:Define your own meta tagsDocument Metatag APIs, provide examples for creating new meta tags
Status:Needs work» Active

Marked #1709218: Metatag API Documentation as a duplicate.

Marked #1308164: Documentation Please! as a duplicate.

Issue summary:View changes

Clarified the issue.

Marked #1318182: Custom tags as a duplicate.

Issue summary:View changes

Provided more details on what needs to be documented.

Issue summary:View changes

Document how to customize form fields.

Status:Active» Needs review
StatusFileSize
new6.67 KB
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es).
[ View ]

This is a starting point, all new hooks are at least added to metatag.api.php and everywhere the hooks are triggered there's a comment to say what the hook name is.

Status:Needs review» Needs work

I've committed #12 to keep the ball rolling, but it needs further work.

RTFM, manual, readme, help, ponies.

To help people find this page via the issue search. ;)

Is it already possible to make a field (eg Description) required and if so: can anyone help me with it? I'm not a very experienced coder...

Please can you quickly explain how to load meta tags for an entity (including any defaults setup)?

I've tried metatag_metatags_load, but this doesn't seem to work :-(

Status:Needs work» Active

Title:Document Metatag APIs, provide examples for creating new meta tagsDocument all Metatag's hooks

Lets keep this issue focused on documenting the new hooks, leave #1858116: Document how to use Metatag's functions to manage using Metatag's funtions for other uses.

Re. #5: Can someone please confirm that the proper procedure for adding a metatag, to be managed via metatags module, is to write a module?

Issue summary:View changes

Added the question of one of the issues that was marked as duplicate.