Project

General

Profile

Actions

Feature #90629

closed

Possibility of displaying a table directly in single view in module "list"

Added by Robert von Hackwitz over 4 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Start date:
2020-03-03
Due date:
% Done:

0%

Estimated time:
PHP Version:
7.2
Tags:
Complexity:
easy
Sprint Focus:

Description

It would be useful to have the possibility to configure through mod.web_list that a table in a system folder will be displayed directly in "single view" mode (eg: in Page TSConfig something like

mod.web_list {
  displaySingleTable = tx_news_domain_model_news
}

Perhaps modifying method init() in sysext/recordlist/Classes/Contoller/RecordlistController.php
from

protected function init()
    {

        $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
        $backendUser = $this->getBackendUserAuthentication();
        $this->perms_clause = $backendUser->getPagePermsClause(Permission::PAGE_SHOW);
        // Get session data
        $sessionData = $backendUser->getSessionData(__CLASS__);
        $this->search_field = !empty($sessionData['search_field']) ? $sessionData['search_field'] : '';
        // GPvars:
        $this->id = (int)GeneralUtility::_GP('id');
        $this->pointer = GeneralUtility::_GP('pointer');
        // @deprecated since TYPO3 v9, will be removed in TYPO3 v10.0.
        $this->imagemode = GeneralUtility::_GP('imagemode');
        $this->table = GeneralUtility::_GP('table');
        $this->search_field = GeneralUtility::_GP('search_field');
        $this->search_levels = (int)GeneralUtility::_GP('search_levels');
        $this->showLimit = GeneralUtility::_GP('showLimit');
        $this->returnUrl = GeneralUtility::sanitizeLocalUrl(GeneralUtility::_GP('returnUrl'));
        $this->clear_cache = GeneralUtility::_GP('clear_cache');
        $this->cmd = GeneralUtility::_GP('cmd');
        $this->cmd_table = GeneralUtility::_GP('cmd_table');
        $sessionData['search_field'] = $this->search_field;
        // Initialize menu
        $this->menuConfig();

        // Store session data
        $backendUser->setAndSaveSessionData(self::class, $sessionData);
        $this->getPageRenderer()->addInlineLanguageLabelFile('EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf');
    }

to

protected function init()
    {

        $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
        $backendUser = $this->getBackendUserAuthentication();
        $this->perms_clause = $backendUser->getPagePermsClause(Permission::PAGE_SHOW);
        // Initialize menu
        $this->menuConfig();
        // Get session data
        $sessionData = $backendUser->getSessionData(__CLASS__);
        $this->search_field = !empty($sessionData['search_field']) ? $sessionData['search_field'] : '';
        // GPvars:
        $this->id = (int)GeneralUtility::_GP('id');
        $this->pointer = GeneralUtility::_GP('pointer');
        // @deprecated since TYPO3 v9, will be removed in TYPO3 v10.0.
        $this->imagemode = GeneralUtility::_GP('imagemode');
        $this->table =  GeneralUtility::_GP('table') ?? $this->modTSconfig['properties']['displaySingleTable'];
        $this->search_field = GeneralUtility::_GP('search_field');
        $this->search_levels = (int)GeneralUtility::_GP('search_levels');
        $this->showLimit = GeneralUtility::_GP('showLimit');
        $this->returnUrl = GeneralUtility::sanitizeLocalUrl(GeneralUtility::_GP('returnUrl'));
        $this->clear_cache = GeneralUtility::_GP('clear_cache');
        $this->cmd = GeneralUtility::_GP('cmd');
        $this->cmd_table = GeneralUtility::_GP('cmd_table');
        $sessionData['search_field'] = $this->search_field;

        // Store session data
        $backendUser->setAndSaveSessionData(self::class, $sessionData);
        $this->getPageRenderer()->addInlineLanguageLabelFile('EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf');
    }

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Story #82206: list module enhancements/bugfixesIn Progress2005-07-21

Actions
Actions #1

Updated by Georg Ringer over 4 years ago

  • Status changed from New to Accepted
Actions #2

Updated by Daniel Windloff over 4 years ago

  • Related to Story #82206: list module enhancements/bugfixes added
Actions #3

Updated by Benni Mack almost 3 years ago

  • Status changed from Accepted to Needs Feedback

Hey Robert,

does this mean that the other tables should not be shown on this page? Like "at all"?

Actions #4

Updated by Robert von Hackwitz almost 3 years ago

Hi Benni,
no I don't think "at all" but a kind of default behavior whereby clicking on the page shows the table in "single view" but the user then has the possibility to eventually collapse the table showing the others

Actions #5

Updated by Christian Kuhn almost 3 years ago

Hey. I'm unsure on this: This could easily add quite a bit of confusion for editors since 'multi table' and 'single table' views look quite the same and people may wonder why their other data is not shown. I thus think we should rather not touch this: tables in list view can be collapsed to make the interface less disturbing already, and maybe we should rather want to keep the switch to single table view for editors by explicitly clicking on it.

Actions #6

Updated by Christian Kuhn 11 months ago

  • Status changed from Needs Feedback to Closed

Hey. I hope it's ok to close here for now. It will be hard to find consensus on this one.

Actions

Also available in: Atom PDF