{"id":19571770,"url":"https://github.com/loadsys/metadata","last_synced_at":"2025-06-22T00:03:34.928Z","repository":{"id":1488383,"uuid":"1736453","full_name":"loadsys/metadata","owner":"loadsys","description":"CakePHP Metadata Plugin - Unmaintained ","archived":false,"fork":false,"pushed_at":"2011-05-23T01:17:29.000Z","size":99,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-27T03:32:38.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loadsys.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-05-12T02:37:53.000Z","updated_at":"2022-06-05T00:30:18.000Z","dependencies_parsed_at":"2022-08-16T13:25:08.418Z","dependency_job_id":null,"html_url":"https://github.com/loadsys/metadata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/loadsys/metadata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsys%2Fmetadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsys%2Fmetadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsys%2Fmetadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsys%2Fmetadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loadsys","download_url":"https://codeload.github.com/loadsys/metadata/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsys%2Fmetadata/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261212278,"owners_count":23125576,"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":[],"created_at":"2024-11-11T06:19:58.913Z","updated_at":"2025-06-22T00:03:29.915Z","avatar_url":"https://github.com/loadsys.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Metadata Plugin\n\n##Description\n\nCakePHP plugin to maintain meta tags for an application. These meta tags can be applied at a global level and be applied to every request, and overwrites can be applied per controller or controller action.\n\n##Installation\n\nInstall the plugin\n\n\tcd app/plugins\n\tgit clone git://github.com/joeytrapp/metadata.git\n\t\nInclude the component\n\n\t// app/app_controller.php\n\tvar $components = array('Metadata.Metadata', /* All other components */);\n\t\nThe Metadata helper will get automatically included.\n\n##Usage\n\nTo apply all of your metadata in a single location, create a metadata.php file in app/config:\n\n\t// app/config/metadata.php\n\t$metadata = array(\n\t\t'_all' =\u003e array( // Global meta tags for all controllers\n\t\t\t'description' =\u003e 'This is the site wide global description tag'\n\t\t),\n\t\t'controller_name' =\u003e array(\n\t\t\t'_all' =\u003e array( // Global meta tags for all actions in controller\n\t\t\t\t'description' =\u003e 'This is the description used for all actions in controller_name. Overwrites the site global description'\n\t\t\t),\n\t\t\t'action' =\u003e array( // Specific meta tags for this action\n\t\t\t)\n\t\t),\n\t\t'pages' =\u003e array( // Pages controller meta tags\n\t\t\t'_all' =\u003e array( // Meta tags for all static pages\n\t\t\t\n\t\t\t),\n\t\t\t'home' =\u003e array( // If controller is pages, the last pass param is used (file name)\n\t\t\t\t'description' =\u003e array(\n\t\t\t\t\t'content' =\u003e 'Home page description',\n\t\t\t\t\t'charset' =\u003e 'UTF-8'\n\t\t\t\t)\n\t\t\t)\n\t\t)\n\t);\n\nTo apply metadata from within the controller, you can set a controller property called metadata\n\n\t// app/app_controller.php\n\tvar $metadata = array(\n\t\t'description' =\u003e 'Global description for this controller',\n\t\t'action' =\u003e array(\n\t\t\t'description' =\u003e 'Description for action only'\n\t\t)\n\t);\n\nMetadata can also be added from within a controller action with a component method\n\n\tfunction index() {\n\t\t// other controller stuff\n\t\n\t\t$this-\u003eMetadata-\u003emetadata('description', 'This is the description set from within the controller action');\n\t\n\t\t// other controller stuff\n\t}\n\nThen to load all of the meta tags that were set use the Metadata.Metadata helper\n\n\t// app/views/layouts/default.ctp\n\t\u003ctitle\u003e\n\t\t\u003c?php echo $this-\u003eMetadata-\u003emeta(); ?\u003e\n\t\u003c/title\u003e\n\t\nCan also add additional meta tags from the view with the same helper method\n\n\t\u003c?php echo $this-\u003eMetadata-\u003emeta('description', 'Description meta tag applied from view'); ?\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadsys%2Fmetadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floadsys%2Fmetadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadsys%2Fmetadata/lists"}