<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
 <generator>http://textpattern.com/</generator>
 <title>Textpattern Tips – Use of new tag if_variable to replace chh_if_data</title>
 <description>Use of new tag if_variable to replace chh_if_data - comments</description>
 <link>https://textpattern.tips/use-of-new-tag-if_variable-to-replace-chh_if_data</link>
 <atom:link href="https://textpattern.tips/use-of-new-tag-if_variable-to-replace-chh_if_data?f=comment-feed" rel="self" type="application/rss+xml" />
 <pubDate>Thu, 26 Mar 09 16:21:19 +0000</pubDate>

 <item>
     <title>Comment on Use of new tag if_variable to replace chh_if_data by Markus Merz | Hamburg St. Georg</title>
     <link><a href="https://textpattern.tips/use-of-new-tag-if_variable-to-replace-chh_if_data#c000438" id="c000438">1</a></link>
     <guid><a href="https://textpattern.tips/use-of-new-tag-if_variable-to-replace-chh_if_data#c000438" id="c000438">1</a></guid>
     <pubDate>Mon, 16 Mar 09 14:32:46 +0000</pubDate>
     <description><![CDATA[<p>For better understanding I would reduce the code to the skeleton functions or add simple comments in the code:</p>
<ol>
<li>set variable
<ul>
<li>In this case calling the output of a <span class="caps">TXP</span> tag by using single quotes</li>
</ul>
</li>
<li>use variable in an empty/filled situation
<ul>
<li><code>value=""</code> = empty</li>
</ul>
</li>
</ol>
<p>In this example also the usage of <code>name="if_anouncements"</code> is disorienting.</p>
<blockquote>Instead, we can use this code, placed early in your page (before you need to display the results):</blockquote>
<p>Don&#8217;t use proverbs!</p>
<p>Instead, with Textpattern &gt;4.0.7 it is possible to set a variable first with <code>&lt;txp:variable name="variable" value="value" /&gt;</code>. After setting the variable a second step using a <code>&lt;txp:if_variable &#8230;&gt;</code> container makes it possible to create different output like in every other <span class="caps">TXP</span> <code>&lt;txp:if_&#8230;&gt;</code> condition.</p>]]></description>
     <content:encoded><![CDATA[<p>For better understanding I would reduce the code to the skeleton functions or add simple comments in the code:</p>
<ol>
<li>set variable
<ul>
<li>In this case calling the output of a <span class="caps">TXP</span> tag by using single quotes</li>
</ul>
</li>
<li>use variable in an empty/filled situation
<ul>
<li><code>value=""</code> = empty</li>
</ul>
</li>
</ol>
<p>In this example also the usage of <code>name="if_anouncements"</code> is disorienting.</p>
<blockquote>Instead, we can use this code, placed early in your page (before you need to display the results):</blockquote>
<p>Don&#8217;t use proverbs!</p>
<p>Instead, with Textpattern &gt;4.0.7 it is possible to set a variable first with <code>&lt;txp:variable name="variable" value="value" /&gt;</code>. After setting the variable a second step using a <code>&lt;txp:if_variable &#8230;&gt;</code> container makes it possible to create different output like in every other <span class="caps">TXP</span> <code>&lt;txp:if_&#8230;&gt;</code> condition.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://sankt-georg.info/">Markus Merz | Hamburg St. Georg</a></dc:creator>
 
</item>
<item>
     <title>Comment on Use of new tag if_variable to replace chh_if_data by Luca Sabato | nope</title>
     <link><a href="https://textpattern.tips/use-of-new-tag-if_variable-to-replace-chh_if_data#c000447" id="c000447">1</a></link>
     <guid><a href="https://textpattern.tips/use-of-new-tag-if_variable-to-replace-chh_if_data#c000447" id="c000447">1</a></guid>
     <pubDate>Thu, 26 Mar 09 16:21:19 +0000</pubDate>
     <description><![CDATA[<p><span class="caps">IMHO</span>&#8230; the <code>if_variable</code> tag is more different to the plugin and requires an additional step to work. I hope that in the next release – 4.0.9 – the team add a new tag <code>if_data</code> to replace the useful plugin :)</p>]]></description>
     <content:encoded><![CDATA[<p><span class="caps">IMHO</span>&#8230; the <code>if_variable</code> tag is more different to the plugin and requires an additional step to work. I hope that in the next release – 4.0.9 – the team add a new tag <code>if_data</code> to replace the useful plugin :)</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://sabatia.it">Luca Sabato | nope</a></dc:creator>
 
</item>

</channel>
</rss>