{"id":21277928,"url":"https://github.com/b13/newspage","last_synced_at":"2025-07-11T08:32:11.591Z","repository":{"id":37927686,"uuid":"357512957","full_name":"b13/newspage","owner":"b13","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-16T12:17:18.000Z","size":161,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-12T23:35:27.837Z","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":"gpl-2.0","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":"LICENSE","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}},"created_at":"2021-04-13T10:28:35.000Z","updated_at":"2024-08-29T07:19:18.000Z","dependencies_parsed_at":"2024-04-04T13:54:44.572Z","dependency_job_id":"76dbb87b-612e-478f-809e-a38697c4809b","html_url":"https://github.com/b13/newspage","commit_stats":{"total_commits":101,"total_committers":9,"mean_commits":"11.222222222222221","dds":0.5346534653465347,"last_synced_commit":"eba0cbcc6f8407ba8d87f4b2463bd8968fee854c"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fnewspage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fnewspage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fnewspage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fnewspage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b13","download_url":"https://codeload.github.com/b13/newspage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225708281,"owners_count":17511635,"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-21T10:08:17.247Z","updated_at":"2025-07-11T08:32:11.585Z","avatar_url":"https://github.com/b13.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Newspage\n\nThis extension provides a new doktype to be used for news that need to have flexible content, e.g. `tt_content` elements.\n\nThe new doktype that is registered is `doktype=24`.\n\n\n## Plugins\n\nThis extension registers 3 Plugins:\n- list\n    - this plugin shows a list of all news, optionally filtered by a value selected in the plugin, and optionally a frontend filter can be displayed\n- recent\n- teaser\n\n## Filters\n\nThis plugin comes with a couple of filters pre-shipped:\n- Category: both as a backend filter and front end filter\n- Categories: a front end filter that allows multiple categories to be selected\n    - this filter combines the selected categories using an **or** operation\n- Date: a front end filter that filters by year and month\n\n### Custom Filters\n\nIf you want to create your own filters, you can register them in your `ext_localconf.php` with the following call\n ```php\n\u003c?php\n\nB13\\Newspage\\Service\\FilterService::registerFilter(\n    'Filter Name',                                                              // this name will be used to call the filter internally\n    \\Vendor\\Ext\\Filter\\ExampleFilter::class,\n    'LLL:EXT:vendor/ext/Private/Language/newspage.xlf:filter.name',             // label to use for the plugin and frontend filter\n    'EXT:site_tecselect/Configuration/FlexForms/Newspage/Filter/Partner.xml'    // optional flexform definition for a backend filter\n);\n```\n\nYour class needs to implement the `B13\\Newspage\\Filter\\FilterInterface` and therefore implement the functions `getItems()` and `getQueryConstraint()`.\n\nThe function `getItems()` is used to get all possible values for the filter (both for the plugin settings, as well as the frontend filter).\n\n`getQueryContraint()` is used to add the filtering restriction to the query in the `list` plugin. This function can also return `null` if not all required values are set, or you want to filter everything in the front end using JavaScript.\n\nFor an example take a look at the two filters provided by this extension.\n\nIf you want to enable the backend plugin filter, you should provide a FlexForm definition that selects the data to filter by.\nThis file then needs to be passed as the fourth argument when registering the filter.\n\nThe created field is automatically passed as `settings.prefilters.name` with the name you registered it with.\n\nFor an example take a look at `EXT:newspage/Configuration/FlexForms/Filter/Category.xml`\n\n## Assets\n\nAt b13 we often use additional page types (doktype) for categories, overview pages, and tags. This extension adds a \nnumber of assets ready to use for your own custom doktypes:\n\n| Icon Identifier                        | Icon                                                                                            |\n|----------------------------------------|-------------------------------------------------------------------------------------------------|\n| apps-pagetree-folder-contains-newspage | ![Folder icon](Resources/Public/Icons/apps-pagetree-folder-contains-newspage.svg \"Folder icon\") |\n| apps-pagetree-newspage-page            | ![News Page icon](Resources/Public/Icons/apps-pagetree-newspage-page.svg \"News Page icon\")      |\n| apps-pagetree-newspage-article         | ![Article icon](Resources/Public/Icons/apps-pagetree-newspage-article.svg \"Article icon\")       |\n| apps-pagetree-newspage-category        | ![Category icon](Resources/Public/Icons/apps-pagetree-newspage-category.svg \"Category icon\")    |\n| apps-pagetree-newspage-overview        | ![Overview icon](Resources/Public/Icons/apps-pagetree-newspage-overview.svg \"Overview icon\")    |\n| apps-pagetree-newspage-tag             | ![Tag icon](Resources/Public/Icons/apps-pagetree-newspage-tag.svg \"Tag icon\")                   |\n| mimetypes-newspage-page                | ![Mimetype icon](Resources/Public/Icons/mimetypes-newspage-page.svg \"Mimetype icon\")            |\n\n## Miscellaneous\n\nThis extension provides a \"module\" type for folder type pages with its own icon, to make sorting news easier. \n\n## Extensions providing further functionality to newspage\n\n### b13/newspage-sorting\n\nAvailable at https://github.com/b13/newspage-sorting\n\nThis small extension provides a hook for the TYPO3 DataHandler and automatically sorts news pages into folders by years,\nmonths and days if they are created within a folder that has the module type \"newspage\" selected.\n\nThe folder structure is configurable to disable folders by month and day.\n\nDepending on the amount of news in your project, less folders could be more useful.\n\n### b13/newspage-edit-in-layout\n\nAvailable at https://github.com/b13/newspage-edit-in-layout\n\nThis extension add fields of a news directly in the page layout view and allows quick editing of the most important \nnews related data without having to enter formengine.\n\n## ToDos\n\n- `tx_newspage_domain_model_category` should be replaced by `sys_category` as there is no real value from creating a new model for a problem that is already solved within TYPO3\n- make recent plugin more filterable (use added filters from list ?)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fnewspage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb13%2Fnewspage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fnewspage/lists"}