sitecore-workflow

Adding a workflow to an existing item in sitecore 6.5

*爱你&永不变心* 提交于 2020-01-03 15:33:20
问题 I'm trying to set up workflows in sitecore 6.5. I can get the workflows to run just fine on NEW data items created from templates, but everytime I go to a data item that existed before I created the workflow, the ribbon bar tells me "This item is currently not part of a workflow". I've added the Workflow I want set on the Default Workflow field, and in the Workflow field in the data item, but still the workflow is not applied. I'm not sure how to get a newly created workflow to be applied to

Sitecore item will not go into edit mode; any suggestions on how to troubleshoot?

℡╲_俬逩灬. 提交于 2019-12-25 05:23:28
问题 I have several Sitecore items (whose template is connected to an approval workflow) that will not go into Edit mode when clicking "Edit" from the "Review" tab. The same workflow is used elsewhere on the site successfully (the site is more than 3 years old), but clicking Edit in this case doesn't seem to affect the workflow state. I've turned on verbose logging, which provides a lot of detail, but nothing to indicate any error conditions. I've been comparing how this template is configured

Annoying issue with sitecore workflows and standard value inheritance

白昼怎懂夜的黑 提交于 2019-12-18 13:09:12
问题 Right now i'm having a problem with sitecore workflow. The issue is as follows: my template standard value has set the Workflow and Default Workflow fields set. The workflow state is set to draft. However, everytime i create an item from this template it is not inheriting the workflow section fields, all of them are empty if i manually set workflow and workflow state for items, it works as expected up to the final state. However, if a content author edits the item, a new version is created

Why does Sitecore publish draft items from the C# API, and how do I stop it doing so?

别来无恙 提交于 2019-12-12 07:53:52
问题 I'm running a scheduled publish of my Sitecore master DB using the Sitecore publishing API. I call a web service at scheduled intervals during the day which runs the following code (slightly condensed for readability): // grab the root content node from sitecore Item contentNode = dbSource.Items[ID.Parse("{0DE95AE4-41AB-4D01-9EB0-67441B7C2450}")]; PublishOptions options = new PublishOptions(sourceDatabase, targetDatabase, PublishMode.Smart, lang, DateTime.Now); options.RootItem = contentNode;

How to publish multiple versions of content item to delivery (web database) in Sitecore?

左心房为你撑大大i 提交于 2019-12-11 04:18:48
问题 I have a requirement to allow users of the web site to see the current publish version of the item (which has passed through workflow) + the previous versions + the version scheduled to publish in future. So when the use visit the content item on the web site they will be presented with tabs to: previous , current and future version of the item. I have seen some articles how to intercept publishing pipeline but still cannot evaluate if this scenario is possible. 回答1: There is no native way to

Why does Sitecore publish draft items from the C# API, and how do I stop it doing so?

纵饮孤独 提交于 2019-12-03 12:44:24
I'm running a scheduled publish of my Sitecore master DB using the Sitecore publishing API. I call a web service at scheduled intervals during the day which runs the following code (slightly condensed for readability): // grab the root content node from sitecore Item contentNode = dbSource.Items[ID.Parse("{0DE95AE4-41AB-4D01-9EB0-67441B7C2450}")]; PublishOptions options = new PublishOptions(sourceDatabase, targetDatabase, PublishMode.Smart, lang, DateTime.Now); options.RootItem = contentNode; options.Deep = true; Publisher p = new Publisher(options); p.PublishAsync(); When we run the above

Sitecore: Assign workflow to an item programmatically

六月ゝ 毕业季﹏ 提交于 2019-11-29 04:46:32
I have configured a workflow, starts with "Draft" state as usual. And I have configured the workflow for standard values of the template. It works perfect in Content editor. (When I create an item using the content editor, once I create the item, Workflow gets assigned to the item and it's state becomes "Draft".) But when I create an item programmatically under the above template it does not assign the workflow. What should I do to assign workflow? Please share any code samples if you have. Thanks. Sitecore.Data.Items.TemplateItem template = this.MasterDatabase.GetItem("/sitecore/templates

Sitecore: Assign workflow to an item programmatically

对着背影说爱祢 提交于 2019-11-27 18:43:44
问题 I have configured a workflow, starts with "Draft" state as usual. And I have configured the workflow for standard values of the template. It works perfect in Content editor. (When I create an item using the content editor, once I create the item, Workflow gets assigned to the item and it's state becomes "Draft".) But when I create an item programmatically under the above template it does not assign the workflow. What should I do to assign workflow? Please share any code samples if you have.