Changing publication status
When changing the status of published pages in the admin, "un-publishing" (selecting 'no' for publish and saving) empties the page variable content completely. I've tried this with Firefox 9, Chrome 16 and IE 9, with both ckeditor and markitup. The data does not seem to be deleted (it is still in the database), but dis-associated. If you reload the page, the data does not re-appear, and if you re-save, then the old data is over-written. On the same site, the CMS "blocks" module also has a "publish" field, but doesn't exhibit the same behaviour.
Is that expected - because it might as well be "delete" rather than "not publish"?
I've tested this running Windows 7 with a recent Fuel install, and I'll try with OSX later.
Comments
On Windows I was using Wamp, but on OSX it's the vanilla Apache & PHP.
$this->db->where(array($this->_tables['pages'].'.published' => 'yes'));
Of course, doing this hides the data from the CMS, as well as the front end (it was a solution intended to hide fuel_var() CMS content from views when data was not published). Duh!
Sorry, false alarm.
if (!defined('FUEL_ADMIN')) { $this->db->where(array($this->_tables['pages'].'.published' => 'yes')); }