Thanx jian its working fine.

On Thursday, March 27, 2014 8:24:29 AM UTC+5:30, Jian Huang wrote:
>
> Hi,
>
> please ensure the placeholder is defined.
>
> On Monday, March 24, 2014 2:35:47 PM UTC-4, [email protected] wrote:
>>
>> Hi Jian ,
>> Even for <%inf_current_language_variant%>
>> It is also going in else condition
>>
>>
>> On Monday, March 24, 2014 7:05:10 PM UTC+5:30, Jian Huang wrote:
>>>
>>> Typo?
>>>
>>> <%Context:inf_current_language_variant%>?
>>>
>>> Please use this inside rendertag instead
>>>
>>> <%inf_current_language_variant%>
>>>
>>> On Monday, March 24, 2014 7:51:29 AM UTC-4, [email protected] wrote:
>>>>
>>>> Hi Jian,
>>>> I tried
>>>>
>>>> <reddot:cms>
>>>>   <if>
>>>>         <query valuea="<%Context:inf_current_language_variant%>" 
>>>> operator="==" valueb="Str:ENU">  
>>>>      <htmltext>
>>>>     aaa <%inf_current_language_variant%>
>>>>       </htmltext>
>>>>     </query>
>>>>     <query type="else">
>>>>       <htmltext>
>>>> bbb  
>>>>
>>>> </htmltext>
>>>>     </query>
>>>>   </if>
>>>> </reddot:cms>
>>>>
>>>> it is always going to else condition and printing "bbb"
>>>>
>>>> Thanks and regards,
>>>> Amit
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Friday, March 21, 2014 6:48:53 PM UTC+5:30, Jian Huang wrote:
>>>>>
>>>>> Hi Amit,
>>>>>
>>>>> You can treat the label like a regular standard field.  Just make sure 
>>>>> to check the placeholder setting "do not show in form" and "not relevant 
>>>>> to 
>>>>> workflow".  Just enter the label text in the default value field.  Then 
>>>>> change language varian, edit the template, and edit the placeholder 
>>>>> setting 
>>>>> again, and you can set a different default value for that language 
>>>>> variant. 
>>>>>  This way, it is more out of box and let processing.
>>>>>
>>>>> However, if you prefer to use rendertag, instead of 
>>>>> using Context:CurrentLanguageVariant.Key, just use 
>>>>> <%inf_current_language_variant%>.
>>>>>
>>>>> Best,
>>>>>
>>>>> -Jian
>>>>>
>>>>> On Friday, March 21, 2014 12:54:45 AM UTC-4, [email protected] wrote:
>>>>>>
>>>>>> Hi Jian,
>>>>>> Thanks for the reply, Actually my requirement to create custom form 
>>>>>> where we take input based from different user but "Label" which is hard 
>>>>>> coded in template should change as per the language varient 
>>>>>> I tried this code
>>>>>> <if> 
>>>>>>  <query valuea="Context:CurrentLanguageVariant.Key" operator="==" 
>>>>>> valueb="Str:ENU"> 
>>>>>>                     <htmltext></htmltext> 
>>>>>>         </query> 
>>>>>>         <query type="else"> 
>>>>>>                     <htmltext></htmltext> 
>>>>>>         </query> 
>>>>>> </if> 
>>>>>>
>>>>>> but didnt work 
>>>>>>
>>>>>> Thanks & Regards,
>>>>>> Amit
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thursday, March 20, 2014 9:23:34 PM UTC+5:30, Jian Huang wrote:
>>>>>>>
>>>>>>> Hi Amit,
>>>>>>>
>>>>>>> I see that you are already using language variants.
>>>>>>>
>>>>>>> A placeholder inside a template can have different default values 
>>>>>>> depending on language variant, so there isn't a need for if and else.
>>>>>>>
>>>>>>> -jian
>>>>>>>
>>>>>>> On Thursday, March 20, 2014 6:03:27 AM UTC-4, [email protected]:
>>>>>>>>
>>>>>>>> Hi All,
>>>>>>>> I need to create a generic page template which will display message 
>>>>>>>> based on locale or language varient
>>>>>>>>
>>>>>>>> i.e. if i have selected the french the message "Enter Decription" 
>>>>>>>> should be in french and vice versa
>>>>>>>>
>>>>>>>> Can any help me out in implementing the any such if- else condition 
>>>>>>>> in page template 
>>>>>>>>
>>>>>>>> Thanks and regards,
>>>>>>>> Amit
>>>>>>>>
>>>>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to