Note that there are some explanatory texts on larger screens.

plurals
  1. POExpressionEngine: Multiple channels issue with custom URL's
    primarykey
    data
    text
    <p>On this page: <a href="http://build.jhousemedia3.com/pleasanton/shop/district-profile/stoneridge-shopping-center/" rel="nofollow">http://build.jhousemedia3.com/pleasanton/shop/district-profile/stoneridge-shopping-center/</a></p> <p>The URL is formatted like so http://build.jhousemedia3.com/pleasanton/[channel]/[template]/[query parameter]</p> <p>I'm running an exp:channel:entries query using the last segment of the URL (segment_4)</p> <p>What's happening is that when I run it from this URL I can't pull in data from any other channel except the specific shopping districts channel. If I were to change that last segment to /?id=28 (or something similar) I can pull data from multiple channels.</p> <p>Any ideas?</p> <p>Code for pulling the profile of a shopping district based on the URL:</p> <pre><code>{exp:channel:entries url_title="{segment_4}" limit="1" channel="shopping_districts"} &lt;h2 class="upper"&gt;&lt;span class="greenlight"&gt;{title}&lt;/span&gt;&lt;/h2&gt; {if center_website} &lt;div class="greyroundbox right"&gt;&lt;a href="{center_website}" class="external-link" target='_blank'&gt;Visit the Website&lt;/a&gt;&lt;/div&gt; {/if} &lt;p&gt;{shopping_center_description}&lt;/p&gt; &lt;div class="clear"&gt;&lt;/div&gt; {/exp:channel:entries} </code></pre> <p>Code for pulling in any business data</p> <pre><code>{exp:channel:entries channel="businesses"} &lt;li class="{switch='first|'}"&gt; &lt;p&gt; &lt;a href="{path='pages/business-profile'}" class="main-title"&gt;{business_name}&lt;/a&gt; &lt;a href="{path='pages/shopping-category'}" class="green-title"&gt;{categories_shopping}&lt;/a&gt;&lt;br /&gt; {if phone} &lt;strong&gt;Phone&lt;/strong&gt;: {phone}&lt;br /&gt; {/if} &lt;strong&gt;Address&lt;/strong&gt;: {address_1}&lt;br /&gt; {if address_2} {address_2}&lt;br /&gt; {/if} {city}, {state}, {zip}&lt;br /&gt; {if website} &lt;a href="{website}" class="grey"&gt;&lt;em&gt;{website}&lt;/em&gt;&lt;/a&gt; {/if} &lt;/p&gt; &lt;/li&gt; {/exp:channel:entries} </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload