Forums / Developer / toggle draft / Comment39661

Author Topic

Paul Forsyth

Monday 26 January 2004 6:05:38 am

Comment39661

I just had a quick look at the db. I wanted to know if i could manually remove the published article, thus removing it from being seen but keeping it on the system. This would test if inserting a toggle would be trivial.

The table: ezcontentobject_version holds publishing information for each version. The column 'status' contains a value describing the current status of the version, which can either be draft, published, pending, archived or rejected (int values 0-4).

I did a little admin test. I changed the status of an object with a few versions and set each to draft status. Having a look at the object with '/content/versions/(object_id)' confirmed they were all set to draft. Now, I would expect that viewing the object via 'content/view/full/id' would give some kind of error but nothing appeared so the system is still showing something when i believe there shouldn't be anything.

The reason it is still being shown may just be a template not performing a check. This may or may not be the right behaviour. I then checked on the user site and found the object could be still be viewed even if there are no published versions.

Any comments?

Paul