Hi Samridhi,
Since you are unable to provide template code that is responsible for
displaying the text element content. I assume you have no access or the
previously provided .NET RQL code runs outside of the system.
Just run this RQL or whatever similar function this library provides to
clear page cache
<PAGEBUILDER><PAGES action="pagevaluesetdirty"><PAGE
guid="###PAGEGUID###"/></PAGES></PAGEBUILDER>
-Jian
On Thursday, December 18, 2014 12:04:59 AM UTC-5, Sami Dubey wrote:
>
> Hi,
>
> Yes the content of text placeholder was changed by .NET.
> Yes we are able to see changed content in the 'edit via form' , not in
> page preview.
> Then manually if we press 'OK' it appears on the page preview.
>
> As you explained about caching, can you please help us on the clearing the
> text placeholder caching or any mechanism to save/ok the content for text
> placeholder.
> Code Snippet below:
> ==============================================================
>
> 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();
>
> =========================================================================
> Thanks in Advance,
> With Regards
> Samridhi Dubey
> On Thursday, December 18, 2014 9:46:45 AM UTC+5:30, Jian Huang wrote:
>
>> Hi Sami,
>>
>> I am a little confused.
>>
>> If the content of text placeholder was changed by the .NET RQL, did the
>> changed content display in page preview? Did the changed content display
>> in edit via form?
>>
>> If no in page preview, but yes in edit via form, then that means the 3rd
>> party implementation saved the content correctly, However, it is your
>> implementation on the template code that prevents update of the cache.
>>
>> Then again, manually editing the content via form refreshes cache, so I
>> can assume the template code might be correct, but only 70% sure.
>>
>> The ability to see the snippet of code that is responsible for displayed
>> the text content will help to answer a lot of questions.
>>
>> -Jian
>>
>> On Wednesday, December 17, 2014 11:05:16 PM UTC-5, Sami Dubey wrote:
>>>
>>> Sorry couldn't get you for the code line....
>>> We are just trying to change the content of text placeholder and
>>> publish the same...where we are able to change the content using server
>>> manager's set method..... also we are able to release the page.
>>>
>>> It is not publishing the content we changed for text placeholder,
>>> however we could see our changed content in management server.
>>>
>>> If we open the same content using 'Edit element via form' snd then 'ok'
>>> . It is appearing in page preview as well as publishes the same.
>>>
>>> We are unable to find the method to save or ok the changed content of
>>> text placeholder.
>>
>>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.