API
Version 7.x > API > Changes in API between 6 and 7 View modes: 
User avatar
Member
Member
david.slavik-sprinx - 2/24/2013 1:46:30 AM
   
Changes in API between 6 and 7
Hello Kentico team,

can you help me find equivalent methods for old solution these things?

int nodeID = QueryHelper.GetInteger("nodeid", 0);
string mode = QueryHelper.GetString("mode", "new");

Both I need for work with form control. Second I used for difference between insert and edit mode...

Děkuji moc!
S pozdravem David Slavík

User avatar
Member
Member
david.slavik-sprinx - 2/24/2013 2:04:39 AM
   
RE:Changes in API between 6 and 7
Sorry, now I did it...

this works fine properly...
int nodeID = QueryHelper.GetInteger("nodeid", 0);

And document mode now I deal with following:
if (Form.Mode != CMS.ExtendedControls.FormModeEnum.Insert)

Díky
David Slavík

User avatar
Kentico Support
Kentico Support
kentico_janh - 2/25/2013 4:50:41 AM
   
RE:Changes in API between 6 and 7
Hello,

Thanks for sharing with others!

Best regards,
Jan Hermann