<?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 – Simple page titles</title>
 <description>Simple page titles - comments</description>
 <link>https://textpattern.tips/simple-page-titles</link>
 <atom:link href="https://textpattern.tips/simple-page-titles?f=comment-feed" rel="self" type="application/rss+xml" />
 <pubDate>Sat, 11 Apr 15 13:30:21 +0000</pubDate>

 <item>
     <title>Comment on Simple page titles by Andy Carter</title>
     <link><a href="https://textpattern.tips/simple-page-titles#c001253" id="c001253">1</a></link>
     <guid><a href="https://textpattern.tips/simple-page-titles#c001253" id="c001253">1</a></guid>
     <pubDate>Fri, 10 Apr 15 10:54:40 +0000</pubDate>
     <description><![CDATA[<p>Perhaps this could be simplified a bit by using <code>&lt;txp:arc_meta_title/&gt;</code> (<a href="https://andy-carter.com/txp/arc_meta" rel="nofollow noopener" title="https://andy-carter.com/txp/arc_meta">andy-carter.com/txp/arc_meta</a>). It should significantly reduce the number of conditionals used here; although you'd still need some as it wouldn’t handle things like the <code>&lt;txp:if_author&gt;</code> case.</p>]]></description>
     <content:encoded><![CDATA[<p>Perhaps this could be simplified a bit by using <code>&lt;txp:arc_meta_title/&gt;</code> (<a href="https://andy-carter.com/txp/arc_meta" rel="nofollow noopener" title="https://andy-carter.com/txp/arc_meta">andy-carter.com/txp/arc_meta</a>). It should significantly reduce the number of conditionals used here; although you'd still need some as it wouldn’t handle things like the <code>&lt;txp:if_author&gt;</code> case.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="https://andy-carter.com/">Andy Carter</a></dc:creator>
 
</item>
<item>
     <title>Comment on Simple page titles by Jonathan Stubbs</title>
     <link><a href="https://textpattern.tips/simple-page-titles#c001254" id="c001254">1</a></link>
     <guid><a href="https://textpattern.tips/simple-page-titles#c001254" id="c001254">1</a></guid>
     <pubDate>Fri, 10 Apr 15 12:21:28 +0000</pubDate>
     <description><![CDATA[<p>Hi Andy thanks for the comment. Maybe you'd be interested to post your code sample for others to see and possibly use?</p><p>Generally I personally prefer to use internal Textpattern tags for this rather than a plugin so this solution may not suit everyone...however if your plugin could simplify the admittedly verbose code above it would be nice to know how we could do this?</p>]]></description>
     <content:encoded><![CDATA[<p>Hi Andy thanks for the comment. Maybe you'd be interested to post your code sample for others to see and possibly use?</p><p>Generally I personally prefer to use internal Textpattern tags for this rather than a plugin so this solution may not suit everyone...however if your plugin could simplify the admittedly verbose code above it would be nice to know how we could do this?</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://jonathanstubbs.com">Jonathan Stubbs</a></dc:creator>
 
</item>
<item>
     <title>Comment on Simple page titles by Andy Carter</title>
     <link><a href="https://textpattern.tips/simple-page-titles#c001255" id="c001255">1</a></link>
     <guid><a href="https://textpattern.tips/simple-page-titles#c001255" id="c001255">1</a></guid>
     <pubDate>Fri, 10 Apr 15 13:32:55 +0000</pubDate>
     <description><![CDATA[<p>Happy to post an example. Just trying to follow your example code above to replicate it with <code>&lt;txp:arc_meta_title /&gt;</code> but not sure your conditionals are correct. You seem to have two else statements relating to <code>&lt;txp:if_article_list&gt; …</code>; this is surely wrong?</p>]]></description>
     <content:encoded><![CDATA[<p>Happy to post an example. Just trying to follow your example code above to replicate it with <code>&lt;txp:arc_meta_title /&gt;</code> but not sure your conditionals are correct. You seem to have two else statements relating to <code>&lt;txp:if_article_list&gt; …</code>; this is surely wrong?</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="https://andy-carter.com/">Andy Carter</a></dc:creator>
 
</item>
<item>
     <title>Comment on Simple page titles by Jonathan Stubbs</title>
     <link><a href="https://textpattern.tips/simple-page-titles#c001256" id="c001256">1</a></link>
     <guid><a href="https://textpattern.tips/simple-page-titles#c001256" id="c001256">1</a></guid>
     <pubDate>Sat, 11 Apr 15 01:19:37 +0000</pubDate>
     <description><![CDATA[<p>Oh dear that's an error :(<br>Thanks for spotting the extra else statement! Fixed in the code above.</p>]]></description>
     <content:encoded><![CDATA[<p>Oh dear that's an error :(<br>Thanks for spotting the extra else statement! Fixed in the code above.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://jonathanstubbs.com">Jonathan Stubbs</a></dc:creator>
 
</item>
<item>
     <title>Comment on Simple page titles by Andy Carter</title>
     <link><a href="https://textpattern.tips/simple-page-titles#c001257" id="c001257">1</a></link>
     <guid><a href="https://textpattern.tips/simple-page-titles#c001257" id="c001257">1</a></guid>
     <pubDate>Sat, 11 Apr 15 09:56:18 +0000</pubDate>
     <description><![CDATA[<p>No problem. Looks better now.</p><p>I think that the above should be able to be rewritten using the arc_meta plugin as:</p>
<pre><code>&lt;txp:if_author&gt;<br>    &lt;title&gt;&lt;txp:author title="1" /&gt; | TXP Tips&lt;/title&gt;<br>&lt;txp:else /&gt;<br>    &lt;txp:arc_meta_title /&gt;<br>&lt;/txp:if_author&gt;</code></pre>
<p>The title formats for each of the other cases can then be setup in the arc_meta plugin preferences (although the defaults aren't too far off what you've got here. Basically reducing 22 lines of code down to just 5.</p>]]></description>
     <content:encoded><![CDATA[<p>No problem. Looks better now.</p><p>I think that the above should be able to be rewritten using the arc_meta plugin as:</p>
<pre><code>&lt;txp:if_author&gt;<br>    &lt;title&gt;&lt;txp:author title="1" /&gt; | TXP Tips&lt;/title&gt;<br>&lt;txp:else /&gt;<br>    &lt;txp:arc_meta_title /&gt;<br>&lt;/txp:if_author&gt;</code></pre>
<p>The title formats for each of the other cases can then be setup in the arc_meta plugin preferences (although the defaults aren't too far off what you've got here. Basically reducing 22 lines of code down to just 5.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="https://andy-carter.com/">Andy Carter</a></dc:creator>
 
</item>
<item>
     <title>Comment on Simple page titles by Jonathan Stubbs</title>
     <link><a href="https://textpattern.tips/simple-page-titles#c001258" id="c001258">1</a></link>
     <guid><a href="https://textpattern.tips/simple-page-titles#c001258" id="c001258">1</a></guid>
     <pubDate>Sat, 11 Apr 15 13:30:21 +0000</pubDate>
     <description><![CDATA[<p>Thanks a lot Andy. The tip above has been edited to include a reference to your plugin. Thanks!</p>]]></description>
     <content:encoded><![CDATA[<p>Thanks a lot Andy. The tip above has been edited to include a reference to your plugin. Thanks!</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://jonathanstubbs.com">Jonathan Stubbs</a></dc:creator>
 
</item>

</channel>
</rss>