Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set user permissions for columns #24

Open
minstyle opened this issue Feb 19, 2024 · 0 comments
Open

Set user permissions for columns #24

minstyle opened this issue Feb 19, 2024 · 0 comments

Comments

@minstyle
Copy link

Please add the functionality with 'exclude' => true to have in Contao the possibility to define user permissions for columns.

https://github.com/madeyourday/contao-rocksolid-columns/blob/f374419df7d366cc98c18808650d464d6f411eda/src/Resources/contao/dca/tl_content.php

$GLOBALS['TL_DCA']['tl_content']['fields']['rs_columns_large'] = array(
	'exclude' => true,
	'inputType' => 'text',
	'label' => &$GLOBALS['TL_LANG']['tl_content']['rs_columns_large'],
	'eval' => array(
		'tl_class' => 'rs_columns_w33',
	),
	'sql' => "varchar(255) NOT NULL default ''",
);
$GLOBALS['TL_DCA']['tl_content']['fields']['rs_columns_medium'] = array(
	'exclude' => true,
	'inputType' => 'text',
	'label' => &$GLOBALS['TL_LANG']['tl_content']['rs_columns_medium'],
	'eval' => array(
		'tl_class' => 'rs_columns_w33',
	),
	'sql' => "varchar(255) NOT NULL default ''",
);
$GLOBALS['TL_DCA']['tl_content']['fields']['rs_columns_small'] = array(
	'exclude' => true,
	'inputType' => 'text',
	'label' => &$GLOBALS['TL_LANG']['tl_content']['rs_columns_small'],
	'eval' => array(
		'tl_class' => 'rs_columns_w33',
	),
	'sql' => "varchar(255) NOT NULL default ''",
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant