frontend_editing icon indicating copy to clipboard operation
frontend_editing copied to clipboard

`customRecords` configuration still available?

Open cdaecke opened this issue 3 years ago • 1 comments

Is the customRecords configuration, which is documented here, still available, or is the documentation outdated?

When using the following configuration, the news record is saved on the page, where I am creating it.

config {
	tx_frontendediting {

		customRecords {
			tx_news_domain_model_news {
				pid = 6
			}
		}

	}
}

With the above configuration, I would expect, that the news record is stored on the page with uid = 6, regardless of the page, which I have selected at the moment of creating the record.

Tested with ext:frontend_editing v2.0.17

cdaecke avatar Aug 05 '22 14:08 cdaecke

Hi do you have the same issue if you upgrade v3 of the extension? @cdaecke

MattiasNilsson avatar Sep 01 '22 05:09 MattiasNilsson

@MattiasNilsson I tested now with a fresh system:

TYPO3: v11.5.15 ext:bootstrap_package: v12.0.5 ext:frontend_editing: v3.0.27

In this system customRecords are not working at all (not displaying in the right bar). Digging into this issue, I found out, that the $configuration holds an array with dots in the array keys, so the key customRecords is customRecords. which won't work: https://github.com/FriendsOfTYPO3/frontend_editing/blob/0cf96549ad3c10fb4debe379b58ee4e72423a6db/Classes/Hook/FrontendEditingInitializationHook.php#L502-L506

Bildschirmfoto 2022-09-05 um 07 29 46

cdaecke avatar Sep 05 '22 05:09 cdaecke

@MattiasNilsson ... and to answer you question: No, the configured pid is also not respected with ext:frontend_editing v3.

cdaecke avatar Sep 05 '22 06:09 cdaecke

@cdaecke A new version out that fixes the issue: https://github.com/FriendsOfTYPO3/frontend_editing/releases/tag/3.0.29

MattiasNilsson avatar Oct 19 '22 11:10 MattiasNilsson