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

Feldnamen verschwinden, wenn noch keine Übersetzung angelegt ist #199

Open
Samson1964 opened this issue Mar 11, 2016 · 3 comments
Open
Labels

Comments

@Samson1964
Copy link

Im columnPos-Modus werden die Feldnamen der untereinander positionierten Elemente einer Zeile nicht mehr angezeigt. Hat man eine Übersetzung angelegt, sind die (jetzt übersetzten) Namen auch wieder da.

@zonky2
Copy link
Collaborator

zonky2 commented Oct 6, 2017

@Samson1964 kannst Du das DCA posten?

@zonky2 zonky2 added the Question label Oct 6, 2017
@Samson1964
Copy link
Author

Samson1964 commented Mar 1, 2018

<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');

/**
 * Contao Open Source CMS
 *
 * Copyright (C) 2005-2013 Leo Feyer
 *
 * @package   fen
 * @author    Frank Hoppe
 * @license   GNU/LGPL
 * @copyright Frank Hoppe 2013
 */

/**
 * Palettes
 */
$GLOBALS['TL_DCA']['tl_content']['palettes']['interview'] = '{type_legend},type,headline;{interview_legend},interview;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop';

/**
 * Fields
 */
$GLOBALS['TL_DCA']['tl_content']['fields']['interview'] = array
(
	'label'					=> &$GLOBALS['TL_LANG']['tl_content']['interview'],
	'exclude' 				=> true,
	'inputType' 			=> 'multiColumnWizard',
	'eval' 					=> array
	(
		'buttonPos' 		=> 'top',
		'buttons'			=> array
		(
			//'copy' 			=> true, 
			//'delete' 		=> true,
			//'up' 			=> true,
			//'down'			=> true
		),
		'columnFields' 		=> array
		(
			'published' => array
			(
				'label'                 => &$GLOBALS['TL_LANG']['tl_content']['interview_published'],
				'exclude'               => true,
				'inputType'             => 'checkbox',
				'eval'                  => array
				(	
					'style'             => 'width: 20px',
					'valign'            => 'top'
				)
			),
			'question' => array
			(
				'label'                 => &$GLOBALS['TL_LANG']['tl_content']['interview_question'],
				'exclude'               => true,
				'inputType'             => 'textarea',
				'eval'                  => array
				(
					'rte'               =>'tinyMCE',
					'style'             => 'width: 450px;',
					'columnPos'         => '1'
				)
			),
			'answer' => array
			(
				'label'                 => &$GLOBALS['TL_LANG']['tl_content']['interview_answer'],
				'exclude'               => true,
				'inputType'             => 'textarea',
				'eval'                  => array
				(
					'rte'               =>'tinyMCE',
					'style'             => 'width: 450px',
					'columnPos'         => '1'
				)
			),
		)
	),
	'sql'                   => "blob NULL"
);

Nimmt man 'columnPos' => '1' raus, stehen die Felder nebeneinander und auch die Label sind wieder da.

@zonky2
Copy link
Collaborator

zonky2 commented Mar 1, 2018

ggf. zwei language-Files noch dazu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants