So Google decided to add other meta tags for use with their Custom Search Engine (CSE) service:
- Thumbnail:
<meta name="thumbnail" content="http://example/foo.jpg" /> - Department:
<meta name="department" content="legal" /> - Content audience:
<meta name="audience" content="all" /> - Document status:
<meta name="doc_status" content="draft" /> - Results sorting:
<meta name="rating" content="5" />
https://support.google.com/customsearch/answer/1626955?hl=en
https://support.google.com/customsearch/answer/2595557?hl=en
These would go best in a submodule called "metatag_google_cse".
| Comment | File | Size | Author |
|---|---|---|---|
| #31 | metatag-n2532588-31.interdiff.txt | 575 bytes | damienmckenna |
| #31 | metatag-n2532588-31.patch | 8.2 KB | damienmckenna |
Comments
Comment #1
damienmckennaI expanded the request to cover the other meta tags supported by Google CSE and not just the thumbnail.
Comment #2
damienmckennaI speek good.
Comment #3
damienmckennaComment #4
damienmckennaComment #5
cebasqueira commentedComment #6
cebasqueira commentedComment #7
damienmckennaThanks for taking the time to put that together, I really appreciate it.
One thing that needs to be done slightly differently is the output - submodules should handle their own theming customizations, so the changes to theme_metatag() should go in the submodule.
Comment #8
cebasqueira commentedHi @DamienMcKenna,
You are right. I make the changes proposed and post a new patch!
Thanks my friend!
Comment #9
cebasqueira commentedComment #10
cebasqueira commentedComment #11
renatog commentedComment #12
renatog commentedI applyed the patch and works fine for me.
Follow bellow the images:
1) CMS:
 Img_1.png)
2) Tags:
 Img_1.png)
P.S. I found just one litle adjust, one comment with name "Facebook" in file: metatag_google_cse.install:
I fixed it:
 Img.png)
The patch with Fix follow in attachement.
The rest are ok.
Regards
Comment #13
renatog commentedComment #14
damienmckenna@renatog: Your patch only contains the changes to metatag_views_tests.views_default.inc, would you mind recreating the patch with your additional fix? Thanks.
Comment #15
renatog commentedIt is true. You're right @DamienMcKenna. Excuse me.
The new patch is attached.
Thank you very much.
Comment #16
damienmckennaThanks. I'll take a look at the patch this week.
Comment #17
renatog commentedGreat!
Thanks.
Comment #18
cebasqueira commentedComment #19
damienmckennaThis adds a README.txt file.
Comment #20
damienmckennaLets add this to the next release.
Comment #21
damienmckennaCommitted. Thanks everyone!
Comment #23
damienmckennaNeeds to be ported to D8.
Comment #24
renatog commentedComment #25
damienmckennaPorted to D8.
Comment #27
damienmckennaFixed the tests and plugins.
Comment #29
damienmckennaShould fix the errors.
Comment #31
damienmckennaFixed the last error.
Comment #33
damienmckennaCommitted.