Skip to content
Snippets Groups Projects
Commit 5efb0832 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Georg Ringer
Browse files

[FEATURE] Show path to record location in group elements

To ease the usage of `group` fields in the FormEngine like e.g. in the
"Insert records" content element, the record overview now shows the
path to the location where each assigned record is stored,
respectively.

Resolves: #100093
Releases: main
Change-Id: I1623b506727b46ccc86361e2c061c7e2c705a50f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78033


Reviewed-by: default avatarTorben Hansen <derhansen@gmail.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarTorben Hansen <derhansen@gmail.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 763c3155
Branches
Tags
No related merge requests found
......@@ -23,6 +23,7 @@ use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Type\Bitmask\Permission;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
......@@ -62,6 +63,8 @@ class RecordsOverview extends AbstractNode
$selectedItem['table'],
$selectedItem['uid']
);
$pathToContainingPage = BackendUtility::getRecordPath($selectedItem['row']['pid'], $this->getBackendUserAuthentication()->getPagePermsClause(Permission::PAGE_SHOW), 0);
$recordsOverviewHtml[] = '<tr>';
$recordsOverviewHtml[] = '<td class="col-icon">';
$recordsOverviewHtml[] = $linkedIcon;
......@@ -70,6 +73,7 @@ class RecordsOverview extends AbstractNode
$recordsOverviewHtml[] = $linkedTitle;
$recordsOverviewHtml[] = '<span class="text-muted">';
$recordsOverviewHtml[] = ' [' . $selectedItem['uid'] . ']';
$recordsOverviewHtml[] = ' ' . htmlspecialchars($pathToContainingPage);
$recordsOverviewHtml[] = '</span>';
$recordsOverviewHtml[] = '</td>';
$recordsOverviewHtml[] = '</tr>';
......
.. include:: /Includes.rst.txt
.. _feature-100093-1678091347:
=================================================================
Feature: #100093 - Show path to record location in group elements
=================================================================
See :issue:`100093`
Description
===========
To ease the usage of `group` fields in the FormEngine like e.g. in the
"Insert records" content element, the record overview now shows the path to the
location where each assigned record is stored, respectively.
Impact
======
Elements of type `group` now show the path to the page where any assigned record
is stored in.
.. index:: Backend, ext:backend
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment