ektron - How to determine whether an item in a Menu is not published yet? -
in ektron api, if have menutreenode item, how determine if page added menu list published or unpublished.
when ektron api, assume referring menumanager?
the status of content item held in contentdata object retrieved contentmanager api.
var contentmanager = new contentmanager(); var contentdata = contentmanager.getitem(contentid); var contentstatus = contentdata.status;
in order content id can in menuitemdata object can had menumanager api.
var menumanager = new menumanager(); var menuitemdata = menumanager.getmenuitem(menuitemid); var contentid = menuitemdata.itemid;
finally content "unpublished", i.e. not have status of "a", not retrieved apis shown above. in order content not published, apis need told in site preview mode so:
contentmanager.inpreviewmode = true;
Comments
Post a Comment