{"id":30141858,"url":"https://github.com/b13/newspage-sorting","last_synced_at":"2025-08-11T05:19:43.932Z","repository":{"id":296406720,"uuid":"993241726","full_name":"b13/newspage-sorting","owner":"b13","description":"Adds automatic sorting of news pages inside a news module to the backend","archived":false,"fork":false,"pushed_at":"2025-07-03T17:45:56.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-09T22:44:01.468Z","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/b13.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-30T13:04:48.000Z","updated_at":"2025-07-03T17:45:32.000Z","dependencies_parsed_at":"2025-06-03T05:32:58.893Z","dependency_job_id":null,"html_url":"https://github.com/b13/newspage-sorting","commit_stats":null,"previous_names":["b13/newspage-sorting"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/b13/newspage-sorting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fnewspage-sorting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fnewspage-sorting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fnewspage-sorting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fnewspage-sorting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b13","download_url":"https://codeload.github.com/b13/newspage-sorting/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fnewspage-sorting/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269833310,"owners_count":24482423,"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-08-11T02:00:10.019Z","response_time":75,"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":[],"created_at":"2025-08-11T05:19:43.383Z","updated_at":"2025-08-11T05:19:43.920Z","avatar_url":"https://github.com/b13.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# newspage-sorting\nThis extension adds automatic sorting of news pages inside a \"newspage\" module to the backend.\n\nIn order for this to work, simply select the \"News\" module type of folder in the backend and create news inside of it.\n\nBy default, news pages are sorted into new folders by year, month and day. \n\n## Settings\n\nThe extension settings allow changing the sorting depth by disabling folders for each day, or month.\n\n### Further Customisation\n\nFor further customisation, you can override the hook in your project.  \nThe hook is registered with a fixed array key `tx_b13_newspage_sorting` so you can easily extend the hook and replace\nit with your own version:\n\n```php\n$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_newspage_sorting'] =\n    YourVendor\\YourExtension\\Hooks\\SortNewsOverride::class;\n```\n\nThis class contains the whole logic for the creation and sorting of the storage folders. \n\nThe most important function which you might want to override within this hook is `getCustomisableFieldsForFolder`,\nwhich allows changing the title and setting values for other fields, if required.\n\n```php\n    protected function getCustomisableFieldsForFolder(\\DateTime $date, FolderType $type): array\n    {\n        return [\n            'title' =\u003e $date-\u003eformat($type-\u003evalue),\n        ];\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fnewspage-sorting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb13%2Fnewspage-sorting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fnewspage-sorting/lists"}