{"id":17236305,"url":"https://github.com/jaedb/iconfield","last_synced_at":"2026-03-15T23:03:01.573Z","repository":{"id":53072412,"uuid":"122398890","full_name":"jaedb/IconField","owner":"jaedb","description":"SilverStripe icon selection field","archived":false,"fork":false,"pushed_at":"2024-04-13T01:48:30.000Z","size":28,"stargazers_count":2,"open_issues_count":3,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T19:08:25.506Z","etag":null,"topics":["silverstripe","silverstripe-4","silverstripe-module"],"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/jaedb.png","metadata":{"files":{"readme":"README.md","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":"2018-02-21T21:56:33.000Z","updated_at":"2024-07-23T08:29:54.000Z","dependencies_parsed_at":"2022-08-21T14:10:12.646Z","dependency_job_id":null,"html_url":"https://github.com/jaedb/IconField","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaedb%2FIconField","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaedb%2FIconField/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaedb%2FIconField/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaedb%2FIconField/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaedb","download_url":"https://codeload.github.com/jaedb/IconField/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248810916,"owners_count":21165200,"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":["silverstripe","silverstripe-4","silverstripe-module"],"created_at":"2024-10-15T05:35:52.143Z","updated_at":"2026-03-15T23:03:01.468Z","avatar_url":"https://github.com/jaedb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\r\n\r\nSimplifies the use of icons in a way content authors can set icons without interfering with the asset library. Instead, the web developer provides the icon set which the end-user can use but not manipulate.\r\n\r\n![IconField](https://raw.githubusercontent.com/jaedb/IconField/master/screenshot.jpg)\r\n\r\n\r\n# Requirements\r\n\r\n* SilverStripe 4\r\n\r\n\r\n# Usage\r\n\r\n* Import the required classes:\r\n```\r\nuse Jaedb\\IconField\\Icon;\r\nuse Jaedb\\IconField\\IconField;\r\n```\r\n* Set your `$db` field to type `Icon` (eg `'PageIcon' =\u003e Icon::class`)\r\n* `IconField::create($name, $title, $iconFolder)`\r\n* `$name` is the database field as defined in your class\r\n* `$title` is the label for this field\r\n* `$iconFolder` (optional) defines the directory where your icons can be found. Defaults to `/site/icons`.\r\n* To change your default icon directory, see `_config/config.yml`.\r\n* Use your icon in templates as you would any other property (eg `$PageIcon`). If your icon is an SVG, the SVG image data will be injected into the template. To prevent this, you can call `$PageIcon.IMG` instead to enforce use of `\u003cimg\u003e` tags.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaedb%2Ficonfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaedb%2Ficonfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaedb%2Ficonfield/lists"}