2011-03-01, 20:05:04
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:
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).
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).