master page not up to date in preview mode

Chris P asked on January 19, 2015 04:09

Hi, I've included a script in the master page in kentico 8 which does not appear in the page source in preview mode.

I've tried clearing the cache and restarting the application to no avail. There are no workflows in the site. It seems to only work when I exit preview mode.

Does anyone know how to update the master page while still in preview mode?

Correct Answer

Jan Hermann answered on January 20, 2015 08:31

Hello,

Aren't you using clean version of Kentico 8.1? There was a bug in this version when anything placed on master page wasn't inherited when you were in preview mode. This was fixed in hotfix 8.1.5, but I would recommend to apply the latest hotfix anyway.

Best regards,
Jan Hermann

3 votesVote for this answer Unmark Correct answer

Recent Answers


Virgil Carroll answered on January 19, 2015 19:08

Chris,

Can you confirm what you mean by you 'cleared the cache'? Did you do this in your browser or at the Kentico system settings? Is your script inline in the Master Page or an included JavaScript file? If it's included, are you using the Kentico JavaScript component or storing it on the server? This could really be a few things going on, so if you can provide some of those answers might be able to point you in the right direction.

0 votesVote for this answer Mark as a Correct answer

Chris P answered on January 19, 2015 23:46 (last edited on January 19, 2015 23:47)

Yep, under Content Management -> pages, on the root page -> master page tab, there are a few paces I can enter html. The section that is still in the head tags is where I've added a script tag. After this has been saved I can see this when I view source only if I'm not in preview mode.

On the root page In the general tab I've set "use cache output" to no, "allow file system cache" no and clicked "clear output cache" and saved the page.

In Debug I cleared the cache and I've gone to System, clearing unused memory, performance counters, cache and restarted the application. In IIS I've stopped the site, restarted the app pool, started the site and cleared my browser cache and in preview mode that content still won't show. I've tested in other browsers too, in all of them it's only broken in preview mode.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on January 20, 2015 01:11

Clear your browser cache as well.

2 votesVote for this answer Mark as a Correct answer

Chris P answered on January 21, 2015 03:30

Thanks Jan, I've applied the latest Hotfix and that's worked.

0 votesVote for this answer Mark as a Correct answer

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