[TYPO3] language menu in drop-down box

rupali.ffm at googlemail.com rupali.ffm at googlemail.com
Fri Sep 12 11:19:19 CEST 2008


yes, i tried..works good...but it hides the language from drop-down if its
corresponding page translation doesn't exist. but we want that the language
options must be seen and in case the language translation doesn't exist , it
shud throw an error 404/301 which we further want to redirect.
oooofff!
any idea for displaying the language in drop-down even though the
translation doesn't exist.
here is my TS for sr_language_menu:

## language menu konfigurieren
plugin.tx_srlanguagemenu_pi1 {
useSysLanguageTitle = 0
defaultLanguageISOCode = EN
LanguageISOCode = EN
plugin.tx_srlanguagemenu_pi1{
#Hiermit kann die wraps um die Links aendern/leeren
link.NO.stdWrap = <p>|</p>
_CSS_DEFAULT_STYLE (
   .tx-srlanguagemenu-pi1 p { font-family: Verdana, sans-serif; font-size:
.8em; line-height:100%; color: #35006d; margin-top: 8px; padding: 0;
text-indent: 0; }
   .tx-srlanguagemenu-pi1 img { margin: 0 5px; padding: 0; border-style:
none; }
   .tx-srlanguagemenu-pi1 .CUR { float: left; font-size: .8em; }
   .tx-srlanguagemenu-pi1 .CUR a { background-color: transparent; color:
#35006d; text-decoration: none; font-weight: bold; }
   .tx-srlanguagemenu-pi1 .CUR a:focus, .tx-srlanguagemenu-pi1 .CUR a:hover,
.tx-srlanguagemenu-pi1 .CUR a:active { color:#333333; }
   .tx-srlanguagemenu-pi1 .NO { float: left; font-size: .8em; }
   .tx-srlanguagemenu-pi1 .NO a { background-color:transparent; color:
#35006d; text-decoration:none; font-weight:bold; }
   .tx-srlanguagemenu-pi1 .NO a:focus, .tx-srlanguagemenu-pi1 .NO a:hover,
.tx-srlanguagemenu-pi1 .NO a:active { color:#333333; }
   .tx-srlanguagemenu-pi1 .INACT { float: left; font-size: .8em; }
   .tx-srlanguagemenu-pi1 .INACT a { background-color:transparent; color:
#35006d; text-decoration: none; font-weight: normal; }
   .tx-srlanguagemenu-pi1 .INACT a:focus, .tx-srlanguagemenu-pi1 .INACT
a:hover, .tx-srlanguagemenu-pi1 .INACT a:active { color: #333333; }
   .tx-srlanguagemenu-pi1 .SPC {  float: left; font-family: Verdana,
sans-serif; font-size: .8em; line-height: 100%; color: #35006d; }
   .tx-srlanguagemenu-pi1 fieldset { }
   .tx-srlanguagemenu-pi1 fieldset legend {display: none;}
   .tx-srlanguagemenu-pi1 fieldset label { display: none; }
   .tx-srlanguagemenu-pi1 fieldset select { font-size: .8em; font-family:
Verdana, sans-serif; background-color: #35006d; color: white; font-weight:
bold; }
   .tx-srlanguagemenu-pi1 fieldset option.tx-srlanguagemenu-pi1-option-0 { }
  )

}
# Hier liegt das selbst angepasste Template-File
#file.templateFile = fileadmin/templates/sprachwahl.html
#
defaultLayout = 1
links.stdWrap.split.wrap >
_CSS_DEFAULT_STYLE >
languagesUidsList = 0,2
}
sprachwahl.languageMenu < plugin.tx_srlanguagemenu_pi1
lib.sprache_oben =< sprachwahl.languageMenu


On Thu, Sep 11, 2008 at 6:04 PM, Xavier Perseguers <typo3 at perseguers.ch>wrote:

> Hello,
>
> > trying to create a language menu in drop-down box with two language
> > options-english and german
> >
> > following is the code I have tried, but it always shows the root page in
> > English or german. Pls Help
>
> Did you already try extension sr_language_menu?
>
> --
> Xavier Perseguers
> http://xavier.perseguers.ch/en/tutorials/typo3.html
>  _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list