-
-
Notifications
You must be signed in to change notification settings - Fork 213
Improvements for title tag, keywords and implementation of Open Graph tags +canonical #8787
Comments
In layout settings you can make any setting you want. You can change the default behavior by your own.
I don't understand, why we need two positions to handle keywords. I think one position is enough.
You can use hofff/contao-opengraph. When we would add OpenGraph tags to the core, we also have to add other things, like Twitter Cards, too.
You can use christianbarkowsky/rel-canonical to provide canonical tag. |
Of course it is possible to manually change the default behavoir, but the current behavior isn't user friendly, nor very useful. Is there any argument against improving this by default?
Okay, than this position should be on site structure level.
We disagree on this. Twitter Cards is the optimization for one specific Social Media provider. OpenGraph is used by all services (e.g. WhatsApp). Every web project should use og tags, no matter whether the project's goal. Your extension is great, but please re-think if it could be extended and integrated into the core.
Same as above. A lot of content managers don't even know, what a canoncial is. Why shouldn't Contao provide such tags automatically off the go? Contao always said: "We follow open web standards". OG and Canonical tags are open web standards. |
Definitely not.
|
OpenGraph is not an open web standard IMO. Canonical tags are standard AFAIK, but how should Contao know which URL it should put into the canonical tag? |
I think, it should be like the extension christianbarkowsky/rel-canonical make it. |
Good arguments, agreed! |
It is licensed under the OWFa (which is also preferred by Mozilla) and used by nearly every popular web service which allows URL sharing. Why isn't it? |
The OWFa grants you that you can implement the specification without having to fear patents. This is unrelated to whether something is a web standard or not. But even if it was a web standard, I don’t think we should implement all meta tags that some URL sharing service wants to see. This use case should be handled by an extension, so that everyone can choose which meta tags they want to support.
There you have to select for every single page which page should be used as the How |
Each of the top 500 websites uses |
This is just not true.
Google recommends Schema.org microdata not Open Graph.
The social media platform would just fallback to the
This is the only one that could make sense to add to the core I think. It should then be used for schema.org and Open Graph. But it’s not that easy, where would you set the image size that should be used for this image? Every reader module would have to be extended to set the “page image”. |
For The original image will be used - however, it would probably make sense to have an image size setting (per website root). |
Sorry, you are right. Google was using Open Graph and had it in their G+ documentation. This is not the case anymore. It has been replaced by Schema.org microdata and is now in place for nearly all google services. Thanks for the update on this.
This is the most important property. I also think, that it should also be used for schema.org and Open Graph. @fritzmg approch seems to be legit. |
I don’t think automatically collecting the images of the page makes sense because the social media platforms already do that themselves.
I think that’s the right way to do it. Reader modules should set the image as well similar to how the page title is handled.
The layout settings may be a better place for this setting. |
Agreed, may be @qzminski added this, because you used to be able to select which image you want to use in your share post (a long time ago...), if multiple images were found by Facebook (either via og:image or otherwise). But nowadays it does not make sense anymore. |
So we agree on the OP idea of placement in the BO?
And in addition the defined og:image from root level of site structure, will be used as fallback for sub pages, if no individual og:image is set? |
As discussed in Mumble on October 5th, we could add a "page image" in the site structure, which is then used as |
Hm, I dislike the semantics. In most cases I had to use
in the same Contao Installation - where the page image would be used for a large header image for example and the social image for the share image. They always had to be different. But I guess in future Contao Installation it would be "Page Image" and "Header Image" then ;) (where the latter comes from an extension). |
You can have multiple |
I'd like to get back to the title optimizations topic. @frontendschlampe argument, that it can be changed in the layout settings, is not very user friendly. Maybe a checkbox "Do not automatically use page name as page title" already helps? In addition there could be a selection "composition of page title" for each root page to select out of the functionalities above. Any more opinions? |
meta kewords can be removed. it has been officially known since 2009 that these are ignored: https://www.youtube.com/watch?time_continue=5&v=jK7IPbnmvVU |
@bekanntmacher that applies for Google but not other search engines like Baidu. |
yuneec.cn does not use keywords |
@bekanntmacher |
ok. I didn't know baidu optimization was going to be supported by contao. |
Well, the keywords meta tag is part of the HTML specification. |
but nobody needs it except china (and probably not for long) |
The Contao search indexer also makes use of it. |
ok, I see. I ask myself why but that's another question... |
It would be great if there is a checkbox. "Override complete title with my custom title" At the moment I use the following workaround: fe_page_default.html5
|
@fenepedia |
I agree with @fenepedia . In almost all our websites we override the default @bekanntmacher see the code. We want the index page to have a different We usually use something like this: global $objPage;
$this->title = $objPage->alias == 'index' ? '{{page::rootPageTitle}}' : $this->title;
$this->extend('fe_page'); |
Yes, I understand that but in which case or why do you want to overwrite the title? |
See the code ;). In my example the start page of the website would show
instead of
In @fenepedia 's example it would show
instead of
|
Ja, ich kann den Code lesen... du beantwortest meine Frage nicht: in welcher Anwendung brauchst du das? |
Weil man vielleicht für die wohl wichtigste Seite einer Website "NewCo" in den SERPs haben möchte und nicht "Start page - NewCo". Jetzt klar? |
Das ist aber ein Spezialwunsch welcher wie oben beschrieben gelöst werden kann. Ich glaube nicht, dass dies viele brauchen. Ich wüsste jetzt auch keine Anwendung wo es wirklich Sinn macht nur den Brand als Title zu zeigen. |
Das weiß ich nicht, ich für meinen Teil mache das jedenfalls auch so.
Ein prominentes Beispiel wäre z. B. Apple. Wenn Du in der Google-Suche nach Es soll mitunter auch schon vorgekommen sein, dass bei entsprechend langem Seitentitel in der Startseite der eigentliche Unternehmensname (bzw. Name der Website) irgendwo ganz hinten in den Ellipsen verschwunden ist und somit in den SERPs gar nicht mehr sichtbar war. |
It is best practice to place root title only on start pages. This was the main intention of the OP. |
Would be nice if someone has a similar elegant snippet that does not rely on alias=='index' |
Was mit site: angezeigt wird, ist nicht relevant, denn was in den SERP's angezeigt wird das weicht häufig von site:-Ergebnis ab. Vor allem dann, wenn der Title nicht relevant zum Inhalt ist oder wenn der Brand weggelassen wird. Dann hängt ihn Google am Schluss automatisch an. Auch wenn er vorne ist, stellt ihn Google meist nach hinten. Also: den root-title kannst du immer ans Ende stellen, auch bei der Startseite. Für das Ranking ist das völlig egal. |
Usually the website root title will be the comany's name for example. The default title in the page layout is
However, this behavior is problematic for the start page. Most of our customers do not want
They want to introduce their company on the start page and thus choose
Which is superfluous of course. Instead it should just be
See https://www.apple.com/ See https://www.google.at/ See http://www.spacex.com/ etc. |
@fritzmg Thanks for making it clearer with your examples. |
Ich kann euch nur abraten, das zu tun, was ihr oben wollt. Dazu kann ich abschliessend einfach noch folgendes empfehlen:
|
That's not up to you to decide 😉 . But you are right, it does not make sense for every brand. May be the |
i think the topics in this ticket are important, but imho the ticket is too big. maybe it would be useful, if we create new tickets for each separate topic:
also these issue should be created in contao/core-bundle |
An addition to the OpenGraph topic: There is an extension available for Contao 4, adding optional fields in the page options (also Twitter cards optional/separate): https://github.com/numero2/contao-opengraph3 - maybe this is useful in some cases... There you can also select different images for OG and Twitter. |
This issue aims to be a placeholder & idea generator for improving Contao's overall SEO configurability.
We are looking forward to your feedback!
Title tag improvements
Contao's current behavior for title tags, makes it impossible to "remove" a site-specific title tag. This means: Right now a one-pager or home page always starts with "site title" or "page name", followed by - "site title (root)". This solution is unfeasible.
There are several possible solutions (all of them can be combined):
a) Checkbox "no root title for this page" below page title configuration
b) Automatically check, if page title is identical with "root title" -> if true, only show root title w/o "-"
c) Optional system setting: Don't use page name as title, when page title is empty
Keyword optimizations ("Suchbegriffe")Right now the Keywords are maintained for each article. This might be practical in case Contao is used like a blog. In cases where Contao is used for a website, which is being published in the APAC area (where keywords are being heavily used from search engines), it is more easy to handle keywords for each page.
Solution:
Add an additional Keyword input field in the meta tags section for each page and combine them automatically with the article keywords
site structure -> edit -> meta data -> keywords
Open Graph implementation
Right now it is not possible to manage and maintain og-tags off the go in Contao.
E.g. Open Graph image tags are used by most of the social media services and can have a huge impact on the first impression.
A possible solution could look like this:
Each page will get additional input fields for manual og tag configuration (site structure -> edit -> meta data)
-- og:image (select picture from file manager)
-- og:title-- og:description-- og:url-- og:type-- og:image (only if empty. Use og:image from root site. og:image for root site should be mandatory.)
-- og:title (only if empty. Should use same logic as for page title.)-- og:description (only if empty. Should use page description.)-- og:localeCanonical
It should be possible to define, if the content of a page is original or a copy. Google rewards pages with self-canonical tags.
AutomaticallyOptional generate self-canonical for each pageNote
We would combine the features mentioned above with our refactored version of i18nl10n extension for Contao 4.4
The text was updated successfully, but these errors were encountered: