tqExpert Help


You use the listOfLang tqTag for display of the list of languages in which the Website or Web page is available.

listOfLang - Syntax

<tqtag name="list0type="listOfLangdelimiter="|htmlObject="a | span | option" [showAvatar] [showText] [showCurrent] >

ListOfLang - Parameters

Parameter Name Type Mandatory Strict | Transitional Case Sensitive Description
type Text + S + must be listOfLang
name Text + S + should be unique tqtag name in the template. no spaces/commas/single quote/double quotes allowed
title Alpha Numeric + S - The title of the tqtag. This title will be presented only at the back-end system.  no spaces/commas/single quote/double quotes allowed
delimiter Alpha Numeric  - S + the system will add this delimiter at the end of each language except last one (e.g. delimiter="&nbsp|&nbsp")
htmlObject Text + S + HTML object to use. Allowed values:
1. a - the system will use <a> tag.
2. span - the system will use <span> and <a> tags
3. option - the system will generate <select> and <option> tags
maxItems Number - S   The max number of languages to display in a page
showAvatar   - T + Add language avatar
showCurrent   - T + Will show the current language as well.
showText   - T + Add language name

listOfLang - Local Variables

irrelevant for this tqtag

listOfLang - Examples

Example 1 - listOfLang tqtag with lang avatars
<tqtag name="list1type="listOfLanghtmlObject="ashowAvatar ></tqtag>

Example 2 - listOfLang tqtag with lang names only
<tqtag name="list2type="listOfLanghtmlObject="ashowText ></tqtag>

Example 3 - listOfLang tqtag with delimiter between the langs, in this example the delimiter will be the pipe sign (|)
<tqtag name="list3type="listOfLangdelimiter="|htmlObject="ashowText ></tqtag>

Example 4 - listOfLang tqtag that hide the current lang in the list of langs retrieved
<tqtag name="list4type="listOfLanghtmlObject="ashowText showCurrent ></tqtag>

Example 5 - listOfLang tqtag advanced example will all features
<tqtag name="listAdvtype="listOfLangdelimiter="|htmlObject="ashowAvatar showText showCurrent ></tqtag>

listOfLang - tqOptions

There are no tqoptions available for this tqtag.

listOfLang - Templates

The templates below implement this tqTag. After you click a link, use your browser commands to view the page source.

User Notes

  Add Note

Topic: listOfLang