Opened 6 years ago

#2208 new enhancement

Mediadir: The default language should be the first wysiwyg field

Reported by: kramer Owned by: comvation
Priority: normal Milestone: Contrexx 4.0 SP1
Component: MediaDir Version: 3.2
Severity: normal Keywords:
Cc:

Description

This is better for the users experience.

This code should be added in wysiwyg.class.php in mediadir around line 109:

                    //Put the default language to the first place always
                    $intLangId = $_LANGID;
                    $arrLang = $this->arrFrontendLanguages[$_LANGID];
                    $strInputfield .=  new \Cx\Core\Wysiwyg\Wysiwyg($this->moduleName.'Inputfield['.$intId.']['.$intLangId.']', $arrValue[$intLangId]).'&nbsp;'.$arrLang['name'].'<br />';
                    
                    foreach ($this->arrFrontendLanguages as $key => $arrLang) {
                        $intLangId = $arrLang['id'];
                        if ($intLangId != $_LANGID) {
                            $strInputfield .=  new \Cx\Core\Wysiwyg\Wysiwyg($this->moduleName.'Inputfield['.$intId.']['.$intLangId.']', $arrValue[$intLangId]).'&nbsp;'.$arrLang['name'].'<br />';


                        }
                    }

Change History (0)

Note: See TracTickets for help on using tickets.