[TYPO3-asia] How to get the Selected Region Langugage into a .ts page

Visay Keo visay.keo at typo3.org
Mon Aug 18 09:18:08 CEST 2014


A quick workaround for that is to use condition by language.

On 07/27/2014 09:22 PM, Ramaraju Musku wrote:
> I am Using a form which is in a file named as search.ts, I have multple
> languages for multiple regions, when the users visiting the site
> according their specific language based pages need to show for that I
> need to get the Language which they are selected eithe from URL or from
> the code can any one please suggest me how to catch the selected
> language. The code is as follows:
> I need dynamic URL on form action.
>
> lib.misc.search >
> lib.misc.search = TEXT
> lib.misc.search {
>         typolink.parameter = {$const.navigation.main.shop}
>      typolink.returnLast = url
>         insertData = 1
>      //value =
> {LLL:EXT:bluestar-typo3_base/language/fe/search.xml:lib.misc.search.label}
>      value (                <form id="tx_indexedsearch" method="post"
> action="http://www.typo3.com/index.php?id=3&L=0">
>              <div class="row">
>                  <div class="large-12 columns">
>                      <div class="search-wrapper">
>                          <input type="text"
> class="tx-indexedsearch-searchbox-sword sword" value=""
> name="tx_indexedsearch[sword]">
>                          <button type="submit"
> class="search-box-submit"><img
> src="typo3conf/ext/bluestar-typo3_template/i/icons/search-lens.png"
> alt="Search"></button>
>                      </div>
>                  </div>
>              </div>
>          </form>
>      )
> }


More information about the TYPO3-asia mailing list