{"id":20816065,"url":"https://github.com/arillo/silverstripe-metatags","last_synced_at":"2025-05-07T12:40:35.257Z","repository":{"id":17938019,"uuid":"82938548","full_name":"arillo/silverstripe-metatags","owner":"arillo","description":"Better metatags for your SilverStripe Projects.","archived":false,"fork":false,"pushed_at":"2023-04-19T18:38:24.000Z","size":81,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-20T19:05:17.547Z","etag":null,"topics":["meta-tags","php","seo","silverstripe"],"latest_commit_sha":null,"homepage":"https://arillo.github.io/silverstripe-metatags/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arillo.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-23T15:03:33.000Z","updated_at":"2021-06-23T10:08:33.000Z","dependencies_parsed_at":"2024-11-17T21:28:32.611Z","dependency_job_id":"69754d7f-e567-446a-8770-45d3c5064454","html_url":"https://github.com/arillo/silverstripe-metatags","commit_stats":{"total_commits":23,"total_committers":6,"mean_commits":"3.8333333333333335","dds":0.6521739130434783,"last_synced_commit":"b45a01f9d8b642e0829e40c2c75d42f9aa8c700d"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-metatags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-metatags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-metatags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-metatags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arillo","download_url":"https://codeload.github.com/arillo/silverstripe-metatags/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252878881,"owners_count":21818665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["meta-tags","php","seo","silverstripe"],"created_at":"2024-11-17T21:27:52.869Z","updated_at":"2025-05-07T12:40:35.237Z","avatar_url":"https://github.com/arillo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arillo\\MetaTags\n\n[![Latest Stable Version](https://poser.pugx.org/arillo/silverstripe-metatags/v/stable?format=flat)](https://packagist.org/packages/arillo/silverstripe-metatags)\n\u0026nbsp;\n[![Total Downloads](https://poser.pugx.org/arillo/silverstripe-metatags/downloads?format=flat)](https://packagist.org/packages/arillo/silverstripe-metatags)\n\nBetter metatags for your SilverStripe Projects.\n\nThe module will add a `$MetaImage` to each page and a fallback `$MetaImage` to the `$SiteConfig` that will be used if no image is defined on a particular page (to avoid this behavior do not fill in the `$SiteConfig.MetaImage` in the CMS). It will automatically generate [OpenGraph](http://ogp.me/) and [Twitter](https://dev.twitter.com/cards/getting-started) meta tags based on pages `$MetaDescription`.\n\n### Requirements\n\nSilverStripe CMS ^4.0\n\nFor a SilverStripe 3.x compatible version of this module, please see the [1 branch, or 0.x release line](https://github.com/arillo/silverstripe-metatags/tree/1.x).\n\n## Usage\n\nInstall with composer:\n\n```bash\ncomposer require arillo/silverstripe-metatags\n```\n\nor clone the repo:\n\n```bash\ngit clone git@github.com:arillo/silverstripe-metatags.git\n```\n\nConfigure the extension:\n\n```yml\nArillo\\MetaTags\\MetaTagsExtension:\n  titles_by_pagetype:\n    Default: \u003c% if $MetaTitle %\u003e$MetaTitle\u003c% else %\u003e$Title\u003c% end_if %\u003e / $SiteConfig.Title # Define the default \u003ctitle\u003e tag pattern. (Defaults to $Title)\n    HomePage: \u003c% if $MetaTitle %\u003e$MetaTitle\u003c% else %\u003e$Title\u003c% end_if %\u003e                    # Exception for the HomePage page-type\n    ProductsPage: $Item.Title           # Pattern for a DataObject\n```\n\nInclude the template in your `\u003chead\u003e`:\n\n```html\n\u003chead\u003e\n  $MetaTagsX\n\u003c/head\u003e\n```\n\nBe sure **not** to include `$MetaTags` in your `\u003chead\u003e`, the module includes it in the default template. To customize the rendering of the metatags copy the template `MetaTagsX.ss` to your project theme.\n\nWhy the X? Because `$MetaTags` was taken by the SilverStripe default metatags =).\n\n### Recommended\n\nMove the `MetaDescription` field inside the Meta Tab:\n\n```php\n\u003c?php\nuse Arillo\\MetaTags\\MetaTagsExtension;\nclass Page extends SiteTree\n{\n    public function getCMSFields() {\n        // move meta fields\n        return MetaTagsExtension::prepare_cms_fields(parent::getCMSFields());\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farillo%2Fsilverstripe-metatags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farillo%2Fsilverstripe-metatags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farillo%2Fsilverstripe-metatags/lists"}