Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyone got a trick for using personalization along with a new template in a resource package? #150

Open
trendoid opened this issue Aug 22, 2024 · 0 comments

Comments

@trendoid
Copy link

When use the minimal resource package and add my own template it works fine without personalization. But then I can't personalize that template. It displays in the editor but completely disappears on the frontend. If I use a built-in template, personalization works but my websites look and feel needs to be highly customized.

Anybody got a trick for getting personalization and customized templates to work at the same time?

https://github.com/Sitefinity/sitefinity-aspnetcore-mvc-samples/tree/master/src/resource-package-minimal

`Microsoft.Hosting.Lifetime[0]

Content root path: C:\Users...\Baselines\SItefinity_15_1_8325\Renderer

fail: Progress.Sitefinity.AspNetCore.ActionResults.MetadataViewComponentActionResultExecutor[0]

Exception occurred while executing the ViewComponent: SitefinityContentList

System.InvalidOperationException: The view 'Components/SitefinityContentList/ListPressReleases' was not found. The following locations were searched:

/Views/Components/Components/SitefinityContentList/ListPressReleases.en.cshtml

/Views/Components/Components/SitefinityContentList/ListPressReleases.cshtml

/Views/Shared/Components/SitefinityContentList/ListPressReleases.en.cshtml

/Views/Shared/Components/SitefinityContentList/ListPressReleases.cshtml

at Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.EnsureSuccessful(IEnumerable`1 originalLocations)

at Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult.ExecuteAsync(ViewComponentContext context)

at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context)

at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, Object arguments)

at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewComponentResultExecutor.ExecuteAsync(ActionContext context, ViewComponentResult result)

at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewComponentResultExecutor.ExecuteAsync(ActionContext context, ViewComponentResult result)

at Progress.Sitefinity.AspNetCore.ActionResults.MetadataViewComponentActionResultExecutor.ExecuteSingleComponent(ActionContext context, IViewComponentContext viewComponentContext, Boolean isEdit)

fail: Progress.Sitefinity.AspNetCore.ActionResults.MetadataViewComponentActionResultExecutor[0]

Exception occurred while executing the ViewComponent: SitefinityContentList

System.InvalidOperationException: The view 'Components/SitefinityContentList/ListPressReleases' was not found. The following locations were searched:

/Views/Components/Components/SitefinityContentList/ListPressReleases.en.cshtml

/Views/Components/Components/SitefinityContentList/ListPressReleases.cshtml

/Views/Shared/Components/SitefinityContentList/ListPressReleases.en.cshtml

/Views/Shared/Components/SitefinityContentList/ListPressReleases.cshtml

at Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.EnsureSuccessful(IEnumerable`1 originalLocations)

at Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult.ExecuteAsync(ViewComponentContext context)

at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context)

at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, Object arguments)

at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewComponentResultExecutor.ExecuteAsync(ActionContext context, ViewComponentResult result)

at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewComponentResultExecutor.ExecuteAsync(ActionContext context, ViewComponentResult result)

at Progress.Sitefinity.AspNetCore.ActionResults.MetadataViewComponentActionResultExecutor.ExecuteSingleComponent(ActionContext context, IViewComponentContext viewComponentContext, Boolean isEdit)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant