--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reddot-cms-use...@googlegroups.com.
To post to this group, send email to reddot-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.
var newpage = project.Pages.GetByGuid(pageGuid, project.LanguageVariants.Current);
var element = newpage.ContentClass.Elements.GetByName("txt_body");
var publish = newpage.CreatePublishJob();
publish.ProjectVariants = project.ProjectVariants;
publish.LanguageVariants = project.LanguageVariants;
publish.IsSendingEmailOnCompletion = true;
//publish.EMailReceipient.EMail = project.Users.
publish.IsPublishingAllFollowingPages = false;
publish.IsPublishingRelatedPages = false;
publish.PublishOn = DateTime.Now.AddSeconds(5.0);
publish.RunAsync();
Your input will help us a lot.
Thanks,
With Regards
Samridhi Dubey
project.SetTextContent(elementGuid, project.LanguageVariants.Current, "TextHtml", text);
var pageGuid = new Guid(pageGUID);
var newpage = project.Pages.GetByGuid(pageGuid, project.LanguageVariants.Current);
var elementGuid = new Guid(elementGUIDArray[count]);
count++;
newpage.ResetToDraft();
string text = project.GetTextContent(elementGuid, project.LanguageVariants.Current, "TextHtml");
text = text.Replace("Recent", "Reciiient");
//text placeholder content are getting changed in below code
project.SetTextContent(elementGuid, project.LanguageVariants.Current, "TextHtml", text);
newpage.Release();
var publish = newpage.CreatePublishJob();
publish.ProjectVariants = project.ProjectVariants;
publish.LanguageVariants = project.LanguageVariants;
publish.IsPublishingAllFollowingPages = true;
publish.IsPublishingRelatedPages = true;
publish.RunAsync();
=========================================================================
@"<PAGEBUILDER><PAGES action=""pagevaluesetdirty""><PAGE sessionkey=""{0}"" guid=""{1}""/></PAGES></PAGEBUILDER>";
--
You received this message because you are subscribed to a topic in the Google Groups "RedDot CMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reddot-cms-users/vSRKTK98ds0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to reddot-cms-use...@googlegroups.com.
@"<ELEMENTS action=""Save""><ELT guid=""{0}"" /></ELEMENTS>";
project.ExecuteRQL(MARK_DIRTY.RQLFormat(elementGuid), RqlType.SessionKeyInIodata);
So the flow was like.
1. Setting the text placeholder value using below code:
project.SetTextContent(elementGuid, project.LanguageVariants.Current, "TextHtml", text);
2. Saving the placeholder value using RQL:
@"<ELEMENTS action=""Save""><ELT guid=""{0}"" /></ELEMENTS>";
project.ExecuteRQL(MARK_DIRTY.RQLFormat(elementGuid), RqlType.SessionKeyInIodata);
3. Releasing the page as mentioned below code:
newpage.Release();
And this solution helped us to change the content of text placeholder, save the content and publish it automatically.
Which helped us to reduce half of the time we used to spent on the same activity.
Thanks for everyones help.
Regards
Samridhi Dubey