Bug reports Found a bug? Post it here please.
Version 7.x > Bug reports > Updating Webparts View modes: 
User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/10/2013 11:13:31 AM
   
Updating Webparts
I created a webpart in /CMSWebparts/MyFolder/ and registered it in CMSSiteManager/Development/Webparts. I then decided it wasn't in the right folder so I moved it to /CMSWebparts/YourFolder/ and changed the file name and category in CMSSiteManager. On all the pages where the webpart is referenced, it is still looking for the physical files in the old location (MyFolder). Where is this old location stored and why wouldn't the page template grab the webpart information based on the latest version of the webpart?

When I checked the page template XML, it shows a webpart zone that isn't displayed on page either (and I'm using a shared layout). Maybe I'm not looking in the right place but how does a page template know where to look for the webparts on it or is that at the layout level?

I'm using v7.0.7 with versioning and check-in/check-out.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/10/2013 12:39:30 PM
   
RE:Updating Webparts
Ok so I'm feeling like an idiot now, I failed to change my .ascx file CodeFile property so it was looking in the wrong location for the .cs file and erroring out. Worst part is I spent over 2 hours trying to debug this!

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 1/11/2013 9:35:36 AM
   
RE:Updating Webparts
Hi,

Don't worry about that.. things like this also happen to us (and I suppose to everybody) sometimes. Anyway, it's great that you have fixed it by yourself!

Don't forget to take a break during a work... clear mind often brings a new ideas :)

Best regards,
Martin Danko