{"id":20961747,"url":"https://github.com/heimrichhannot/contao-components","last_synced_at":"2025-03-22T03:13:24.894Z","repository":{"id":62515458,"uuid":"85704890","full_name":"heimrichhannot/contao-components","owner":"heimrichhannot","description":"Components is a contao extension that gives better control over javascript and css invocation within page layouts.","archived":false,"fork":false,"pushed_at":"2024-04-23T07:42:48.000Z","size":18,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-22T11:34:25.023Z","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":"2017-03-21T13:25:58.000Z","updated_at":"2024-04-23T07:42:51.000Z","dependencies_parsed_at":"2022-11-02T13:16:03.179Z","dependency_job_id":null,"html_url":"https://github.com/heimrichhannot/contao-components","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heimrichhannot","download_url":"https://codeload.github.com/heimrichhannot/contao-components/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244898458,"owners_count":20528341,"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-19T02:16:25.725Z","updated_at":"2025-03-22T03:13:24.872Z","avatar_url":"https://github.com/heimrichhannot.png","language":"PHP","readme":"# Components\n\nComponents is a contao extension that gives better control over javascript and css invocation within page layouts.\nIf you register your javascript and css files as component, it is possible to disable the component for each layout.\n\n## Technical instruction \n\nTo disable custom js/css components, register them within '$GLOBALS['TL_COMPONENTS']'.\n\nThe following example is taken from [heimrichhannot/contao-bootstrapper](https://packagist.org/packages/heimrichhannot/contao-bootstrapper).\n\n```\n$GLOBALS['TL_COMPONENTS'] = array\n(\n\t\t'bs.inputSlider' =\u003e array\n     \t(\n     \t\t'js'  =\u003e array\n     \t\t(\n     \t\t\t'files' =\u003e array\n     \t\t\t(\n     \t\t\t\t'system/modules/bootstrapper/assets/vendor/seiyria-bootstrap-slider/dist/bootstrap-slider' . (!$GLOBALS['TL_CONFIG']['debugMode'] ? '.min' : '') . '.js|static',\n     \t\t\t\tBOOTSTRAPPER_JS_COMPONENT_DIR . '/input-slider/bs.inputSlider' . (!$GLOBALS['TL_CONFIG']['debugMode'] ? '.min' : '') . '.js|static',\n     \t\t\t),\n     \t\t),\n     \t\t'css' =\u003e array\n     \t\t(\n     \t\t\t'files' =\u003e array\n     \t\t\t(\n     \t\t\t\t'system/modules/bootstrapper/assets/vendor/seiyria-bootstrap-slider/dist/css/bootstrap-slider.min.css|screen|static',\n     \t\t\t)\n     \t\t),\n     \t),\n     \t'bs.tooltip' =\u003e array\n     \t(\n     \t\t'js'  =\u003e array\n     \t\t(\n     \t\t\t'files' =\u003e array\n     \t\t\t(\n     \t\t\t\tBOOTSTRAPPER_JS_COMPONENT_DIR . '/tooltip/bs.tooltip' . (!$GLOBALS['TL_CONFIG']['debugMode'] ? '.min' : '') . '.js|static',\n     \t\t\t),\n     \t\t)\n     \t),\n     \t'modernizr'         =\u003e array\n     \t(\n     \t\t'js' =\u003e array\n     \t\t(\n     \t\t\t'files' =\u003e array\n     \t\t\t(\n     \t\t\t\t'system/modules/bootstrapper/assets/vendor/modernizr.min.js|static',\n     \t\t\t),\n     \t\t\t'before'  =\u003e 0, // invoke always before jquery of the given key\n     \t\t\t//'after'  =\u003e 'bs.core', // invoke always after bs.core\n     \t\t),\n     \t),\n);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheimrichhannot%2Fcontao-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-components/lists"}