I've pages coming from custom page provider - I thought i should be able to insert dynamic content in these pages and save those back to their data source .
When I click on insert dynamic content icon on editor - instead of opening the \dialogos\dynamiccontent.aspx' it gives me 404 page not found error.
I further investigated and found that EPiServer is unable to find the 'CurrentPage' while opening the dialog . Here is the stack trace - and looks like it is trying to load the page from its internal db
EPiServer.Core.PageNotFoundException: Page 5011 was not found at EPiServer.DataAccess.PageLoadDB.LoadPageInternal(PageReference pageLink, Int32 languageBranchId, IDataReader reader) at EPiServer.DataAccess.PageLoadDB.<>c__DisplayClass1.<LoadPage>b__0() at EPiServer.DataAccess.DataAccessBase.<>c__DisplayClass1`1.<Execute>b__0() at EPiServer.DataAccess.DatabaseFactory.Execute[TResult](Action`1 method) at EPiServer.DataAccess.DataAccessBase.Execute[TResult](Action`1 action) at EPiServer.Core.PageProviderBase.<>c__DisplayClass4.<GetPageInternal>b__3() at EPiServer.Core.OptimisticCache`1.Read(String cacheKey, ReadAndCacheObject`1 readAndCacheObject)
I quess this has something to do with that you onluy get the page id and not the provider key
This is a workaround on sometjing simular
maybe that can help you
We are already using this adapter - I've now found why this is happening but still dont know how to resolve this . We are using CMS 6 which was upgradred from CMS 5 site so still using old CMS episerver editor . However when I changed my page to use CMS 6 (TinyMce), it works fine
but throws 404 error for CMS 5 editors. I'm currently investigating this but please do let me know if you can see why this is happening.