Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Page properties for Open Graph, Twitter and meta data and canonical URL #159

Closed
rolandschaub opened this issue Nov 13, 2018 · 5 comments
Assignees
Milestone

Comments

@rolandschaub
Copy link
Member

Make the following meta information (Open Graph, Twitter, canonical URL) editable as page properties:

<meta property="og:title" content="[ TITLE ]" />
<meta property="og:type" content="article" />
<meta property="og:description" content="[ ARTICLE DESCRIPTION ]" />
<meta property="og:image" content="[ LISTING IMAGE ]" />
<meta property="og:url" content="[ CANONICAL URL OF ITEM ]" />

<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="[ TITLE ]">
<meta name="twitter:description" content="[ ARTICLE DESCRIPTION ]">
<meta name="twitter:image" content="[ LISTING IMAGE ]">
<meta name="twitter:url" content="[ CANONICAL URL OF ITEM ]">

<link rel="canonical" href="[ CANONICAL URL OF ITEM ]">

Summary of the page properties required:

  • og-title
  • og-description
  • og-image
  • canonical url

If no values are defined, the following default values should be used:

  • og-title: page title
  • og-description: meta description
  • og-image: none
  • canonical url: the page url
@boehsermoe
Copy link
Member

Instead to use no image if none og-image is specified isnt it better to use the a fallback? Maybe a global fallback defined in the cms config or the first image element on the page? Or both?

New page properties require a migration.

@nadar
Copy link
Member

nadar commented Nov 18, 2018

or the first image element on the page

I like that idea, but this would be very hard to do. Also i assume this is what the crawlers would do anyhow, if there is no image - they will pick one.

@rolandschaub It makes sense to upload the image direct from page settings, therefore we need a new migration.

@nadar nadar self-assigned this Nov 18, 2018
@nadar nadar added this to the 1.1.0 milestone Nov 18, 2018
@nadar
Copy link
Member

nadar commented Nov 18, 2018

What would be the value of canonical url? How can we ensure its the canonical url?

@rolandschaub
Copy link
Member Author

Regarding og-image: I think it's okay to configure a global fallback. If undefined, the tag should not be output so that Facebook and others can decide themselves what image to choose (if any are included in the page's content). I would not use the first image in the content as default, as FB et al. might make a better guess which image is relevant for the page.

Regarding canonical url: The default value would be the current URL. The website editor (or a module like an online shop) has to explicitly set another URL if the current URL is not the canonical one. I might be wrong, but this makes sense to me.

@TheMaaarc
Copy link
Member

The website editor (or a module like an online shop) has to explicitly set another URL if the current URL is not the canonical one. I might be wrong, but this makes sense to me.

@rolandschaub is right. Google recommends using self-referencing canonical tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants