Share » Forums » Developer » Object States Deployment on a live site

Object States Deployment on a live site

Object States Deployment on a live site

Monday 07 September 2009 3:08:51 am - 1 reply

Author Message

Marco Caldari

Monday 07 September 2009 6:20:14 am

Here we go,
I answer to myself hoping that some ez guru could give more feedback on this topic or maybe add something in the new ez4.2 object states work,

1. To revert already published objects from 'bulk_editor' to 'ready_to_go', in my phpmyadmin:

UPDATE ezcobj_state_link
SET contentobject_state_id = REPLACE(contentobject_state_id, '3', '4')

with 4 corresponding to the 'ready_to_go_live' object state
It would be better to assign states from admin panel.. of course.

2. To notify in the Administrator admin panel which objects are waiting to be edited to pass to 'ready_to_go_live state' we added on children_list.tpl on /admin/templates/ the following:

{if eq($Nodes.object.state_id_array[3],3)}
<img src={'configure.png'|ezimage}  />
{/if}

With '3' that is the id for the bulk_editor state, this adds the icon on the side of the items in 'bulk_edition' state and the final editor can easily find them.

Thank You, for Your attention,
any further contrib is appreciated,
Marco

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu