How to get the list of scriptlets & conlibs used in AC pages

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
azar
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Sat Nov 27, 2010 11:43 am

How to get the list of scriptlets & conlibs used in AC pages

Post by azar » Thu Aug 04, 2011 12:01 pm

It would be useful to have a tool that builds a tree list of scriptlets and conlibs used in AC pages. We usually have a problem of figuring out where a specific scriptlet or conlib is being used. We are keeping an excel sheet which shows what the active scriptlets and conlibs in every page are. But maintaining this sheet is hard and not accurate. It looks something like this:
  • default.apsx
    • Layout:Three Column
    • Content:Homepage
      • conlib:Custom/myconlib1
      • conlib:colib2
    • Left Sidebar: Standard Sidebar
      • conlib:Custom/menu
    • Right Sidebar: Standard Sidebar
    • ...
  • Checkout/EditBillAddress.aspx
    • Layout:Checkout
    • ...
  • ... and like this for all the AC pages (i.e. the ones that inherit CommerceBuilder.Web.UI.AbleCommercePage)
A tool that automatically generates this list would be very useful.

In principle it is not very difficult, have to read each aspx file and see which scriptlets are being used. Then read all those scriptlets to find which conlibs are being used. The difficult part is reading the scriptlet customizations which are kept in an encrypted table (ac_SharedPersonalizations). The code that does this almost certainly exists in AC source code, so problem really is extracting it.

We want to start coding this tool. Wanted to see if anyone has tips, experience or maybe a ready code!

Post Reply