Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get_component not persisting
#1
Hi,

I created a new component to add a subscribe box to the top right of each page. This is the component include code that the system created:

Code:
<?php get_component('subscribe-sidebar'); ?>

I installed the exec-php plugin. I don't know if it's necessary, but I did in any case. Adding the component brings up the box. So it works fine. The problem is, whenever I enter the page to edit the info again, the component disappears. In fact, the component disappears after being added, when the page is saved. The box shows up on the page, but the code disappears from the editor.

Any thoughts on how to make the code persist? It's not a problem for me to add the component code each time, but it could cause confusion for anyone else updating the page in future (which is what I'm working towards).
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)