Post
by Katie » Thu Oct 31, 2013 7:32 am
We have a large number(42) of website aspx pages which are using FIXED layouts (layouts which are under ~/Layous/Fixed/ folder and can not be customized using layout editor). These fixed layouts are similar in structure to non-fixed layouts.
We have discussed converting these static aspx pages to a webpages framework and start using the normal manageable layouts for them. However, this is a high impact change, will take considerable time to implement, automatic upgrades will be problematic, and anyone who has made customizations will have to redo them. For these reasons, we are not moving forward at this time.
In case anyone would like to understand the process of converting the static pages so they work within the administration pages, here are the exact steps to convert a physical page to webpages framework:
1. Create a new ConLib control to hold the page contents and backed code.
2. Copy paste the XHTML code from .aspx page to respective ConLib page control.
3. Copy paste the backed code for .aspx.cs page to respective Conlib page control code file.
4. Compile the code and fix any broken namespace references etc.
5. Create new ConLib sidebar controls if page is using Sidebar or Three column layouts and there are inline contents for sidebars in the aspx page.
6. From store admin side, create a new webpage with the .aspx page URL and use new ConLib control as content. update the page title properly to match existing physical page.
7. Select the proper layout to match the existing page layout, create new layout if needed.
8. Delete the physical .aspx file.
9. Test by browsing to page URL to check if the new page matches the old page in all aspects.
Here are few concerns brought up by the dev team:
Customizing UI
----------------
At the one end, we will enable merchants to easily customize the layout of all store pages, but at the other end we will make it difficult for developers to make customizations to control. They have to understand how our webpages framework work and then have to check from admin side to figure out what ConLib control is being used for what page to make changes. They still have to use Visual studio for any content changes.
Security Issues:
----------------
Most of the checkout and members only aspx pages are under specific folders and are access restricted to only registered users using web.config file under those folders, but if we convert those to webpages framework, we have to figure out an alternate way to force the access restrictions.
Upgrade Issue:
-------------
The customers will face some issues if they have customized the store front pages. They have to port the changes from their old aspx files to respective Conlib page controls.
Now, keep in mind that I posted this information because I wanted you all to be aware of the pros and cons. If you ever want to upgrade your installation, then obviously we can't recommend that you go through the trouble of the conversion. Maybe in the future, (if we get enough requests), this will be something viable to work on. For now, changing the aspx pages directly would be the best option for customization.