[TYPO3-english] Hide/disable Templavoila-DS fields for a certain be_group

jean-sebastien_gervais at ssss.gouv.qc.ca jean-sebastien_gervais at ssss.gouv.qc.ca
Thu Apr 18 19:22:03 CEST 2013


Hello Steffen, 

in TYPO3 4.5 and up, you can hide flexform fields by user tsconfig; here's 
an example I use to hide a few field in the extension dmf_galleria, that I 
can't disable otherwise in the Explicit Allow/Deny field lists 


#TCEFORM.tt_content.pi_flexform.[ext_key].[sheet_key].[field_key]

page.TCEFORM.tt_content.pi_flexform.dmf_galleria_pi1 {
 
  #hide field  onclicks.extends 
  onclicks{
    extends.disabled = 1
  }

  general {
    folder.disabled = 1
    links.disabled = 1 
    thumbs.disabled = 1
  }
 
 
}


Another option would be to copy the flexform definition, edit this copy, 
and have it loaded by the TCA   (localconf/ext_tables.php).  But that 
would mean that everyone, including admins, have access to the same fields 
for that extension.

ex.: $TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . 
'_pi1'] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($_EXTKEY . '_pi1', 
'FILE:EXT:examples/flexform_ds1.xml');

http://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Flex/#example-simple-flexform

Cheers!

Jean-Sébastien Gervais

typo3-english-bounces at lists.typo3.org a écrit sur 2013-04-18 11:36:12 :

> De : Steffen Müller <typo3 at t3node.com>
> A : typo3-english at lists.typo3.org
> Date : 2013-04-18 11:40
> Objet : [TYPO3-english] Hide/disable Templavoila-DS fields for a 
> certain be_group
> Envoyé par : typo3-english-bounces at lists.typo3.org
> 
> Hi,
> 
> is it possible to hide/disable Templavoila-DS fields for a certain 
be_group?
> 
> The website has a main template for the basic structure: Header, Main,
> Footer. The editors of the group "restricted" should only have access to
> Main section.
> 
> -- 
> cheers,
> Steffen
> 
> TYPO3 Blog: http://www.t3node.com/
> Twitter: @t3node - http://twitter.com/t3node
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list