Hi Filip,
Thanks for the reply. I have some more questions:
1) when you said:
"Additionally, probably all methods use CountryThreeLetterCode as parameters so if you change your custom control to use this column, it should not affect any other process."
Did you mean "two" not "three"? I assume that is what you meant since the "two" letter code was causing my problem but just wondering if you can confirm that the three letter code is not used by any internal Kentico functions so if I use that for a custom purpose it will not break anything.
2) I am not sure I like this approach because even if your answer to my question 1 above is that I can use the three letter code field for a custom purpose, I worry about that breaking something if in a future release you guys use it for something. SO, I looked into adding a field to that system table but I am not sure that will work. I found this thread:
http://devnet.kentico.com/Forums.aspx?forumid=45&threadid=16556but it is for version 5 and the instructions for modifying the site manager section don't match version 7. I was able to find the relevant files in version 7 but I don't see how I can use Get/SetValue as there seems to not be any code in the code behind, for example, here is the New.aspx.cs code:
// Breadcrumbs
[Breadcrumbs(2)]
[Breadcrumb(0, "Country_Edit.ItemListLink", "List.aspx", null)]
[Breadcrumb(1, "Country_Edit.NewItemCaption")]
// Title
[Title("Objects/CMS_Country/new.png", "Country_New.HeaderCaption", "new_country")]
public partial class CMSModules_Countries_Pages_Development_Country_New : SiteManagerPage
{
}
Also, I noticed if I run this SQL:
UPDATE dbo.CMS_Class SET ClassShowAsSystemTable = 1 where ClassTableName ='cms_country'
It does add the country table to the system tables admin section in site manager but as soon as I save a change, Kentico seems to set this field back to 0 on me! Is this not something that you can do in version 7? Should I just use the three code field as a custom field? I just hate doing it that way, it seems sloppy, and what if I end up needing two fields. It would be cleaner to add a custom field(s) to the system table if this is possible in version 7. Please let me know and if possible, give me an idea on how to do so in version 7.
Thanks,
Matt