{"id":33966004,"url":"https://github.com/wirelab-archive/locations-module","last_synced_at":"2025-12-12T23:01:36.111Z","repository":{"id":57081172,"uuid":"85556808","full_name":"Wirelab-archive/locations-module","owner":"Wirelab-archive","description":"Locations module for PyroCMS 3","archived":true,"fork":false,"pushed_at":"2021-02-10T15:10:26.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-30T17:25:31.255Z","etag":null,"topics":["locations","mit-license","php","pyro","pyrocms","pyrocms-modules","pyrocms3"],"latest_commit_sha":null,"homepage":null,"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/Wirelab-archive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-20T09:16:21.000Z","updated_at":"2025-07-11T20:03:08.000Z","dependencies_parsed_at":"2022-08-24T14:58:14.370Z","dependency_job_id":null,"html_url":"https://github.com/Wirelab-archive/locations-module","commit_stats":null,"previous_names":["wirelab/locations-module"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/Wirelab-archive/locations-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wirelab-archive%2Flocations-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wirelab-archive%2Flocations-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wirelab-archive%2Flocations-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wirelab-archive%2Flocations-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wirelab-archive","download_url":"https://codeload.github.com/Wirelab-archive/locations-module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wirelab-archive%2Flocations-module/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27694446,"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","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["locations","mit-license","php","pyro","pyrocms","pyrocms-modules","pyrocms3"],"created_at":"2025-12-12T23:01:16.726Z","updated_at":"2025-12-12T23:01:36.104Z","avatar_url":"https://github.com/Wirelab-archive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Locations module\n## ⚠️ This repository has been deprecated ⚠️\n\nLocations module for PyroCMS 3 with dynamic field.\n\n## Overwriting the default view\n### The prefered / project specific way\n1. `php artisan addon:publish locations`\n2. Edit the `show` view in `resources/\u003csite name\u003e/addons/wirelab/locations-module/views/location`\n\n### In a custom theme\nIn your theme's service provider add the following:\n```php\nprotected $overrides = [\n    'wirelab.module.locations::locations/view' =\u003e 'your view path here',\n];\n```\n\n## Adding fields to a location\n1. In the location module go to `fields` and make a new field\n2. In the `locations` section click on `assignments` and assign the field\n\n## Adding locations to a page\n1. Create a _multiple_ field in the pages module, assign it to Locations \u003e Locations\n2. Assign the field to a page type\n3. In the page type loop over `page.your_slug` and call `render()` on the locations. Or call `render()` on `page.your_slug` to have it to loop for you.\nExamples:\n```twig\npage.your_slug.render()\n```\n```twig\n{% for location in page.your_slug %}\n\tlocation.render()\n{% endfor %}\n```\nNot calling render will return the attributes of the location.\n```twig\n{% for location in page.your_slug %}\n\t{{ location.name }}\n\t{{ location.email }}\n{% endfor %}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwirelab-archive%2Flocations-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwirelab-archive%2Flocations-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwirelab-archive%2Flocations-module/lists"}