<?xml version="1.0" encoding="utf-8"?>
<KScriptSetting>
  <Name>TextContentObject</Name>
  <Description>The Kooboo Text Content item with multilingual support</Description>
  <Example>
    <![CDATA[
<script engine="kscript"> 
    var all = k.site.textContents.findAll("age>10");   
</script>

<div k-foreach="item all">
    <h2 k-content="item.title">Welcome!</h2>
    <p k-content="item.age">Welcome to Kooboo CMS</p> 
</div>
	]]>
  </Example>

  <Props>
    <Property>
      <Name>{fieldname}</Name>
      <Description>Read the content property value</Description>
      <Type>string</Type>
    </Property>

  </Props>
  <Methods>

    <Method>
      <Name>setCulture</Name>
      <Description>set to read content properties based on a different culture</Description>
      <Example>
        <![CDATA[
 <script engine="kscript"> 
    var item = k.site.textContents.find("age==12"); 
    item.setCulture("zh"); 
</script> 
	]]>

      </Example>
      <Params>
        <Param>
          <Name>culture</Name>
          <Description>The defined two letter culture key</Description>
          <Type>string</Type>
        </Param>
      </Params>
      <ReturnType>TextContentObject</ReturnType>
    </Method>



  </Methods>
</KScriptSetting>