[TYPO3-german] Extension -> PageLanguage Overlay

Robert Wildling robertwildling at gmail.com
Mon Jun 18 11:26:31 CEST 2012


Kann hier wirklich niemand helfen?

> Hallo, Leute,
>
> Ich hab da eine ganz simple Selectbox, in der Seitentitel ausgewählt
> werden können (aus bestimmten Gründen ist es keine Menue-Lösung, sondern
> mit einer Ext).
>
> Das Problem, dass ich als Ext-Beginner (pi_base) leider nicht in den
> Griff bekomme, ist das mit der Mehrsprachigkeit bei
> page-table-Einträgen. Eine sys_language_uid gibt es ja nicht, sondern
> diese l18... Felder. Die Doku des Quelltextes durchblicke ich leider
> noch immer nicht und die Googlesuche hat mich bis jetzt noch nicht zu
> einem Tutorial geführt, dass ich gemeistert hätte. Deswegen bitte ich
> euch um Hilfe!
>
>
> Bin auf: TYPO3 4.6.9
> Schnippsel:
>
> $content = '<div class="teaser-headline">' . $thisHeader . '</div>';
> $content .= '<div id="SEARCHBOX-MINI">';
>
> // Generate the search form: 1st: categories
> $content .= '<form action="index.php" method="GET">';
> $content .= '<input type="hidden" name="id" value="' .
> $searchResultPagePid . '" />';
> $content .= '<select name="category" id="selectCatMini">';
> $content .= '<option value="0">' . $allmanufacturers . '</option>';
> $content .= '<option value="divider">--------------------------</option>';
>
> // Get first level of the categories
> $selectManufacturers =
> $GLOBALS['TYPO3_DB']->exec_SELECTquery('*',$categoryTable,'pid='.$categoryPid
> . ' AND doktype = 1 AND deleted="0" AND hidden="0" AND
> nav_hide="0"','','','');
> $numManufacturers =
> $GLOBALS['TYPO3_DB']->sql_num_rows($selectManufacturers);
>
> $i = 0;
> while ($res = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($selectManufacturers))
> {
> $content .= '<option value="' . $res['uid'] .'"';
> if((t3lib_div::_POST('category') != '') && (t3lib_div::_POST('category')
> != 'divider') && (t3lib_div::_POST('category') == $res['uid'])) {
> $content .= " selected='selected'";
> }
> $content .= '>' . $res['title'] . '</option>';
>
> // Get second level of the categories
> $sel =
> $GLOBALS['TYPO3_DB']->exec_SELECTquery('*',$categoryTable,'pid='.$res['uid'].'
> AND sys_language_uid=' . $GLOBALS['TSFE']->sys_language_uid,'','','');
>
> while ($res2 = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($sel)) {
> $content .= '<option value="' . $res2['uid'] . '"';
> if((t3lib_div::_POST('category') != '') && (t3lib_div::_POST('category')
> != 'divider') && (t3lib_div::_POST('category') == $res2['uid'])) {
> $content .= " selected='selected'";
> }
> $content .= '>- ' . $res2['title'] . '</option>';
> }
> $i++;
>
> if($i < $numManufacturers) {
> $content .= '<option value="divider">--------------------------</option>';
> }
> }
> $content .= '</select>';
>
>
>
>
>
> Wo und wie muss ich im folgenden Code die Sprache auslesen?
> Danke für eure Unterstützung!
>
> LG,Robert



More information about the TYPO3-german mailing list