Forums / Developer / toggle draft / Comment39667

Author Topic

andreas spahr

Tuesday 27 January 2004 4:10:01 am

Comment39667

After testing a while, I suppose it could be easy to solve - or not :)

The fetch statement could be expanded in the admin view with s.th. like:
fetch( content, list, hash( .., publish_filter_type, all) )

default value could be instead of 'all' 'published' for a standard fetch:
fetch( content, list, hash( .., publish_filter_type, published) )

In the kernel/classes/ezcontentobjecttreenode.php this should be implemented:
Instead of the hardcoded query
"SELECT ezcontentobject.*,
...
ezcontentobject_tree.contentobject_is_published = 1";

this should be managed with the new parameter publish_filter_type.

After this is solved, an action should be added for each object to toggle off/on.

Until now I didn't get it :(