Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > content before and content after question View modes: 
User avatar
Member
Member
gliker-inorbital - 2/24/2011 3:42:36 PM
   
content before and content after question
Hi guys,

Is it normal that webpart needs to be removed and embedded again if I want to see changes to the code I added in content before field. Looks like our local cms is ignoring all changes added there.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 2/25/2011 3:17:49 AM
   
RE:content before and content after question
Hello.

Usually the change it visible immediately and there is no need to remove web part first, however it is possible that this content is cached, so you see it even after you changed it. Could you please try to change this code, do not delete web part, delete cache and see the difference? Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
gliker-inorbital - 2/25/2011 10:26:28 AM
   
RE:content before and content after question
Hi Radek,

Thanks for reply. So just to make sure we are on the same page I prepared few screenshots. I already embedded this webpart on number of pages. When I add the code in "content after" under properties that works and changes are visible immediately, but that works only for that webpart instance.

User image

My goal is to update "content after" property for all instances, on any template, for this webpart. So I went to site manager and updated "content after" for this webpart there. (don't worry about the webpart name I used different in previous example)

User image

I was expecting this would immediately reflect on all instances of this webpart but there is no change unless I remove and embed webpart again.

I tried clearing browser cache, clearing CMS cache and memory but nothing helped.

Is this normal or we are still having some kind of caching issue here?

Thanks!


User avatar
Member
Member
gliker-inorbital - 3/1/2011 9:55:44 AM
   
RE:content before and content after question
Hi Radek,

Would you please let me know if procedure I described above is correct. Thanks.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/9/2011 9:14:28 AM
   
RE:content before and content after question
Hello.

Thank you for clarification that you did this change in Site Manager -> Development -> Web parts section. So far I thought we are talking about changing web part properties on page template directly, in CMSDesk -> Content mode.

In this case, this behavior (that you have for remove web part and add it again to reflect changes) is correct and by design. Let me explain. Web part properties are bound (are stored in) given page template. When you add some web part into a page (page template), set its properties and save changes, web part´s configuration is saved into database and bound to given page template. Only way how to update this configuration for given page template is to save web part again (or remove / add in your case, due to nature of change you have done).

When you change some property (define its default value) in Site Manager -> Development -> Web parts section, page template where this web part is used „does not know“ about this change, since it is still using what configuration is stored DB from last web part´s save and this is not changes, if you change it in Site Manager section, since this is page template – related configuration.

Best Regards,
Radek Macalik

User avatar
Member
Member
gliker-inorbital - 3/9/2011 9:22:07 AM
   
RE:content before and content after question
Hi Radek,

Thanks for reply. We needed this clarification just to make sure our CMS was setup properly. In future we will probably embed necessary changes in code behind so they reflect across the website instantly.

Have a great day.