Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Execute other functions -- lifecycle

$
0
0
Yeah, that is a problem...

One approach is to copy all the code of https://github.com/Orckestra/C1-CMS/blob/312d7c231657181f6bf8a1111bc64594591f0a53/Composite/Plugins/PageTemplates/Razor/RazorPageTemplateProvider.cs and https://github.com/Orckestra/C1-CMS/blob/312d7c231657181f6bf8a1111bc64594591f0a53/Composite/Plugins/PageTemplates/Razor/RazorPageRenderer.cs into your own classes, and replace the RazorPageTemplateProvider in composite.config with your new and modified version.

That way you can make sure to add the necessary items to the Context Container before executing TemplateDefinitionHelper.BindPlaceholders(...)

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>