{"id":19664595,"url":"https://github.com/sourcebroker/singleview","last_synced_at":"2025-08-12T00:32:53.504Z","repository":{"id":27716101,"uuid":"115010338","full_name":"sourcebroker/singleview","owner":"sourcebroker","description":"TYPO3 extension singleview. Displays single view on different page than list view and still keep urls user and SEO friendly.","archived":false,"fork":false,"pushed_at":"2024-07-11T12:32:40.000Z","size":56,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-28T21:45:15.874Z","etag":null,"topics":["realurl","seo","singleview","typo3","typo3-cms-extension","typo3-extension"],"latest_commit_sha":null,"homepage":"","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/sourcebroker.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2017-12-21T13:45:44.000Z","updated_at":"2024-07-11T12:32:48.000Z","dependencies_parsed_at":"2025-04-28T21:38:47.697Z","dependency_job_id":"0341ac7d-af64-4b45-98cc-a2158eb56922","html_url":"https://github.com/sourcebroker/singleview","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/sourcebroker/singleview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fsingleview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fsingleview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fsingleview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fsingleview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcebroker","download_url":"https://codeload.github.com/sourcebroker/singleview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcebroker%2Fsingleview/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269980793,"owners_count":24507270,"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":["realurl","seo","singleview","typo3","typo3-cms-extension","typo3-extension"],"created_at":"2024-11-11T16:18:18.061Z","updated_at":"2025-08-12T00:32:53.473Z","avatar_url":"https://github.com/sourcebroker.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"TYPO3 Extension ``singleview``\n#############################\n\n  .. image:: https://poser.pugx.org/sourcebroker/singleview/v/stable\n    :target: https://packagist.org/packages/sourcebroker/singleview\n\n  .. image:: https://poser.pugx.org/sourcebroker/singleview/license\n    :target: https://packagist.org/packages/sourcebroker/singleview\n\n.. contents:: :local:\n\n\nWhat does it do?\n****************\n\nThis extension allows to **display single view on different page than list view** and still keep urls user and SEO friendly.\n\nLook at example below for better understanding.\n\nLets take following list view url:\n\n::\n\n  https://www.example.com/list/\n\nTYPO3 default is that when you put single view on different page then there is no easy way to remove it\nfrom slugified url. You will get something like below (single view is on separate page named \"detail\"):\n\n::\n\n  https://www.example.com/list/detail/title-of-single-item/\n\nIf you will use ``ext:singleview`` then you can put single view on different page than list view but the slugified\nurl will still look nice like below - so no ``/detail/`` part.\n\n::\n\n  https://www.example.com/list/title-of-single-item/\n\n\nInstallation\n************\n\nUse composer:\n\n::\n\n  composer require sourcebroker/singleview\n\nUsage\n*****\n\nEach configuration of the ext:singleview settings has to be registered in your ext_localconf.php file using\n``\\SourceBroker\\Singleview\\Service\\SingleViewService::registerConfig()`` static method as in example below (for ext:news)\n\n::\n\n    \u003c?php\n\n    \\SourceBroker\\Singleview\\Service\\SingleViewService::registerConfig(\n        1,\n        2,\n        function() {\n            $newsParams = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::_GET('tx_news_pi1');\n            return !empty($newsParams['news']);\n        },\n        ['backend_layout'],\n    );\n\nParameters of registerConfig() method:\n\n1) First param is PID of the list view page.\n\n2) Second param is PID of the single view page.\n\n3) Third param is closure which returns boolean (or boolean value as a condition) which needs to be met to show\n   single page on list view page. Closure is good here because at ext_localconf.php level the url/slug is not decoded\n   yet so the value of ``\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::_GET('tx_news_pi1')`` is empty. But at the place\n   the closure is executed the ``\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::_GET('tx_news_pi1')`` will return good value.\n\n4) Fourth param is optional and its array of strings with names of the fields which will be copied from single page\n   to list page. If you use backend_layouts for managing your layouts then probably you should put there ['backend_layout']\n\n\n**IMPORTANT!**\n\nSingle view links should point to the same page uid as list view.\n\n\nTechnical background\n********************\n\nThe idea behind is to use TYPO3 build in feature \"Show content from pid\" which you can find in page properties. In this\nextension value for \"Show content from pid\" field is set dynamically based on $_GET parameter. When TYPO3 renders page\nwith list view then ext:singleview checks if $_GET parameter has single view request. If this is true then it sets\n\"content_from_pid\" field with value of single view page uid. This way single view page with its content and layout\nis shown on list view page.\n\nTo be sure that TYPO3 will not use one cache for list view and single view a \"content_from_pid\" is added to hashBase.\nYou can deactivate this behaviour by setting:\n``$GLOBALS['TYPO3_CONF_VARS']['EXT']['EXTCONF']['singleview']['hashBaseCustomization']['enabled'] = false;``\n\nChangelog\n*********\n\nSee https://github.com/sourcebroker/singleview/blob/master/CHANGELOG.rst\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcebroker%2Fsingleview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcebroker%2Fsingleview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcebroker%2Fsingleview/lists"}