Separate detail pages for edit and display or do you hide/unhide based on edit boolean?

40Alpha40Alpha Member ✭✭

What is the general practice when it comes to making detail pages for Display/Edit/Create, is it one unique page with labels for display purposes and one unique page for edit/create purposes? Or is it acceptable to use ONE page with a boolean that controls whether to display Editors or Labels according on what "mode" the user is in?

I was also think of bringing in ContentViews that contain all the view information, one for edit and one for display, and toggling the isVisible depending on what the edit mode boolean says - are there any pitfalls with this approach?

Thanks.

Tagged:

Answers

  • JohnHardmanJohnHardman GBUniversity mod
    edited July 2018

    @40Alpha said:
    I was also think of bringing in ContentViews that contain all the view information, one for edit and one for display, and toggling the isVisible depending on what the edit mode boolean says - are there any pitfalls with this approach?

    The time it takes for a page to appear will be longer if you have twice the number of Views in the page, even if most are hidden using IsVisible. If you decide to go that route, you might want to use lazy loading, so that the only half of the Views are loaded initially, and the other half only added if required.

Sign In or Register to comment.