{"id":13669915,"url":"https://github.com/wirelab/downloads-module","last_synced_at":"2025-04-27T09:31:03.000Z","repository":{"id":57081133,"uuid":"86795626","full_name":"wirelab/downloads-module","owner":"wirelab","description":"Module for managing downloads","archived":true,"fork":false,"pushed_at":"2021-02-10T15:08:29.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-03T09:06:56.963Z","etag":null,"topics":["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.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-31T08:19:42.000Z","updated_at":"2023-01-28T10:38:30.000Z","dependencies_parsed_at":"2022-08-24T14:42:28.058Z","dependency_job_id":null,"html_url":"https://github.com/wirelab/downloads-module","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wirelab%2Fdownloads-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wirelab%2Fdownloads-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wirelab%2Fdownloads-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wirelab%2Fdownloads-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wirelab","download_url":"https://codeload.github.com/wirelab/downloads-module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224066969,"owners_count":17250089,"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":["php","pyro","pyrocms","pyrocms-modules","pyrocms3"],"created_at":"2024-08-02T09:00:25.342Z","updated_at":"2024-11-11T07:30:58.291Z","avatar_url":"https://github.com/wirelab.png","language":"PHP","funding_links":[],"categories":["Modules"],"sub_categories":[],"readme":"# Downloads module\n## ⚠️ This repository has been deprecated ⚠️\nModule for managing downloads.\n\n## Installation\n```bash\n$ composer require wirelab/downloads-module\n$ php artisan addon:install wirelab.module.downloads\n```\n\n## Overwriting the default view\n1. `php artisan addon:publish downloads`\n2. Edit the `view` view in `resources/\u003csite name\u003e/addons/wirelab/downloads-module/views/download`\n\n## Adding fields to a download\n1. In the download module go to `fields` and make a new field\n2. In the `downloads` section click on `assignments` and assign the field\n\n## Adding downloads 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 downloads. 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 download in page.your_slug %}\n\tdownload.render()\n{% endfor %}\n```\nNot calling render will return the attributes of the download.\n```twig\n{% for download in page.your_slug %}\n\t{{ download.name }}\n\t{{ download.description }}\n{% endfor %}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwirelab%2Fdownloads-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwirelab%2Fdownloads-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwirelab%2Fdownloads-module/lists"}