We managed to do it, we needed to add into the master template an if statement to check what xml package a category was using.
If anyone needs this we added a method to ShowEntityPage.cs
Code:
public string GetXmlPackageName()
{
m_EntityInstanceID = CommonLogic.QueryStringUSInt(m_EntityHelper.GetEntitySpecs.m_EntityName + "ID");
n = m_EntityHelper.m_TblMgr.SetContext(m_EntityInstanceID);
m_XmlPackage = Vortx.MobileFramework.MobileXmlPackageController.XmlPackageHook(m_EntityHelper.m_TblMgr.CurrentField(n, "XmlPackage").ToLowerInvariant(), m_SkinBase.ThisCustomer);
return m_XmlPackage;
}
We can the call this method in the master template
Code:
<% AspDotNetStorefront.SkinBase skinBase = new AspDotNetStorefront.SkinBase();%>
<% AspDotNetStorefront.ShowEntityPage SEP = new AspDotNetStorefront.ShowEntityPage(EntityDefinitions.readonly_CategoryEntitySpecs, skinBase); %>
<% string xmlPackageName = SEP.GetXmlPackageName(); %>