Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get_component not persisting
#4
Thanks for the reply Chris. Hmmm, apologies. I should have included the code I insert in the component.

It's this:
Code:
<div class="sidebar-right">
<p><a href="http://www.f1grandprixtours.com/subscribe/"><img src="http://localhost/f1grandprixtours/theme/f1gp/images/subscription-box.png" alt="Subscribe" /></a></p>
</div>

It's pretty straight-forward.

I found this in the components.xml file:
Code:
<item><title><![CDATA[subscribe-sidebar]]></title><slug>subscribe-sidebar</slug><value><![CDATA[&lt;div class=&quot;sidebar-right&quot;&gt;
&lt;p&gt;&lt;a href=&quot;http://www.f1grandprixtours.com/subscribe/&quot;&gt;&lt;img src=&quot;http://localhost/f1grandprixtours/theme/f1gp/images/subscription-box.png&quot; alt=&quot;Subscribe&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;]]></value></item>

When I check the source while the component doesn't show up, I find this there:
Code:
<?php get_component('subscribe-sidebar'); ?>

OK, this is interesting. I just removed the exec-php plugin, and the box disappears from all pages, whether I worked on the content or not.
Reply


Messages In This Thread
get_component not persisting - by f1gp - 2011-03-01, 20:05:04
get_component not persisting - by ccagle8 - 2011-03-02, 00:45:05
get_component not persisting - by ccagle8 - 2011-03-02, 00:48:58
get_component not persisting - by f1gp - 2011-03-02, 16:49:41
get_component not persisting - by ccagle8 - 2011-03-02, 23:04:45
get_component not persisting - by Connie - 2011-03-02, 23:22:03
get_component not persisting - by dom - 2011-03-03, 08:30:18
get_component not persisting - by f1gp - 2011-03-03, 16:29:45



Users browsing this thread: 1 Guest(s)