I would like to thank you for the answers. I know it has been 10 months since I added the field ClientName to CMS_Site table and it works just fine. Now we need to display that in Sites page (site_list.aspx). I was trying to change the site_list.xml like this:
<?xml version="1.0" encoding="utf-8" ?>
<grid>
<actions parameters="SiteID">
<action name="editSite" caption="$General.Edit$" icon="Edit.png" />
<action name="delete" caption="$General.Delete$" icon="Delete.png" />
<separator />
<action name="editContent" externalsourcename="editcontent" caption="$Unigrid.SiteList.Actions.EditContent$" icon="Editcontent.png" />
<action name="openLiveSite" externalsourcename="openlivesite" caption="$Unigrid.SiteList.Actions.OpenLiveSite$" icon="Livesite.png" />
<separator />
<action name="start" caption="$Unigrid.SiteList.Actions.Start$" icon="Run.png" />
<action name="stop" caption="$Unigrid.SiteList.Actions.Stop$" icon="Stop.png" />
<separator />
<action name="export" caption="$Unigrid.SiteList.Actions.Export$" icon="Exportsite.png" />
</actions>
<columns>
<column source="SiteDisplayName" caption="$general.sitename$" wrap="false" localize="true" >
<filter type="text" />
</column>
<column source="##ALL##" externalsourcename="ClientName" caption="Client name" wrap="false">
<filter type="text" />
</column>
<column source="SiteDescription" caption="Plan name" wrap="false" width="100%" localize="true" >
<filter type="text" />
</column>
<column source="SiteDomainName" caption="$Unigrid.SiteList.Columns.SiteDomainName$" wrap="false">
<filter type="text" />
</column>
<column source="##ALL##" externalsourcename="sitestatus" caption="$Unigrid.SiteList.Columns.SiteStatus$" wrap="false" />
<column source="Documents" caption="$general.documents$" wrap="false" />
<column source="##ALL##" externalsourcename="culture" caption="$Unigrid.SiteList.Columns.DefaultCulture$" wrap="false" />
</columns>
<objecttype name="cms.sitelist" columns="SiteID, SiteName, SiteDisplayName, SiteDescription, SiteStatus, SiteIsOffline, SiteDomainName, Documents" />
<options>
<key name="DisplayFilter" value="true" />
</options>
</grid>
but I am getting error
“[UniGrid] : Error during reloading data.” which is caused by
<objecttype name="cms.sitelist" columns="SiteID, SiteName, SiteDisplayName,
ClientName,
SiteDescription, SiteStatus, SiteIsOffline, SiteDomainName, Documents" />
When I remove ClientName I get in all rows of that column “
System.Data.DataRowView” text.
The new SiteDescription column works OK probably because it is cms.site object system property, but not the custom field.
What is the magic to do?
Thanks,
Vlado