<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	
	<channel>
	
	<title>Archived ExpressionEngine Community Support Forums</title>
	<link>http://expressionengine.com/archived_forums/</link>
	<description>Archived ExpressionEngine Community Support Forums</description>
	<copyright>Copyright 2010 EllisLab</copyright>
	<docs>http://www.rssboard.org/rss-specification</docs>
	<generator>ExpressionEngine v2.2.2 http://expressionengine.com/</generator>
	<language>en</language>
	<lastBuildDate>0</lastBuildDate>
	<atom:link href="http://expressionengine.com/archived_forums/rss/" rel="self" type="application/rss+xml" />
		

	<item>
		<title>Search Form HELP + Customised search based on custom_fields and categories</title>
		<link>http://expressionengine.com/archived_forums/viewthread/159971/</link>
		<author>journalistone</author>
		<description><![CDATA[<p>Hello,</p>

<p>I am needing to set up a search form which is based on custom_fields and categories.</p>

<p>So, for example, I have products for sale that need to allow for multiple search options: where a user can select a brand, a size, a price range, location etc. to narrow down the search results.</p>

<p>I have read through the docs for the Search Module, but am not sure how to customise the search form. It seems there are limited tags available ???</p>

<p>Can someone please let me know if it is possible to construct a search form based on various custom_field and category select lists.</p>

<p>Thank you.</p>]]></description>
		<guid isPermalink="false">http://expressionengine.com/archived_forums/viewthread/159971/#When:07:27:44Z</guid>
		<pubDate>Tue, 06 Jul 2010 07:27:44 GMT</pubDate>
	</item>

	<item>
		<title>Creating Multiple Rendering Options in Fieldtypes not working</title>
		<link>http://expressionengine.com/archived_forums/viewthread/159913/</link>
		<author>Benjamin David</author>
		<description><![CDATA[<p>Hi,</p>

<p>I&#8217;m testing Fieldtype development and I&#8217;m trying to setup a custom replace function :</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">replace_hello</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params&nbsp;</span><span style="color: #007700">=&nbsp;array(),&nbsp;</span><span style="color: #0000BB">$tagdata&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">FALSE</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #DD0000">"hello&nbsp;world"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#125;&nbsp;</span>
</span>
</code></div>

<p>In my template, I&#8217;m calling it that way :</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;myfield</span><span style="color: #007700">:</span><span style="color: #0000BB">hello&#125;&nbsp;</span>
</span>
</code></div>

<p>But this is not working, the tag is not parsed and it&#8217;s returning this :</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;myfield</span><span style="color: #007700">:</span><span style="color: #0000BB">hello&#125;&nbsp;</span>
</span>
</code></div>

<p>Am I missing something or could this be a bug ?</p>

<p>Thanks !</p>

<p><b>Update : woops, posted it in the wrong forum, could you please move it to the Custom Field API Development forum ? Thanks !</b></p>]]></description>
		<guid isPermalink="false">http://expressionengine.com/archived_forums/viewthread/159913/#When:15:28:27Z</guid>
		<pubDate>Mon, 05 Jul 2010 15:28:27 GMT</pubDate>
	</item>

	<item>
		<title>Find and Replace : Text for Images</title>
		<link>http://expressionengine.com/archived_forums/viewthread/159897/</link>
		<author>journalistone</author>
		<description><![CDATA[<p>Hello,</p>

<p>I am looking for a method to produce a similar result as the <a href="http://expressionengine.com/forums/viewthread/89426/">Find and Replace Plugin</a>, but replace with image.</p>

<p>For example, I have a table listing a product&#8217;s features, and I would like to replace the word &#8216;yes&#8217; with a &#8216;tick&#8217; image&#8230; and similarly &#8216;no&#8217;, with a &#8216;cross&#8217; image.</p>

<p>Does anyone know of a plugin or extension that may do this ?</p>]]></description>
		<guid isPermalink="false">http://expressionengine.com/archived_forums/viewthread/159897/#When:12:15:13Z</guid>
		<pubDate>Mon, 05 Jul 2010 12:15:13 GMT</pubDate>
	</item>

	<item>
		<title>EE2 &#45; Direct output from plugin</title>
		<link>http://expressionengine.com/archived_forums/viewthread/159810/</link>
		<author>HD  </author>
		<description><![CDATA[<p>Noob question here:</p>

<p>I need to be able to output KML, ICS and JSON data on-the-fly (for some front-end javascript) from a plugin or extension. Is there a way to do this that will allow me to bypass templates?</p>

<p>In other words, is there a way I can hook into the system and pre-define a uri to get such outputs from my plugin/extension?</p>

<p>I just want to simplify the process of installing these things in the future.</p>

<p>Is such a thing allowed?</p>

<p>If so, I could greatly use an example or two.</p>

<p>Thanks!</p>]]></description>
		<guid isPermalink="false">http://expressionengine.com/archived_forums/viewthread/159810/#When:21:50:09Z</guid>
		<pubDate>Sat, 03 Jul 2010 21:50:09 GMT</pubDate>
	</item>

	<item>
		<title>Plugin: Variables</title>
		<link>http://expressionengine.com/archived_forums/viewthread/159793/</link>
		<author>Yorick Peterse</author>
		<description><![CDATA[<p>The variables plugin gives the possibility to create variables (either static or dynamic) and use them later on. This means that for example you can set certain data and use it in the head (if it&#8217;s embedded) without having to re-create a tag pair for the specific channel.</p>

<p>I wrote the plugin because I didn&#8217;t want to use an excessive amount of tags in order to retrieve specific data. For example, each blog entry on my website has a set of meta keywords and a meta description (stored in a custom field). The normal way to retrieve them is the create a new channel tag and fetch the meta data. This wasn&#8217;t something I was really looking forward to. First of all it makes the source code a mess and second it makes the system load slower (I&#8217;m a speed freak).</p>

<p>The solution? Write a plugin that stores certain data for usage later on. This is what Variables does. On my website I use Variables on pretty much every page in the main channel tag. For instance, on the blog index the code looks a bit like the following:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">channel</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;channel</span><span style="color: #007700">=</span><span style="color: #DD0000">"blog"&nbsp;</span><span style="color: #0000BB">orderby</span><span style="color: #007700">=</span><span style="color: #DD0000">"date"&nbsp;</span><span style="color: #0000BB">sort</span><span style="color: #007700">=</span><span style="color: #DD0000">"desc"&nbsp;</span><span style="color: #0000BB">limit</span><span style="color: #007700">=</span><span style="color: #DD0000">"8"&nbsp;</span><span style="color: #0000BB">status</span><span style="color: #007700">=</span><span style="color: #DD0000">"open"&nbsp;</span><span style="color: #0000BB">paginate</span><span style="color: #007700">=</span><span style="color: #DD0000">"bottom"&nbsp;</span><span style="color: #0000BB">cache</span><span style="color: #007700">=</span><span style="color: #DD0000">"yes"&nbsp;</span><span style="color: #0000BB">refresh</span><span style="color: #007700">=</span><span style="color: #DD0000">"30"&nbsp;</span><span style="color: #0000BB">disable</span><span style="color: #007700">=</span><span style="color: #0000BB">”member_data</span><span style="color: #007700">|</span><span style="color: #0000BB">trackbacks</span><span style="color: #007700">|</span><span style="color: #0000BB">”&#125;<br /><br />&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">variables</span><span style="color: #007700">:</span><span style="color: #0000BB">append&nbsp;name</span><span style="color: #007700">=</span><span style="color: #DD0000">'meta_keywords'&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">'&#123;meta_keywords&#125;'</span><span style="color: #0000BB">&#125;<br /><br />&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">channel</span><span style="color: #007700">:</span><span style="color: #0000BB">entreis&#125;&nbsp;</span>
</span>
</code></div>

<p>As you can see this is much easier than having to create another channel entries tag in the header template.</p>

<p>- License: GNU GPLv3<br />
- Bitbucket page: <a href="https://bitbucket.org/YorickPeterse/ee-variables/">https://bitbucket.org/YorickPeterse/ee-variables/</a><br />
- Download: <a href="https://bitbucket.org/YorickPeterse/ee-variables/get/tip.zip">https://bitbucket.org/YorickPeterse/ee-variables/get/tip.zip</a></p>]]></description>
		<guid isPermalink="false">http://expressionengine.com/archived_forums/viewthread/159793/#When:15:31:54Z</guid>
		<pubDate>Sat, 03 Jul 2010 15:31:54 GMT</pubDate>
	</item>

	<item>
		<title>Codeigniter libraries and overriding functions</title>
		<link>http://expressionengine.com/archived_forums/viewthread/159661/</link>
		<author>Tim Jukes</author>
		<description><![CDATA[<p>Hi - I&#8217;m writing a plugin for parsing RSS feeds. I wanted to take the opportunity to try to link it in with Codeigniter. </p>

<p>So&#8230; I grabbed Eliot Haughin&#8217;s great CI wrapper for SimplePie, and dropped it into the System/Libraries folder.</p>

<p>I&#8217;ve been able to call it and do everything I normally would with CI like this:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">EE</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">load</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">library</span><span style="color: #007700">(</span><span style="color: #DD0000">'simplepie'</span><span style="color: #007700">);&nbsp;</span>
</span>
</code></div>

<p>I just wondered if anyone could see anything wrong with this approach? Should I be putting the library in the plugin folder instead?</p>

<p>I&#8217;ve also run into an issue trying to override one of the functions. I tried loading</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">EE</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">load</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">library</span><span style="color: #007700">(</span><span style="color: #DD0000">'simplepiecustom'</span><span style="color: #007700">);&nbsp;</span>
</span>
</code></div><p> straight after loading simplepie. The custom class is just set up to override one function, but I can&#8217;t seem to get it to work - the class loads in without an error, but the original sort function still gets called.</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php&nbsp;</span><span style="color: #007700">if&nbsp;(&nbsp;!&nbsp;</span><span style="color: #0000BB">defined</span><span style="color: #007700">(</span><span style="color: #DD0000">'BASEPATH'</span><span style="color: #007700">))&nbsp;exit(</span><span style="color: #DD0000">'No&nbsp;direct&nbsp;script&nbsp;access&nbsp;allowed'</span><span style="color: #007700">);<br /><br />class&nbsp;</span><span style="color: #0000BB">Simplepiecustom&nbsp;</span><span style="color: #007700">extends&nbsp;</span><span style="color: #0000BB">SimplePie<br />&#123;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">Simplepiecustom</span><span style="color: #007700">()<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent</span><span style="color: #007700">::</span><span style="color: #0000BB">SimplePie</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">sort_items</span><span style="color: #007700">(</span><span style="color: #0000BB">$a</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$b</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">strcasecmp</span><span style="color: #007700">(</span><span style="color: #0000BB">$a</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_title</span><span style="color: #007700">(),&nbsp;</span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_title</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&#125;<br /><br />?&gt;&nbsp;</span>
</span>
</code></div><p> </p>

<p>Anyone have any advice?!</p>

<p>Thanks<br />
Tim</p>]]></description>
		<guid isPermalink="false">http://expressionengine.com/archived_forums/viewthread/159661/#When:18:23:07Z</guid>
		<pubDate>Thu, 01 Jul 2010 18:23:07 GMT</pubDate>
	</item>

	<item>
		<title>Imgsizer &amp;amp; low_random</title>
		<link>http://expressionengine.com/archived_forums/viewthread/158852/</link>
		<author>Nutmeg</author>
		<description><![CDATA[<p>I would like imgsizer to control the images which low_random selects from folder 2, but have tried several configuration which won&#8217;t work.</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">&lt;</span><span style="color: #0000BB">li&nbsp;</span><span style="color: #007700">class=</span><span style="color: #DD0000">"sub"&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">=</span><span style="color: #DD0000">"home"&nbsp;</span><span style="color: #0000BB">style</span><span style="color: #007700">=</span><span style="color: #DD0000">"background:&nbsp;url('/images/uploads/bkg_images/us/&#123;exp:low_random:file&nbsp;folder='2'&nbsp;&nbsp;&nbsp;&nbsp;&#125;');"</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>

<p>Considering Imgsizer uses a &#8220;sized&#8221; cache folder, I don&#8217;t think this is going to be possible&#8230;..</p>

<p>Let me know if it is <img src="http://ellislab.com/images/smileys/cheese.gif" width="19" height="19" alt="cheese" style="border:0;" /></p>]]></description>
		<guid isPermalink="false">http://expressionengine.com/archived_forums/viewthread/158852/#When:10:48:22Z</guid>
		<pubDate>Thu, 24 Jun 2010 10:48:22 GMT</pubDate>
	</item>

	<item>
		<title>Find and Replace Plus</title>
		<link>http://expressionengine.com/archived_forums/viewthread/158777/</link>
		<author>Mantishead</author>
		<description><![CDATA[<p>Is there an alternative to Find and Replace Plus plugin that works in EE2?</p>]]></description>
		<guid isPermalink="false">http://expressionengine.com/archived_forums/viewthread/158777/#When:18:15:41Z</guid>
		<pubDate>Wed, 23 Jun 2010 18:15:41 GMT</pubDate>
	</item>

	<item>
		<title>dynamic parameters and search:title not working</title>
		<link>http://expressionengine.com/archived_forums/viewthread/158761/</link>
		<author>heaversm</author>
		<description><![CDATA[<p>Hi - I have a search form set up which uses EE&#8217;s dynamic parameters to render results. Everything works properly except the search:title parameter. No matter what I enter into this field, all my weblog entries are returned. Here is my setup:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">&lt;</span><span style="color: #0000BB">form&nbsp;action</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;site_url&#125;index.php/site/pub_results/date/"&nbsp;</span><span style="color: #0000BB">method</span><span style="color: #007700">=</span><span style="color: #DD0000">"post"</span><span style="color: #007700">&gt;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br /></span><span style="color: #0000BB">Keywords</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">br</span><span style="color: #007700">/&gt;<br />&lt;</span><span style="color: #0000BB">input&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text"&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"search:title"&nbsp;</span><span style="color: #007700">class=</span><span style="color: #DD0000">"pub_search_input"&nbsp;</span><span style="color: #007700">/&gt;<br /><br /></span><span style="color: #0000BB">Issue&nbsp;Area</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">br</span><span style="color: #007700">/&gt;<br />&lt;</span><span style="color: #0000BB">select&nbsp;name</span><span style="color: #007700">=</span><span style="color: #DD0000">"search:pub_issue"&nbsp;</span><span style="color: #0000BB">style</span><span style="color: #007700">=</span><span style="color: #DD0000">"margin-top:10px;"&nbsp;</span><span style="color: #007700">class=</span><span style="color: #DD0000">"pub_search_select"</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"issues"&nbsp;</span><span style="color: #0000BB">dynamic</span><span style="color: #007700">=</span><span style="color: #DD0000">"off"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">option&nbsp;value</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;title&#125;"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;title&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">option</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;<br /><br />Year</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">br</span><span style="color: #007700">/&gt;<br />&lt;</span><span style="color: #0000BB">input&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text"&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"search:pub_date"&nbsp;</span><span style="color: #007700">class=</span><span style="color: #DD0000">"pub_search_input"&nbsp;</span><span style="color: #0000BB">style</span><span style="color: #007700">=</span><span style="color: #DD0000">"margin-top:5px;"</span><span style="color: #007700">/&gt;<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">input&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"image"&nbsp;</span><span style="color: #0000BB">src</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;site_url&#125;images/core/button_submit.gif"&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"Submit"&nbsp;</span><span style="color: #007700">/&gt;<br /><br />&lt;/</span><span style="color: #0000BB">form</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>

<p><br />
and the results page:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"publications"&nbsp;</span><span style="color: #0000BB">dynamic_parameters</span><span style="color: #007700">=</span><span style="color: #DD0000">"search:pub_date|search:title|search:pub_issue|search:pub_type"&nbsp;</span><span style="color: #0000BB">limit</span><span style="color: #007700">=</span><span style="color: #DD0000">"10"&nbsp;</span><span style="color: #0000BB">paginate</span><span style="color: #007700">=</span><span style="color: #DD0000">"bottom"</span><span style="color: #0000BB">&#125;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">h4</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;title&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">h4</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">span&nbsp;</span><span style="color: #007700">class=</span><span style="color: #DD0000">"italic"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;pub_author&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">span</span><span style="color: #007700">&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">b</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Issue</span><span style="color: #007700">:&nbsp;&lt;/</span><span style="color: #0000BB">b</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;embed</span><span style="color: #007700">=</span><span style="color: #DD0000">"embeds/pub_issue_rel"&nbsp;</span><span style="color: #0000BB">entry_id</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;entry_id&#125;"</span><span style="color: #0000BB">&#125;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">br</span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">b</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Publication&nbsp;Type</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">b</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">&#123;embed</span><span style="color: #007700">=</span><span style="color: #DD0000">"embeds/pub_type_rel"&nbsp;</span><span style="color: #0000BB">entry_id</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;entry_id&#125;"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">div</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">md_eexcerpt&nbsp;if_exceeds</span><span style="color: #007700">=</span><span style="color: #DD0000">"100"&nbsp;</span><span style="color: #0000BB">stop_after</span><span style="color: #007700">=</span><span style="color: #DD0000">"100"&nbsp;</span><span style="color: #0000BB">append</span><span style="color: #007700">=</span><span style="color: #DD0000">"..."</span><span style="color: #0000BB">&#125;&#123;pub_content&#125;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">md_eexcerpt&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">div</span><span style="color: #007700">&gt;<br /><br /></span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;&nbsp;</span>
</span>
</code></div>

<p>Any idea what&#8217;s going on?</p>]]></description>
		<guid isPermalink="false">http://expressionengine.com/archived_forums/viewthread/158761/#When:15:05:29Z</guid>
		<pubDate>Wed, 23 Jun 2010 15:05:29 GMT</pubDate>
	</item>

	<item>
		<title>EE1.x: Plugin position in template parse order</title>
		<link>http://expressionengine.com/archived_forums/viewthread/158735/</link>
		<author>Russ Back</author>
		<description><![CDATA[<p>Hi</p>

<p>I have a very simple plugin that takes a related gallery entry ID and returns the gallery category of the image:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">Gallerycategory</span><span style="color: #007700">()<br /></span><span style="color: #0000BB">&#123;&nbsp;<br /><br />&nbsp;&nbsp;</span><span style="color: #007700">global&nbsp;</span><span style="color: #0000BB">$TMPL</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$DB</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;</span><span style="color: #0000BB">$query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$DB</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;rel_data&nbsp;FROM&nbsp;exp_relationships&nbsp;WHERE&nbsp;rel_id&nbsp;=&nbsp;'"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$TMPL</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch_param</span><span style="color: #007700">(</span><span style="color: #DD0000">'relationship_id'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"'"</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$row&#91;</span><span style="color: #DD0000">'rel_data'</span><span style="color: #0000BB">&#93;&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$query</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">row&#91;</span><span style="color: #DD0000">'rel_data'</span><span style="color: #0000BB">&#93;</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">$reldata&nbsp;</span><span style="color: #007700">=&nbsp;@</span><span style="color: #0000BB">unserialize</span><span style="color: #007700">(</span><span style="color: #0000BB">$row&#91;</span><span style="color: #DD0000">'rel_data'</span><span style="color: #0000BB">&#93;</span><span style="color: #007700">))&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">return_data&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$reldata&#91;</span><span style="color: #DD0000">'query'</span><span style="color: #0000BB">&#93;</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">result&#91;0&#93;&#91;</span><span style="color: #DD0000">'cat_id'</span><span style="color: #0000BB">&#93;</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&#125;&nbsp;</span>
</span>
</code></div>

<p>This works fine in a template as follows (I&#8217;m passing in the category ID from a parent template):</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">cat&nbsp;id&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">gallerycategory&nbsp;relationship_id</span><span style="color: #007700">=</span><span style="color: #DD0000">'&#123;embed:gallery_category&#125;'</span><span style="color: #0000BB">&#125;&nbsp;</span>
</span>
</code></div>

<p>Results in:</p>

<blockquote>
<p>cat id = 5</p>
</blockquote>

<p><br />
But when I try to use this in a gallery:entries tag, I get no results:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">gallery</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;gallery</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;embed:gallery&#125;"&nbsp;</span><span style="color: #0000BB">category</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;exp:gallerycategory&nbsp;relationship_id='&#123;embed:gallery_category&#125;'&#125;"&nbsp;</span><span style="color: #0000BB">orderby</span><span style="color: #007700">=</span><span style="color: #DD0000">"date"&nbsp;</span><span style="color: #0000BB">sort</span><span style="color: #007700">=</span><span style="color: #DD0000">"asc"&nbsp;</span><span style="color: #0000BB">columns</span><span style="color: #007700">=</span><span style="color: #DD0000">"1"&nbsp;</span><span style="color: #0000BB">rows</span><span style="color: #007700">=</span><span style="color: #DD0000">"100"&nbsp;</span><span style="color: #0000BB">log_views</span><span style="color: #007700">=</span><span style="color: #DD0000">"off"&nbsp;</span><span style="color: #0000BB">dynamic</span><span style="color: #007700">=</span><span style="color: #DD0000">"off"</span><span style="color: #0000BB">&#125;&nbsp;</span>
</span>
</code></div>

<p>Hardcoding the category parameter works fine, so I know there are images in the category.</p>

<p>Do plugins not return their data before the gallery entries are searched?</p>]]></description>
		<guid isPermalink="false">http://expressionengine.com/archived_forums/viewthread/158735/#When:10:32:57Z</guid>
		<pubDate>Wed, 23 Jun 2010 10:32:57 GMT</pubDate>
	</item>

	
	</channel>
</rss>
