Skip to content

Commit

Permalink
[BUGFIX] Remove dragitem in languages mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Danilo Bürger committed Apr 21, 2014
1 parent 451259a commit b7dc508
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Classes/ViewHelpers/Be/ContentAreaViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ public function render() {

$fluxColumnId = 'column-' . $area . '-' . $row['uid'] . '-' . $row['pid'] . '-FLUX';

$modSettings = $GLOBALS['SOBE']->MOD_SETTINGS;
if (2 === intval($modSettings['function'])) {
$dblist->tt_contentConfig['single'] = 0;
$dblist->tt_contentConfig['languageMode'] = 1;
$dblist->tt_contentConfig['languageCols'] = array(0 => $GLOBALS['LANG']->getLL('m_default'));
$dblist->tt_contentConfig['languageColsPointer'] = $modSettings['language'];
}

$this->templateVariableContainer->add('records', $records);
$this->templateVariableContainer->add('dblist', $dblist);
$this->templateVariableContainer->add('fluxColumnId', $fluxColumnId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,13 @@
</div>
<f:for each="{records}" as="record">
<div class="t3-page-ce" id="element-tt_content-{record.uid}">
<div class="t3-page-ce-dragitem">
<f:if condition="{dblist.tt_contentConfig.languageMode} == 0">
<div class="t3-page-ce-dragitem">
</f:if>
<flux:be.contentElement row="{record}" dblist="{dblist}" />
</div>
<f:if condition="{dblist.tt_contentConfig.languageMode} == 0">
</div>
</f:if>
<div class="t3-page-ce-dropzone" id="colpos-{record.colPos}-page-{row.pid}-{row.uid}-after-{record.uid}" style="height: 16px;">
<div class="t3-page-ce-wrapper-new-ce">
<flux:be.link.content.new after="{record.uid}" row="{row}" area="{area.name}" />
Expand Down

0 comments on commit b7dc508

Please sign in to comment.