Comments (4)
Yes that is incorrect. I will patch the docs. Thanks!
On Oct 20, 2014, at 4:55 AM, Markus Ullmark [email protected] wrote:
Hi,
I am trying out Synthesis, very nice work, however I tried adding Items synthesis-style, but found that it didn't work.from readme;
// add a new subitem
var editing = foo.Add("Hello world");
But it seems that, that function requires a concrete class (from the code);
https://github.com/kamsar/Synthesis/blob/master/Source/Synthesis/StandardTemplateItem.cs#L405—
Reply to this email directly or view it on GitHub.
from synthesis.
Is there a way to make it work with interface? Since the concrete classes doesn't have a constructor testing aren't possible when using that .Add<T>
function.
the interfaces also contain the template ID but in an attribute. Or you could use convention to find the correct concrete. I might just submit a PR.
from synthesis.
empty constructor that is...
from synthesis.
If you're interested in having .Add lookup the template off an interface
attribute, that'd be a great idea.
On Tue, Oct 21, 2014 at 12:22 AM, Markus Ullmark [email protected]
wrote:
empty constructor that is...
—
Reply to this email directly or view it on GitHub
#10 (comment).
from synthesis.
Related Issues (20)
- "Multilist with Search" field type missing from standard configuration HOT 3
- Regenerate Now button goes to notfound page HOT 25
- IStandardTemplateItem.Add overload that takes a newItemID HOT 3
- [BUG] Synthesis tries to call Sitecore.UsedImplicitlyAttribute which is deprecated HOT 10
- Add flexibility with ResilientExecuteRenderer to allow customized exception behavior HOT 2
- Add ability to use TestHyperLink ToLinkField() and determine if the link type is external or internal
- Synthesis issue with sitecore jss 15.1 HOT 3
- Bug: HyperlinkField.Href not working for Media using Insert Link HOT 4
- Sitecore Forms disappear from form listing after Synthesis Solr search is run HOT 3
- Image in Editor adding width and height properties HOT 3
- IHyperLinkField RenderWithBody usage HOT 1
- PackageReference usage for Synthesis NuGet causes incorrect deployment for config files. HOT 1
- Can't keep customer or partner name in naming helix projects (project namespace) as Synthesis.model.cs throws error HOT 10
- ContainsOr with an ItemReferenceListField doesn't work
- Access Denied message even though logged into Sitecore HOT 3
- Synthesis 9.1.0.2 in Sitecore 9.3 HOT 9
- Not able to rebuild models HOT 10
- Images do not render from Content Hub DAM HOT 5
- Unpublished datasources results in exception in debug mode HOT 11
- Sitecore namespace conflicts HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from synthesis.