Changing between views of one page

Vote:
 

Hi developers, I need some little help in my project.

I need to different views of the same page(View1 and View2). The views are different, they only have the same title but it's still the same page.

In View1 I have a button that will change to View2.

How can I implement that?

Thx!

PS: Is it possible that just after pressing the button but before the change, it shows a confirmation dialog/popup?

#140771
Oct 29, 2015 16:23
Vote:
 

Hi,

The EpiServer has buildin mechanism for resolving which is TemplateResolver (here is the documentation). dsada

But in your case you don't need to use this functionality.

Maybye you could simply create Controller for the page with two actions. The button should call the action with View2.

#140782
Oct 29, 2015 22:30
Vote:
 

Hello Oriol

There is a similar discussion on a different thread happening here: http://world.episerver.com/forum/developer-forum/Developer-to-developer/Thread-Container/2015/10/how-to-create-content-based-on-same-pagedata-different-template/

This should give you some inspiration on how to achieve what you want.

David

#140783
Oct 29, 2015 23:48
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.