<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : IF/ELSE Statements TPL</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 18 Apr 2026 14:42:32 -0000</pubDate>

		<item>
			<title>Iceman</title>
			<description><![CDATA[<p>Thanks for your help. :)</p>
]]></description>
			<pubDate>Cum, 29 Ağu 2014 16:31:41 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7770&d=0#post39695]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums?m=posts&amp;q=7770&amp;d=1#39655">#39655</a> <strong>Iceman: </strong>

<p><span style="line-height:1.6em;">Does cotonti support If statements within if statements?</span></p>
</blockquote>

<p>Yes, it does. You can use:</p>

<pre class="brush:xml;">
&lt;!-- IF {VALUE1} --&gt;
Value1 is set
  &lt;!-- IF {ADDITION_VAR} --&gt;
  Addition var is SET also
  &lt;!-- ELSE --&gt;
  Addition var is NOT set 
  &lt;!-- ENDIF --&gt;
&lt;!-- ENDIF --&gt;
</pre>

<p> </p>

<p> </p>
]]></description>
			<pubDate>Pzt, 11 Ağu 2014 00:33:46 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7770&d=0#post39674]]></link>
		</item>
		<item>
			<title>Roffun</title>
			<description><![CDATA[<pre class="brush:as3;">
checking for expansion can be so
 &lt;!-- IF {ATTACH_ROW_EXT} == 'webm' --&gt;
</pre>

<p> </p>
]]></description>
			<pubDate>Per, 07 Ağu 2014 14:25:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7770&d=0#post39663]]></link>
		</item>
		<item>
			<title>Iceman</title>
			<description><![CDATA[<p>Hello, I am wondering if there is support for elif or elseif statements in the CoTemplate code?</p>

<p>I have modified the attach2 plugin to suit my needs, execpt I can not get this portion of my code to work. Does cotonti support If statements within if statements?</p>

<p>"</p>

<pre class="brush:xml;">
&lt;!-- IF {ATTACH_ROW_WEBM} --&gt;
        &lt;source src="https://www.cotonti.com/{ATTACH_ROW_PATH}" type='video/webm' /&gt;
        &lt;!-- ENDIF --&gt;</pre>

<p>"</p>

<p>My tpl:</p>

<pre class="brush:xml;">
&lt;!-- BEGIN: MAIN --&gt;
&lt;link href="https://www.cotonti.com/plugins/attach2/lib/lightzap/css/lightzap.css" rel="stylesheet" type="text/css" /&gt;
&lt;link href="https://www.cotonti.com/plugins/attach2/lib/lightzap/css/lz-theme.css" rel="stylesheet" type="text/css" /&gt;
&lt;script src="https://www.cotonti.com/plugins/attach2/lib/lightzap/js/lightzap.js"&gt;&lt;/script&gt;
&lt;style type="text/css"&gt;
.att-gallery { }
.att-gallery .att-item { margin:10px 20px 0 0; height:120px; width:120px; display:block; float:left; }
.att-gallery .att-item img { padding:1px; background:#666; border:2px solid #666; display:block; }
.att-gallery .att-item img:hover {border:2px solid #fff; }
&lt;/style&gt;

&lt;div class="att-gallery clearfix"&gt;	
	&lt;!-- BEGIN: ATTACH_ROW --&gt;
    	&lt;!-- IF {ATTACH_ROW_VID} --&gt;        
		     &lt;video id="video_player" class="video-js vjs-default-skin" controls preload="none" width="560" height="315"  
      poster="themes/nemesis/img/poster.png"    
      data-setup="{}"&gt;
   		&lt;source src="https://www.cotonti.com/{ATTACH_ROW_PATH}" type='video/mp4' /&gt;
        
    	&lt;!-- IF {ATTACH_ROW_WEBM} --&gt;
        &lt;source src="https://www.cotonti.com/{ATTACH_ROW_PATH}" type='video/webm' /&gt;
        &lt;!-- ENDIF --&gt;
    &lt;p class="vjs-no-js"&gt;To view this video please enable JavaScript, and consider upgrading to a web browser that &lt;a href="http://videojs.com/html5-video-support/" target="_blank"&gt;supports HTML5 video&lt;/a&gt;&lt;/p&gt;
  &lt;/video&gt;
		&lt;!-- ELSE --&gt;   
       	
            &lt;!-- IF {ATTACH_ROW_IMG} --&gt;
            
                &lt;div class="att-item"&gt;
                &lt;a href="https://www.cotonti.com/{ATTACH_ROW_URL}" data-lightzap="attgal" title="{ATTACH_ROW_TITLE}" &gt;&lt;img src="https://www.cotonti.com/{ATTACH_ROW_ID|att_thumb($this,100,100,'crop')}" alt="{ATTACH_ROW_FILENAME}" /&gt;&lt;/a&gt;
                &lt;/div&gt;
            
            &lt;!-- ELSE --&gt;
    &lt;table class="cells"&gt;     
        &lt;tr&gt;   
            &lt;td class="centerall width25"&gt;
                &lt;img src="https://www.cotonti.com/{ATTACH_ROW_EXT|att_icon($this,48)}" alt="{ATTACH_ROW_EXT}" width="48" height="48" /&gt;
            &lt;/td&gt;
            &lt;td class="width50"&gt;
                &lt;p&gt;&lt;a href="https://www.cotonti.com/{ATTACH_ROW_URL}" title="{ATTACH_ROW_TITLE}"&gt;{ATTACH_ROW_FILENAME}&lt;/a&gt;&lt;/p&gt;
                &lt;p class="small"&gt;{ATTACH_ROW_SIZE} ({PHP.L.att_downloads}: {ATTACH_ROW_COUNT})&lt;/p&gt;
            &lt;/td&gt;
            &lt;!-- ENDIF --&gt;
        &lt;!-- ENDIF --&gt;
	&lt;/tr&gt;
&lt;!-- END: ATTACH_ROW --&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;!-- END: MAIN --&gt;</pre>

<p> </p>
]]></description>
			<pubDate>Pzt, 04 Ağu 2014 17:26:01 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7770&d=0#post39655]]></link>
		</item>
	</channel>
</rss>