Hi Jian,
 
We are able to get the text placeholder using rendertag.
Now we are stuck at position where we need this page to be published via 
rendertag as mentioned below. However we are unable to achieve this. Also 
how to pass the email ID, so that to get the successful message whenever a 
page is published via below mentioned rendertag.
 

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

On Thursday, December 11, 2014 11:23:37 AM UTC+5:30, Jian Huang wrote:

> Hi,
>
> The code provide is rendertag, not RQL.
>
> Also, one can simply get the content of a text placeholder via the native 
> placeholder <%txt_body%>, no need for the costly use of rendertag.
>
> Anyways, the solution I have suggested would look something like this
>
> <div class="my-text">
>      <%txt_body%>
> </div>
> <script>
>     $('.my-text a').each(function(){
>           // is this link to PDF?
>           // if yes, AJAX to a server side page to get file size
>           // append info after $(this)
>     });
> </script>
>
>
>
> On Thursday, December 11, 2014 12:29:16 AM UTC-5, Sami Dubey wrote:
>>
>> Hi Jian,
>>  
>> We are able to get the page using page guid and also we are able to see 
>> the placeholders/elements of  it.
>> Could you please assist how could we retrieve html of any text 
>> placeholder, we tried below code and we are failing in that.
>>  
>>
>> var newpage = project.Pages.GetByGuid(pageGuid, 
>> project.LanguageVariants.Current);
>>
>> var element = newpage.ContentClass.Elements.GetByName("txt_body");
>> Thanks in Advance,
>> With Regards
>> Samridhi
>>
>>
>> On Monday, December 8, 2014 12:04:00 PM UTC+5:30, Sami Dubey wrote:
>>
>>> Hi Jian,
>>>  
>>> Thank you for the information :)
>>>  
>>> Regards
>>> Samridhi
>>> On Monday, December 8, 2014 10:29:33 AM UTC+5:30, Jian Huang wrote:
>>>
>>>> Hi Samridhi, 
>>>>
>>>> The session variables are ASP sessions.  Please first google 
>>>> "transfering asp sessions to .net sessions"
>>>>
>>>> There are .NET code samples for both MS 10.x (.NET 2, I think) and MS 
>>>> 11.x (.NET 4) in the RQL manual, please download that and have a look.
>>>>
>>>> If you are going the .NET route, instead of the JQuery RQL route, 
>>>> please have a look at Hilmar's https://github.com/erminas/smartapi
>>>>
>>>> If you are going the JQuery RQL route, here is the 7.x to 11.x 
>>>> compatible connector, 
>>>> https://github.com/jhuangsoftware/j-rql-connector-https
>>>>  
>>>> On Friday, December 5, 2014 4:58:52 AM UTC-5, Sami Dubey wrote: 
>>>>>
>>>>>  Hi Bernd,
>>>>>  
>>>>> We are unable to get the classes available in the CMS webservice. 
>>>>> Could you please let us know how we can get that. It is failing in the 
>>>>> first step itself.
>>>>> // RqlService is a class manually generated using Visual Stuio by 
>>>>> pointing to the web service URL
>>>>> RqlService RqlServiceObj = new RqlService();
>>>>>  
>>>>> However we are able to reference the webservice in .Net 4.0 as add 
>>>>> reference and gave the webservice URL. 
>>>>> After referring to it we are unable to view any methods or classes so 
>>>>> that we could get the page HTML using page GUID.
>>>>>  
>>>>> Thanks,
>>>>> Regards
>>>>> Samridhi
>>>>>  
>>>>> On Friday, December 5, 2014 3:15:18 PM UTC+5:30, Bernd wrote:
>>>>>
>>>>>>  Hi Samridhi,
>>>>>>
>>>>>> normally you receive a string and not a object, are you sure that you 
>>>>>> receive a object from the execute command? maybe this is the issue.
>>>>>>
>>>>>> Cheers
>>>>>>
>>>>>> Bernd
>>>>>>
>>>>>>
>>>>>>  Am 05.12.2014 um 10:40 schrieb Sami Dubey <sd7...@gmail.com>:
>>>>>>
>>>>>>  Dear All,
>>>>>>  
>>>>>> We are trying to access the page's HTML using page GUID. However we 
>>>>>> are not able to achieve this using RQL in .Net 4.0 version.
>>>>>>  
>>>>>> Please find the code below we are trying so far
>>>>>> Webservice URL - http://ourdomain/cms/webservice/RDCMSXMLServer.WSDL
>>>>>> ---------------------------------
>>>>>> // look up how to transfer asp session to aspx session
>>>>>> // Basically, asp page loop through all sessions and submit them to 
>>>>>> aspx
>>>>>> // which then save the received sessions into aspx sessions
>>>>>> string _LoginGuid = 
>>>>>> HttpContext.Current.Session["projectguid"].ToString();
>>>>>> string _SessionKey = 
>>>>>> HttpContext.Current.Session["sessionkey"].ToString();
>>>>>> string _PageGuid = HttpContext.Current.Session["treeguid"].ToString();
>>>>>>  
>>>>>> // RqlService is a class manually generated using Visual Stuio by 
>>>>>> pointing to the web service URL
>>>>>> RqlService RqlServiceObj = new RqlService();
>>>>>>  
>>>>>> string RQL_Command = string.Format("<IODATA sessionkey=\"{0}\" 
>>>>>> loginguid=\"{1}\"><PAGE action=\"load\" guid=\"{2}\"/></IODATA>", 
>>>>>> _LoginGuid, _SessionKey, _PageGuid);
>>>>>> object retObj = RqlServiceObj.ExecuteString(RQL_Command);
>>>>>>  
>>>>>> if (retObj != null)
>>>>>> {
>>>>>>     // parse that retObj
>>>>>> }
>>>>>> ----------------------------
>>>>>>  
>>>>>> Please help on this if any one have already used it so far.
>>>>>>  
>>>>>> Thanks in Advance,
>>>>>> With Regards
>>>>>> Samridhi
>>>>>>
>>>>>> -- 
>>>>>> 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.
>>>>>>
>>>>>>
>>>>>>

-- 
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-users+unsubscr...@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to