deanebarker / episerver-dynamic-templates Goto Github PK
View Code? Open in Web Editor NEWEpiserver Dynamic Templates
License: MIT License
Episerver Dynamic Templates
License: MIT License
The DynamicTemplatesResolver
is an injected service, so this could be changed at the implementation level. But an argument could be made that a dedicated tab should be the default.
The code in "the Template
property" (see parenthetical under Step 6 of the demo install guidelines), needs to be encapsulated in a custom property. Currently, the property looks like this:
public virtual ContentArea Template
{
get
{
var localValue = this.GetPropertyValue(p => p.Template);
var locator = ServiceLocator.Current.GetInstance<IDynamicTemplateResolver>();
return locator.GetTemplate(localValue, this);
}
set { this.SetPropertyValue(p => p.Template, value); }
}
If this was a custom property, there are two benefits:
The ITemplatingService
has a couple of methods that expose TemplateContext
, which is a Fluid-specific type. This really defeats the purpose of DI. These need to be removed so that interface isn't implementation-specific.
It should be possible for the editors to use regular on-page-edit for the properties even though they are shown through a template.
When editors use the templates, they have to type in the names of the source properties. It would be much nicer, if they could pick them from a list.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.