Project

General

Profile

Actions

Feature #60522

closed

Sorting of custom records in List Module

Added by christian rauch almost 10 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2014-07-24
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
Needs Decision

Description

If I add custom records to the page module with $TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables'] sorting is not possible.

the makeOrdinaryList function makes a call to $this->fwd_rwd_nav() but I dont get the Logic behind it, as it always return an array with two elements (0=>1, 1=>0)

        while ($row = $this->getDatabase()->sql_fetch_assoc($result)) {
            BackendUtility::workspaceOL($table, $row);
            if (is_array($row)) {
                *list($flag, $code) = $this->fwd_rwd_nav();
                $out .= $code;*
                if ($flag) {
                    $params = '&edit[' . $table . '][' . $row['uid'] . ']=edit';
                    $Nrow = array();
                    // Setting icons links
                    if ($icon) {
                        $Nrow['__cmds__'] = $this->getIcon($table, $row);
                    }
                    // Get values:
                    $Nrow = $this->dataFields($this->fieldArray, $table, $row, $Nrow);
                    // Attach edit icon
                    if ($this->doEdit) {
                        $Nrow['__editIconLink__'] = '<a href="#" onclick="' . htmlspecialchars(
                                BackendUtility::editOnClick($params, $this->backPath))
                            . '" title="' . $this->getLanguageService()->getLL('edit', TRUE) . '">'
                            . IconUtility::getSpriteIcon('actions-document-open') . '</a>';
                    } else {
                        $Nrow['__editIconLink__'] = $this->noEditIcon();
                    }
                    $out .= $this->addelement(1, '', $Nrow, 'class="db_list_normal"');
                }
                $this->eCounter++;
            }
        }

This is the only thing that prevents me from disabling the list module entirely in my use cases. I think it would be a great addition to typo3 because most editors are somehow confused when i explain the difference between the list and the page module to them.

I tried to implement it myself, but I failed because I don't understand enough of the typo3 core

Actions #1

Updated by christian rauch almost 10 years ago

sorry about the stars in the code example... wanted to make it bold but of course this doesn't work in a pre section

Actions #2

Updated by Susanne Moog over 8 years ago

  • Sprint Focus set to PRC
Actions #3

Updated by Riccardo De Contardi over 8 years ago

  • Category set to Backend User Interface
Actions #4

Updated by Christian Kuhn about 7 years ago

  • Status changed from New to Rejected

rejecting:

no further info for a long time, the issue is sort-of unclear, and i'm totally unsure on what is actually meant.

if you think we should re-discuss this issue, please open a new one.

Actions #5

Updated by Benni Mack about 4 years ago

  • Sprint Focus changed from PRC to Needs Decision
Actions #6

Updated by christian rauch about 4 years ago

Oh, this was a long time ago :-)

It was an idea for the record listing in the page module. I still don't like (explaining) the concept of the separated page and list module, but this would be an epic change. For now i help my editors with only showing the (for the list module) relevant Tables and hiding everything else with Tsconfig hideTables

Record listing does not exist anymore anyway
https://docs.typo3.org/c/typo3/cms-core/10.2/en-us/Changelog/8.4/Deprecation-77987-DeprecatedRecordListingInPageModule.html

so this can be closed

Actions

Also available in: Atom PDF