Try our conversational search powered by Generative AI!

Different actions and views for one variation product controller

Vote:
 

There is a question about the different views and actions for one variation product controller (eCommerce MVC 7.5).

I have a variation product page. The product information should be shown using the main view (Index action) and detailed view (Details action).

It works great for front end (http://localhost:1115/cataloig1/category1/product1/Details/).

But, when the content editor navigates to the variation product page in edit mode and tries to get the Detailed view, the view is shown for 2-3 seconds, and then the main view (Index action) is shown again.

The controller

public class ProductDetailsController : ContentController<VariationItemContent>

{

            public ActionResult Index(VariationItemContent currentContent)

{

return View(new ViewModel);

}

public ActionResult Details(VariationItemContent currentContent)

{

return View("Deatails", new Model);

}

}

What should be done to show the Details view in backend in edit view and in preview view?

#80710
Jan 30, 2014 11:10
* 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.