Register | Login
Tuesday, May 22, 2012
  Search
 Discussion Forums at Locopon's Minimize
 
Forum / ForosForum / ForosModules/ModulosModules/ModulosDSLocalizatorDSLocalizatorset display to flags in ascx file?set display to flags in ascx file?
Previous Previous
 
Next Next
New Post
 1/11/2007 4:44 AM
 
otra pregunta, how can i set the locale selector token to display flags only to choose the language in my ascx file? obviously i am not using xml files, just ascx.. a line of code would be great, what i have now: gracias!
New Post
 1/11/2007 4:45 AM
 
the code did not show: dnn:DSLOCALESELECTOR runat=server id=dnnDSLOCALESELECTOR
New Post
 1/11/2007 5:46 PM
 

angryuser wrote
the code did not show: dnn:DSLOCALESELECTOR runat=server id=dnnDSLOCALESELECTOR

Just add each setting you want from your XML file as a control property

dnn:DSLOCALESELECTOR runat=server id=dnnDSLOCALESELECTOR myproperty="value"

 

New Post
 1/12/2007 7:51 AM
 
so what would the syntax be to set display to flags only? i guess i have to modify the "LinkTemplate" however i am not sure on how to do it.. any clue? Thanks!
New Post
 4/24/2007 11:25 AM
 

maybe I'm just to stupid..
Problem: changing DSLOCALESELECTOR inclusion in my skin.ascx to:

<dnn:DSLOCALESELECTOR runat=server id=dnnDSLOCALESELECTOR DisplayControl="Links" LinksSeparator="&nbsp;|&nbsp;" LinkTemplate="<a href=[URL]>[TwoLetterISO]</a>" />

continuous showing up the Selector as ComboBox.. -> the HTML output is:

<select name="dnn:dnnDSLOCALESELECTOR:lstAvailableLanguages" onchange=" setTimeout('__doPostBack(\'dnn$dnnDSLOCALESELECTOR$lstAvailableLanguages\',\'\')', 0)" language="javascript" id="dnn_dnnDSLOCALESELECTOR_lstAvailableLanguages" class="DSLocaleSelectorPA-DDLSelector">
 <option selected="selected" value="de-CH">Deutsch (Schweiz)</option>
 <option value="fr-CH">Fran&#231;ais (Suisse)</option>
</select>

What I expected:
I supposed adding DisplayControl="Links" as the only custom attribute (to omit formating errors) should already change the display behaviour.. the module unsing default property values.

<dnn:DSLOCALESELECTOR runat=server id=dnnDSLOCALESELECTOR DisplayControl="Links" /> -> same result.

Including the DSLocaleSelectorPA as a Module and configuring through the "Locale Selector options Menu" shows it as List as expected. -> HTML output:

<span id="dnn_ctr1254_DSLocaleSelectorPA_lblLinks">Français (Suisse)Italiano (Svizzera)</span>

I use DNN4.4.1 / Delisoft.DSLocalizator.DNN3.01.00.23-PA

Any hint would be very much appreciated!
Thanks in advance, Markus

Previous Previous
 
Next Next
Forum / ForosForum / ForosModules/ModulosModules/ModulosDSLocalizatorDSLocalizatorset display to flags in ascx file?set display to flags in ascx file?