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".

Comments

damienmckenna’s picture

Title: Add a new meta tag: Thumbnail » Add a new meta tags: Google CSE tags
Issue summary: View changes

I expanded the request to cover the other meta tags supported by Google CSE and not just the thumbnail.

damienmckenna’s picture

Title: Add a new meta tags: Google CSE tags » Add new meta tags: Google CSE tags

I speek good.

damienmckenna’s picture

Issue summary: View changes
damienmckenna’s picture

cebasqueira’s picture

Assigned: Unassigned » cebasqueira
cebasqueira’s picture

Assigned: cebasqueira » Unassigned
Status: Active » Needs review
StatusFileSize
new6.64 KB
damienmckenna’s picture

Status: Needs review » Needs work

Thanks 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.

cebasqueira’s picture

Assigned: Unassigned » cebasqueira

Hi @DamienMcKenna,

You are right. I make the changes proposed and post a new patch!

Thanks my friend!

cebasqueira’s picture

StatusFileSize
new6.97 KB
cebasqueira’s picture

Assigned: cebasqueira » Unassigned
Status: Needs work » Needs review
renatog’s picture

Assigned: Unassigned » renatog
renatog’s picture

StatusFileSize
new85.48 KB
new34.52 KB
new25.54 KB
new25.57 KB
new816 bytes

I applyed the patch and works fine for me.

Follow bellow the images:

1) CMS:
1) Img

2) Tags:
1) Img

P.S. I found just one litle adjust, one comment with name "Facebook" in file: metatag_google_cse.install:

1) Img

I fixed it:
1) Img

The patch with Fix follow in attachement.

The rest are ok.

Regards

renatog’s picture

Assigned: renatog » Unassigned
damienmckenna’s picture

Status: Needs review » Needs work

@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.

renatog’s picture

Status: Needs work » Needs review
StatusFileSize
new7.08 KB

It is true. You're right @DamienMcKenna. Excuse me.

The new patch is attached.

Thank you very much.

damienmckenna’s picture

Thanks. I'll take a look at the patch this week.

renatog’s picture

Great!

Thanks.

cebasqueira’s picture

Status: Needs review » Reviewed & tested by the community
damienmckenna’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new7.08 KB

This adds a README.txt file.

damienmckenna’s picture

Lets add this to the next release.

damienmckenna’s picture

Status: Needs review » Fixed

Committed. Thanks everyone!

damienmckenna’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Status: Fixed » Patch (to be ported)

Needs to be ported to D8.

renatog’s picture

Issue tags: +ciandt-contrib
damienmckenna’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new8.25 KB

Ported to D8.

Status: Needs review » Needs work

The last submitted patch, 25: metatag-n2532588-25.patch, failed testing.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new2.14 KB
new8.19 KB

Fixed the tests and plugins.

Status: Needs review » Needs work

The last submitted patch, 27: metatag-n2532588-27.patch, failed testing.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new8.2 KB
new534 bytes

Should fix the errors.

Status: Needs review » Needs work

The last submitted patch, 29: metatag-n2532588-29.patch, failed testing.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new8.2 KB
new575 bytes

Fixed the last error.

  • DamienMcKenna committed cc10a47 on 8.x-1.x
    Issue #2532588 by DamienMcKenna, renatog, cebasqueira: Added the Google...
damienmckenna’s picture

Status: Needs review » Fixed
Related issues: +#2829190: Plan for Metatag 8.x-1.0-beta12

Committed.

  • DamienMcKenna committed c075fd7 on 8.x-1.x
    Issue #2532588 by DamienMcKenna: Follow-up to fix the group assignment...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.