Customer Center in Online - add page

I am exploring the possibilities of customizing the Customer Center in many ways, one is adding more pages. So I found this post, https://community.superoffice.com/en/developer/forum/rooms/topic/superoffice-product-api-group/crm-windows-application/customer-center-adding-a-new-page/.

Is this possible to do in Online?

RE: Customer Center in Online - add page

Hi,

In Online you are not able to create your own physical .html files. You can however add your own pages by creating them as CRMscript and reference to them with ;
customer.fcgi?action=parse&includeId=yourscriptID&key=yourscriptKey&withFrame=1

This article gives you some ideas as how to accomplish this.

Av: Michel Krohn-Dale 18. nov 2019

RE: Customer Center in Online - add page

Great, thanks!

Av: Patrik Larsson 18. nov 2019

RE: Customer Center in Online - add page

I assume I have to somehow stay within the framework with the added page to keep the authentication, navigation etc. As I go to my added page, I get logged out. How do I stay logged in when working with the new page? 

Av: Patrik Larsson 18. nov 2019

RE: Customer Center in Online - add page

Hi,

If you want to embedd your page within framework.html, you must include &withFrame=1 in your url. 

If you want to retain authentication in customer center you have access to parser variable "AuthProgram", if you use this to build your url it will look something like this; 
%AuthProgram%&action=safeParse&includeId=yourscriptID&key=yourscriptKey&withFrame=1

Av: Michel Krohn-Dale 18. nov 2019

RE: Customer Center in Online - add page

Excellent!

Again, many thanks for the help :)

Av: Patrik Larsson 18. nov 2019