{"id":20961869,"url":"https://github.com/heimrichhannot/contao-youtube","last_synced_at":"2026-04-21T08:02:36.701Z","repository":{"id":25528871,"uuid":"28961258","full_name":"heimrichhannot/contao-youtube","owner":"heimrichhannot","description":"Youtube Content Element, with responsive support, preview image, play button and many more.","archived":false,"fork":false,"pushed_at":"2019-10-29T08:56:16.000Z","size":349,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-12-27T17:48:40.224Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/heimrichhannot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-01-08T10:39:13.000Z","updated_at":"2019-10-29T08:56:11.000Z","dependencies_parsed_at":"2022-08-06T06:16:00.882Z","dependency_job_id":null,"html_url":"https://github.com/heimrichhannot/contao-youtube","commit_stats":null,"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"purl":"pkg:github/heimrichhannot/contao-youtube","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-youtube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-youtube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-youtube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-youtube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heimrichhannot","download_url":"https://codeload.github.com/heimrichhannot/contao-youtube/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-youtube/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32082780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-19T02:18:03.614Z","updated_at":"2026-04-21T08:02:36.669Z","avatar_url":"https://github.com/heimrichhannot.png","language":"PHP","readme":"# YouTube\n\nYouTube is a contao module to provide responsive youtube videos with preview images and better privacy control.\nIt provides support for content elements and news items.\n\n## Technical instruction\n\nYoutube videos can be added to news templates with ease. Just add the following code (for example: news_full.html5):\n\n```\n\u003c?php if ($this-\u003eaddYouTube): ?\u003e\n\t\u003c?= $this-\u003eyoutubeVideo; ?\u003e\n\u003c?php endif; ?\u003e\n```\n\nTo use preview images from youtube, you have to generate an API key (https://developers.google.com/youtube/v3/getting-started) and place it in the contao settings.\n\n## Features\n \n* Responsive youtube videos (requires jQuery)\n* Preview image for youtube videos\n    * If no custom image is given, the preview image will be loaded from youtube and saved under 'files/media/youtube/' \n* Privacy mode (requires jQuery)\n    * In privacy mode the video is displayed, after the user accepted a privacy advice within a modal prompt (requires bootstrap 3 modal window support)\n    * The user can mark his selection as permanent with a checkbox (state will be saved in a cookie) \n\n![alt privacy modal](./docs/img/privacy_modal.jpg)\n    \n    \n### Content elements\n\nName | Description\n---- | -----------\nContentYoutube | The default core youtube content element with additional features. \n\n### Fields\n\ntl_module:\n\nName | Description\n---- | -----------\nyoutube_template | Select a youtube template within your news module.\nautoplay | Start the video on page view, only for reader modules.\n\ntl_page:[root pages only]\n\nName | Description\n---- | -----------\nyoutube_template | Select a youtube template within your root page. \nyoutubePrivacy | Enable youtube privacy mode for all elements on pages within this root page. \nyoutubePrivacyTemplate | Select a youtube privacy template within your root page.\n\n### Hooks\n\nName | Arguments | Description\n---- | --------- | -----------\nparseArticles | $objTemplate, $arrItem, $objModule | Add youtube to news templates.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-youtube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheimrichhannot%2Fcontao-youtube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-youtube/lists"}