WidgetProperties issue

Brijesh Singh asked on February 6, 2018 20:45

Hi Expert,

Can you please help me with below info.

~\CMS\CMSModules\Widgets\Dialogs\WidgetProperties_Properties.aspx.cs Above page is having function OnLoad and code is initializing Node to EditedDocument.

// Setup the current document EditedDocument = Node;

Can you please help me in finding as to where we are initialize this Node. Somehow, in my code it is pointing to wrong url after upgrade.

Recent Answers


Trevor Fayas answered on February 7, 2018 14:35

Are you getting an error? What so what is the error?

Did the upgrade have any errors in it? Did you correct then or restart? If the upgrade failed in any way it's not wise to use the site and better to try again or these issues will build.

0 votesVote for this answer Mark as a Correct answer

Brijesh Singh answered on February 7, 2018 15:02

There is no error but the performance is the concern. Wondering, on any widget selection, it is executing union of all page types fields. In Kentico 8.2, the node value was set to root but in new Kentico 9.0, it is setting sub site( bee below structure, for some reason not sure). So wanted to examine the code from where this node is getting set.

root --> site --> subsite

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on February 7, 2018 15:27

What is the symptom or the actual problem being caused? Do you have a widget's default value set and it's not setting it properly? Is it pulling in a value from another page for some reason?

I need to know what is the expected behavior and what is the current behavior, as the WidgetProperty just takes in a property for the widget...so it should just be saving some value.

0 votesVote for this answer Mark as a Correct answer

Brijesh Singh answered on February 13, 2018 16:57

Default value is set but still it is validating all page type fields by making unions. Not sure if it is introduced in Kentico 9 but don't see any reason of it. I am trying to find out the place where we are setting this value in widget properties.

EditedDocument = Node;

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.