<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aniko Litvanyi on Medium]]></title>
        <description><![CDATA[Stories by Aniko Litvanyi on Medium]]></description>
        <link>https://medium.com/@anikolitvanyi?source=rss-1d33b0c626d7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fjfrZ3SceZYPH7V2qxTs1A.jpeg</url>
            <title>Stories by Aniko Litvanyi on Medium</title>
            <link>https://medium.com/@anikolitvanyi?source=rss-1d33b0c626d7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:11:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anikolitvanyi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Automate static site builds with sensenet webhooks]]></title>
            <link>https://medium.com/sensenet/automate-static-site-builds-with-sensenet-webhooks-9d2f6bdf5067?source=rss-1d33b0c626d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d2f6bdf5067</guid>
            <category><![CDATA[sensenet]]></category>
            <category><![CDATA[netlify]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[webhooks]]></category>
            <category><![CDATA[integration]]></category>
            <dc:creator><![CDATA[Aniko Litvanyi]]></dc:creator>
            <pubDate>Wed, 12 May 2021 14:14:29 GMT</pubDate>
            <atom:updated>2021-05-12T14:14:29.689Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dagA57mB-5UQB13rYsN2gw.jpeg" /></figure><p>Integration is a key aspect of digital projects, since preferably, all services used in a project should be connected and work together seamlessly. With sensenet webhooks and the built-in webhook templates it’s super easy to achieve such goals. Let’s see how!</p><h3>What is a webhook</h3><p>In short, using a webhook is a great way for your application to receive events or notifications from a service.</p><p>In terms of sensenet it means your repository can send notifications if something happens with a content. You can configure these webhook subscriptions as you wish, you can set what type of content, which subtree, and what specific events to work with and of course you can set the scope of the data (payload) to be sent.</p><p>Webhooks can not only notify your app about what’s happening in your content repository, but also builds up connection between sensenet and your favorite external services. They can be used in many very different cases from sharing information in social media about content changes till rebuilding static websites automatically.</p><h3>Triggering static site builds</h3><p>Once you’ve setup a static site that pulls in your content during the build process, you’re ready to configure webhooks that will be triggered when you are working with content in your repository. The next example teach you how to setup webhooks to trigger builds and deployments of static sites on Netlify, but this is just an example. sensenet of course provides you various other options for Heroku fans, Travis CI users and Gatsby Cloud subscribers among others. Check currently available templates <a href="https://docs.sensenet.com/integrations/webhook">here</a>. Webhook templates help you create webhooks subscription for specific external services with just a few steps, by filling only a few required fields. Following example will teach you how to configure a webhook to trigger a Netlify build with a few steps.</p><h3>Configuring a Netlify build hook</h3><p>First, go to your static site on Netlify and create a build hook for sensenet (it can be found under <em>Site &gt; Site settings &gt; Build &amp; Deploy &gt; Build hooks</em>). This will be the url that builds up the connection between your repository and the static site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/0*SuKwpO25C8ZGnYKB.png" /></figure><p>Then create a new webhook through sensenet admin ui ( <em>Settings &gt; Webhooks</em>) choosing Netlify template:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/0*Mc8AMKwOs9IqY_gc.png" /></figure><p>There are two required fields on the form to fill out: <em>Name</em> and <em>Netlify build hook URL</em> (the url you’ve created above at Netlify <em>Build and Deploy</em> page). You can leave all other fields at default (you can change them at any time later) and that’s it.</p><p>By default, this webhook will:</p><ul><li>Trigger a Netlify build</li><li>Triggered when something is happened with a <strong>File</strong> type content under <strong>/Root</strong> container</li><li>Triggered on all available events (Create, Modify, Delete, Checkout, Draft, Approve, Pending, Reject)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8qOSH2lXVGyFplUG.png" /></figure><p>From now on, if a file is uploaded to the content repository your Netlify site gets built and deployed automatically. Many other webhook templates make it easier to work with external services and sensenet, and of course you have the freedom to configure a webhook as needed for your own project.</p><p>If you don’t have a sensenet repository, now is a great time to <a href="https://profile.sensenet.com/?redirectToLogin">sign up</a>!</p><p><em>Originally published at </em><a href="https://www.sensenet.com/blog/2021-05-13-automate-static-site-builds-with-sensenet-webhooks"><em>https://www.sensenet.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d2f6bdf5067" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sensenet/automate-static-site-builds-with-sensenet-webhooks-9d2f6bdf5067">Automate static site builds with sensenet webhooks</a> was originally published in <a href="https://medium.com/sensenet">sensenet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6 ways to unlock true collaboration with a headless cms]]></title>
            <link>https://medium.com/sensenet/6-ways-to-unlock-true-collaboration-with-a-headless-cms-c434aa5527b6?source=rss-1d33b0c626d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c434aa5527b6</guid>
            <category><![CDATA[headless-cms]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[collaboration]]></category>
            <dc:creator><![CDATA[Aniko Litvanyi]]></dc:creator>
            <pubDate>Wed, 10 Mar 2021 09:19:05 GMT</pubDate>
            <atom:updated>2021-03-10T09:19:05.231Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eDqgyeQNvXD7Vjfsd1L0qg.jpeg" /></figure><p>Working on a project in a cross-functional team can be full of pitfalls. I have some tips on how you could use <a href="https://sensenet.com/">sensenet</a> avoiding them and boosting team productivity at the same time.</p><h3>1. Versioning and Approval</h3><p>Basic building blocks of a collaborative content management process are the different states of content aka. <a href="https://docs.sensenet.com/concepts/collaboration/01-versioning">versions in terms of sensenet</a>. The whole lifecycle of a content from the first draft till the final public version can be tracked using version numbers. Set versioning and approval on a container and your team will be able to follow if a content should be reviewed, corrected or approved both on the admin surface and with the API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*74g7jvkgcgKTG2vH.png" /></figure><h3>2. Sharing</h3><p>With sensenet you can invite your teammates or customers to share content with them, no matter how far they are from you at the moment. Registered users or groups can join you to work on the same content on various levels (view, edit) and you can share link of a content with external users let them, review it or even work together without them having to register. Work together remotely like pros, give your projects a collaborative boost with <a href="https://docs.sensenet.com/concepts/collaboration/06-sharing">content sharing</a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tf7QHyHLTQsvlIL4.png" /></figure><h3>3. Preview comments</h3><p><a href="https://docs.sensenet.com/concepts/document-previews">Document preview feature</a> of sensenet is a useful teamwork tool in itself letting you upload your docs and share them with people who don’t have the tools to open them. To make it more powerful we have added the possibility to comment any part of the preview images. This way you could even discuss the design plans with the customer, moving the whole project and all the related content to the same hub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tcuIKlUM0KCVjStP.png" /></figure><h3>4. Office Online editing</h3><p>Why would you use different tools for each work phase when you can write, review, discuss and correct docs directly in the browser? <a href="https://docs.sensenet.com/concepts/collaboration/03-office-online-editing">Office Online editing</a> is integrated to sensenet making it possible to collaborate on documents as you are used to on your own desktop computer or in google docs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9pvQsAO_aSOV8uen.png" /></figure><h3>5. Notifications</h3><p>Communication is a key element of good teamwork, everyone needs to know their tasks and where the process is going: we need to give and receive feedback on what affects someone else and what may affect the progress of the project. sensenet, through <a href="https://docs.sensenet.com/concepts/webhooks">webhooks</a>, allows project participants to be notified when and how it is most convenient for them, whether it’s an email notification, a slack message, or a trello note.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*9YIJFFB5nM3jtikl.gif" /></figure><h3>6. Workspaces</h3><p>Want to get the most out of teamwork and collaboration? <a href="https://docs.sensenet.com/concepts/collaboration/04-workspace">sensenet workspaces</a> are made for you. Using workspaces lets you create separate spaces for separate projects with their own content structure, custom permission settings, local teams and roles. Workspaces may contain sub-workspaces, and further sub-workspaces as well, enabling you to create the best solution based on your business needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/0*KIt9NGQVDCgmcfdn.gif" /></figure><p>Okay, that sounds good, but how is it related to a headless CMS? Are these things bounded only to sensenet’s admin surface? How can I turn these features to my own advantage, in addition to using the existing user interfaces? Good news, every above mentioned feature is fully available through sensenet’s REST API. Yes, you can build your own app using these things as a strong foundation complemented by a customized user interface created by you. Interested to try? <a href="https://profile.sensenet.com/?redirectToLogin">Come and register a free sensenet repository!</a></p><p><em>Originally published at </em><a href="https://www.sensenet.com/blog/2021-03-10-6-ways-to-unlock-true-collaboration-with-a-headless-cms"><em>https://www.sensenet.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c434aa5527b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sensenet/6-ways-to-unlock-true-collaboration-with-a-headless-cms-c434aa5527b6">6 ways to unlock true collaboration with a headless cms</a> was originally published in <a href="https://medium.com/sensenet">sensenet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Insight to SNaaS delivery process]]></title>
            <link>https://medium.com/sensenet/insight-to-snaas-delivery-process-77830df6c454?source=rss-1d33b0c626d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/77830df6c454</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[headless-cms]]></category>
            <category><![CDATA[continuous-delivery]]></category>
            <dc:creator><![CDATA[Aniko Litvanyi]]></dc:creator>
            <pubDate>Mon, 04 Jan 2021 09:32:30 GMT</pubDate>
            <atom:updated>2021-01-04T09:33:20.193Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DDkf6kMwQSeR5QnwGEyl0Q.jpeg" /></figure><p>At sensenet, we are working on making the product and our services better with fixes, improvements and new features every day. Since we wanted to provide a predictable and reliable service in addition to being constantly updated and improved we had to work out a process to make the updates fairly frequent and seamless yet valuable. The following article details our delivery system.</p><p>sensenet is designed and developed by a cross-functional team, which means we have to manage and improve multiple code bases developed with different kind of technologies and frameworks. Since sensenet is open-source, most of the source code from the core layer to client packages is shared publicly on <a href="https://github.com/SenseNet">GitHub</a>. Beside source code our text resources (docs and even this blog post) are stored and shared on GitHub as well keeping our work and the whole process open and transparent.</p><p>We’re using GitHub not only for versioning and publishing the product source code and the documentation, but also for supporting our teamwork and transparency of our processes toward the customers and the community. Our team is working in a scrumish way along sprints, milestones, releases, epics and issues, and taking advantages of GitHub and <a href="https://www.zenhub.com/">ZenHub</a> we can share everything with you. The product roadmap, the team backlog and everything we’re working on is available, so you can not only follow but also influence the product development process. A bug’s lifecycle from detecting it till publishing the fix to the production environment can be easily followed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Odhs9yUEwS81EdEB.jpg" /></figure><p>Before customers get the fixes and the new features the changes are checked several times on multiple environments. During development automated daily builds provide the possibility of internal testing in staging and pre-production environments. This way we can be sure that when we get to the release all the pieces are working together as they should.</p><p>New things are not only reviewed by multiple developers but also tested with automated unit and integration tests and they can only be merged when all the checks were successful. After that the change gets to another test phase which means it becomes published to our test environments. If a change proves reliable during the test phase, it will be included in the next release. We have multiple isolated environments for all the phases (development, test, demo, etc.). In the next section you can see how and when they are updated.</p><p>We publish new releases in every four weeks. Since we have to create new packages for multiple platforms and multiple services at once, we decided to go along with this regularity, because for now it serves product development and customers the best. This way we can be sure that things we release from our hands work well both for SNaaS customers and for the open source community.</p><p>We update the production environments (customer repositories, central system, etc.) in every fourth monday, which means it is easy to plan with both fixes and new features. We always share detailed change logs per packages/components, so you can be sure you won’t miss anything.</p><p><a href="https://www.sensenet.com/backend-updates">Backend updates</a> ⚙</p><p><a href="https://www.sensenet.com/frontend-updates">Frontend updates</a> 💅</p><p>Operating cloud-base content management services requires high-quality security regulations and standards. These thing are extremely important for us too. Individual repositories are totally isolated, which means both database and service layer are separated per repository. This way we can meet today’s standards in data security, isolation, scalability and backup, giving us the advantages in terms of security issues and updates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SyvkAmaIvYcgb8wj.jpg" /></figure><p>Next year will mostly be about optimizing and automating release, install and deployment processes. So there is still a long way to perfection, but the path is clear. Come and join us in our journey, <a href="https://is.sensenet.com/Account/Registration?returnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id=spa%26redirect_uri=https%253A%252F%252Fprofile.sensenet.com%252Fauthentication%252Fcallback%26response_type=code%26scope=openid%2520profile%2520sensenet%26state=022ed1044fb34dc5aea99fe62069a6df%26code_challenge=YmvfTX0N9-Wj6bKfndXk-q7ZVyldVoc1DSLkRQRtgFo%26code_challenge_method=S256%26response_mode=query%26snrepo=https%253A%252F%252Fsnover.service.sensenet.com">request a free sensenet repository</a>, try the most flexible and versatile headless CMS!</p><p>See you in SNaaS! 🚀🎉</p><p><em>Originally published at </em><a href="https://www.sensenet.com/blog/2020-12-15-insight-to-snaas-delivery-process"><em>https://www.sensenet.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77830df6c454" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sensenet/insight-to-snaas-delivery-process-77830df6c454">Insight to SNaaS delivery process</a> was originally published in <a href="https://medium.com/sensenet">sensenet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using your own product — a headless CMS case study]]></title>
            <link>https://medium.com/sensenet/using-your-own-product-a-headless-cms-case-study-3ac3dda6b9fe?source=rss-1d33b0c626d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ac3dda6b9fe</guid>
            <category><![CDATA[sensenet]]></category>
            <category><![CDATA[headless-cms]]></category>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[saas]]></category>
            <dc:creator><![CDATA[Aniko Litvanyi]]></dc:creator>
            <pubDate>Wed, 02 Dec 2020 13:38:16 GMT</pubDate>
            <atom:updated>2020-12-02T16:58:53.789Z</atom:updated>
            <content:encoded><![CDATA[<h3>Using your own product — a headless CMS case study</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GpxGLJl4jl9pwKpVqFzf4Q.jpeg" /></figure><p>If you followed us, you could have read it a million times already, we are about to launch sensenet in SaaS model — which is a huge change from selling a traditional (E)CMS — to serve our customers with a cloud-based, headless CMS. These changes not only affected our sales and development processes but also our communication and at the same time it made necessary to update our public website. Easiest thing ever, since the product we develop is perfect for creating public websites (among many other things). The old website was built with the previous version of the product which was a complex ECMS, so the time was perfect not only to redesign the site and update every content, but to test the new model in this specific scenario.</p><h3>One repository to rulem them all</h3><p>The public website is one of the main pillars of a company’s communication and must convey the same clear message along with all the other channels. Technically it means you have to create and maintain tons of content day to day, collaborate on them with the other editors and publish them on multiple platforms on different devices. Content makes the world go ‘round, but fortunately in sensenet everything is a content and being a real content-based solution for every business problem, it offers the perfect mixture for projects that are about sharing information.</p><p>The long and the short of it is that we started the project with content, working out the model and the structure. This step is the core of such projects and it is seamless with sensenet content types. Taking advantage of type inheritance and the endless possibilities of expanding and combining these types we could freely shape the content model till it fitted our needs.</p><h3>Collaboration + security = faster development</h3><p>At the launch we had 25+ custom content types and 500+ contents and they were created not only to vary metadata (fields) but also for handling security issues. Thanks to the tree-based content structure we could separate content branches for developers and editors based on their different permission levels. This way they could work simultaneously on the project without disrupting each other’s work.</p><p>As for any company, collaborative work is a key for us and by using a content-based solution to this website revamp project we also learned how fast we can work together. As the model and the structure was ready, both content editors and developers could start working on their part: editors produced the content, developers set up and built the single page application using sensenet’s super-flexible REST API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fIDU9effHNHFMA1j.png" /></figure><h3>One content, multiple platforms</h3><p>Want to multiply the number of readers of your content without the headache of multiply them per platform and device? Use a headless CMS, use sensenet! 😊 We’ve built up both desktop and mobile version of our website, our blog and even our in-house administration system on contents (articles, files, blog posts) shared across these solutions without having to multiply them. An endless wealth of possibilities, isn’t it? If we figure out someday, that we want a mobile app, we can build it upon the same repository, with the same contents using the same API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tAHIWMDcoYX6xP9g.png" /></figure><h3>SNaaS for the future</h3><p>Our previous website — made with the old product — was built using a lot of old technologies both server and client-side. These technologies were decent and modern back in the day, but as time goes on, every technology, framework and library gets older, loses its support and makes old projects unsustainable. If we stick to traditional CMS’ then this usually means that the project needs to be rebuilt from scratch from content to user interface. We have run into this problem many times, but we won’t any more. sensenet as a headless CMS gives us the freedom of changing the UI, adding new features or integrate it with anything without having to touch the repository and the backend. sensenet’s REST API is future-proof and while we hope that <a href="https://nextjs.org/">Next.js</a> (chosen as the basis for our website) will stay supported and popular for a long time, we only have to replace the UI if the time comes.</p><h3>Sum up: Why we chose sensenet? (and not because it is our solution🙂)</h3><ul><li><strong>short deadline</strong>: the whole project (including UX and UI designing phase) had to be completed in a month and a half,</li><li><strong>productivity</strong>: developers and content editors could work simultaneously</li><li><strong>multi-platform</strong>: a content should be created only once, but can be published in multiple forms</li><li><strong>gentle learning curve</strong>: developers can choose their preferred technology to connect to sensenet</li><li><strong>no technical know-how for the editors</strong>: they only have to use a WYSIWYG editor on the admin surface</li><li><strong>permissions for users in different roles</strong>: editors and developers can access only the appropriate content branches</li><li><strong>flexible type system</strong>: content can be supplemented with various types of metadata</li></ul><p><em>Originally published at </em><a href="https://www.sensenet.com/blog/2020-11-30-using-your-own-product-a-headless-cms-case-study"><em>https://blog.sensenet.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ac3dda6b9fe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sensenet/using-your-own-product-a-headless-cms-case-study-3ac3dda6b9fe">Using your own product — a headless CMS case study</a> was originally published in <a href="https://medium.com/sensenet">sensenet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rebirth of sensenet docs]]></title>
            <link>https://medium.com/sensenet/rebirth-of-sensenet-docs-a05271f85b1f?source=rss-1d33b0c626d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a05271f85b1f</guid>
            <category><![CDATA[sensenet]]></category>
            <category><![CDATA[gatsbyjs]]></category>
            <category><![CDATA[community]]></category>
            <category><![CDATA[developer-documentation]]></category>
            <category><![CDATA[documentation]]></category>
            <dc:creator><![CDATA[Aniko Litvanyi]]></dc:creator>
            <pubDate>Wed, 15 Jul 2020 00:00:00 GMT</pubDate>
            <atom:updated>2020-07-16T07:44:44.879Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*maME7Mf4_i5vmlCEv09Xfw.jpeg" /></figure><p>As we started working on SNaaS it became clear pretty soon, that the developer documentation needs radical changes both structurally and in appearance. The product is intended mainly for developers, so the time has come to serve this main target group not only with the software but also with sufficient and quality content.</p><p>Our old documentation was made when sensenet was a completely different software. As an ECMS it had multiple layers not only for different types of developers but also for end-users and system operators. Since now sensenet is a headless solution most of the documentation target groups are gone, so the old structure was no longer sustainable. <em>wiki.sensenet.com</em> was built with <a href="https://www.mediawiki.org/wiki/MediaWiki">MediaWiki</a> that was ok for the old software but as we were moved to GitHub with sensenet we wanted to make the docs open source and community driven as well, which made the old solution difficult to maintain.</p><p>We’ve decided to create a new community site generated by <a href="https://jekyllrb.com/">Jekyll</a> which serves the documentation, the blog and other community related needs. It seemed to be a good idea till we reached the number of docs where it became unusable and unmaintainable. So, we came to a turning point where we had to rethink everything that we thought about developer docs and ask the community for help.</p><p>Hacktoberfest 2019 was a good opportunity to reach fellow developers who were already somehow connected with sensenet. We’ve created a survey with various question about what they are expecting from a developer documentation. We were curious about the ideal length, structure and type of docs, we were surveyed the user habits, needs and wants. The results made clear how we should structure and prioritize the work on the new docs: the most important is to create a ton of tutorials, make the concepts clear both for developers and non-dev decision makers and add a well-structured and complete API reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1-2mFgkYLD7aR9ka.png" /></figure><p>Well, I’m happy to announce that the <a href="https://docs.sensenet.com/">new documentation site</a> is up and running. Not all the docs are ready yet but we’re quite happy with the work we’ve done with the concept and API docs and of course we’re never stop improving and expand the docs based on the audience’s needs: we’re constantly working on end-user docs for the admin-ui and trying to create as much tutorials as it is needed to present that using sensenet is super easy and effective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*Outvp9bKq_7DZ9Ci.png" /></figure><p>Okay, the site is ready, and the new docs will coming constantly. But how can we keep the momentum? Our product team is now quite small and improving a product is usually more important than working on the docs. So, we decided to choose a dedicate day when we are all working only on the docs. Aaaaand <em>Kontent Kedd</em> (‘kedd’ is tuesday in hungarian) was born! Every other week on tuesday the whole team is working to make the documentation better and better. 💚</p><p>As I mentioned above keeping the docs on the community site was problematic in several ways. We had to choose a future-proof solution that makes possible to come up with an open, community driven, well-structured and easy-to-use documentation page. The code base of sensenet is on GitHub since ages so as the community site and we did not want to change that for the <a href="https://github.com/SenseNet/docs.sensenet.com">new docs</a> either. To generate the actual site our choice fell on <a href="https://www.gatsbyjs.org/">Gatsby</a> which not only indicated that we became familiar with a technology that was completely new for us, but it also generated some possible future tasks like creating a Gatsby source plugin for sensenet or improving our OData requests for collection of binaries.</p><p>While you are discovering a new technology and its documentation effective searching is the key and so was as for as while we were developing the new site. In addition to quick search the docs are grouped and ordered in a way that helps you learn new things step-by-step. The docs are organized in multiple levels which makes the connections easier to understand and all the docs have a ‘pager’ with which you can navigate back to the previous or forth to the next topic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tQQAXGMyrIEN7GhS.gif" /></figure><p>The top-level menus are completely designed by the above-mentioned surveys results. <em>Concepts</em> containing sensenet basics not only for developers. <em>Tutorials</em> and <em>Example Apps</em> help you start with sensenet offering you source code as step by step guides and downloadable GitHub projects. <em>Admin-ui Guides</em> is a place for useful manuals for the admin surface. In the <em>Integrations</em> menu you would reach the demonstration of current integrations and some help on how to integrate sensenet with anything. Last, but not least at the <em>API Docs</em> you can find collection of references, code snippets and examples in sort everything you need to complete a project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*aFPqCfoQUUXy8aHn.png" /></figure><p>Just like the software, its documentation is open and stored on GitHub. Any suggestion, question and contribution is welcome, if you have any feedback for us, we will be happy to hear it on <a href="https://github.com/SenseNet/docs.sensenet.com">GitHub</a> or via <a href="https://gitter.im/SenseNet/sensenet">chat</a>.</p><p><em>Originally published at </em><a href="https://community.sensenet.com/blog/2020/07/15/modernizing-sensenet-docs"><em>https://community.sensenet.com</em></a><em> on July 15, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a05271f85b1f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sensenet/rebirth-of-sensenet-docs-a05271f85b1f">Rebirth of sensenet docs</a> was originally published in <a href="https://medium.com/sensenet">sensenet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Starting out with sensenet ECM using React and Redux]]></title>
            <link>https://medium.com/sensenet/starting-out-with-sensenet-ecm-using-reactjs-and-redux-ce0dd7a2cdcc?source=rss-1d33b0c626d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce0dd7a2cdcc</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[sensenet]]></category>
            <category><![CDATA[getting-started]]></category>
            <dc:creator><![CDATA[Aniko Litvanyi]]></dc:creator>
            <pubDate>Tue, 12 Dec 2017 00:00:00 GMT</pubDate>
            <atom:updated>2018-02-26T09:01:27.266Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*wKGS2chNosOeZaOv3ByQEw.png" /></figure><p>sensenet ECM’s new version is full of possibilites. One of them is the capability of being the base of your single-page-application with its Content Repository. If you are familiar with Reactjs, Redux or Aureliajs, sensenet can offer you even more with its toolkits, prebuilt control packs and many many more. In the following post we try to guide you with a step-by-step tutorial creating your first basic single page app with sensenet ECM, Reactjs and Redux.</p><h3>Prerequisites</h3><p>First of all you need a sensenet ECM instance installed. The following project will get and set data from the Content Repository through OData REST API so it would be enough to install <a href="https://github.com/SenseNet/sensenet">sensenet Services</a>, but since sensenet 7 has not got its own admin surface yet probably your life will be easier if you install <a href="https://github.com/SenseNet/sn-webpages">sensenet Webpages</a> too. With sn-webpages you can access the good old Content Explorer with the control over all the users, permissions, settings, content types and many more.</p><h3>Avoid the pitfalls</h3><p>Maybe you are already familiar with <a href="https://github.com/facebookincubator/create-react-app">create-react-app</a> which is an awesome tool that helps you creating React apps without ANY build configuration. Since we at sensenet write our code in TypeScript we use the forked TypeScript version <a href="https://github.com/wmonk/create-react-app-typescript">create-react-app-typescript</a> of it but it’s not mandatory of course. To have a running basic React application, all you have to do is:</p><ol><li>Install create-react-app with npm:</li></ol><pre>npm install -g create-react-app</pre><p>2. Create your app</p><pre>create-react-app my-sn-app --scripts-version=react-scripts-ts</pre><p>3. Browse the newly created project’s folder and execute the start script</p><pre>cd my-sn-app/<br>npm start</pre><p>And voila, your app is running in the browser :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zy3knO1YAnwJUcKU.png" /></figure><h3>Connect to sensenet ECM</h3><p>To let your app communicate with the sensenet instance you have to allow its domain as the origin of <a href="http://wiki.sensenet.com/Cross-origin_resource_sharing">CORS</a> requests. The easiest way to do this if you open the Content Explorer and add your apps url to the AllowedOriginDomains list in the Portal settings file (<em>/Root/System/Settings/Portal.settings</em>)</p><pre>... <br>&quot;AllowedOriginDomains&quot;: [ &quot;localhost&quot;, ... ] <br>...</pre><h3>sensenet client repository</h3><p>sensenet ECM 7 has a JavaScript library that lets you work with its Content Repository by providing client API for the main content operations. We will create the base of our application by creating a client repository with <a href="https://github.com/SenseNet/sn-client-js">sn-client-js</a></p><pre>npm install --save-dev sn-client-js</pre><blockquote><em>If you are interested more in client repostory and how to take advantage of sn-client-js check its </em><a href="https://community.sensenet.com/api/sn-client-js/"><em>API references</em></a><em>.</em></blockquote><p>Import it into your React application’s index.tsx as a dependency and create a new SnRepository with the url of your sensenet ECM instance</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3118384f1da7262f430c6d3387d627f6/href">https://medium.com/media/3118384f1da7262f430c6d3387d627f6/href</a></iframe><h3>sensenet state tree with Redux</h3><p>To manage our application’s state we use <a href="https://redux.js.org/">Redux</a> and to make your life even more easy to work on this stack, we’ve created <a href="https://github.com/SenseNet/sn-redux">sn-redux</a> that is a set of redux actions, reducers and redux-ovbservable epics for sensenet ECM. In sn-redux we’ve implemented the main sensenet content operations so all you have to do is dispatch them and get everything from the state tree through predefined reducers. If you’re intrested — and why would you not — how sensenet EMC’s redux store is built up, check <a href="https://community.sensenet.com/blog/2017/09/20/refactoring-sensenet-redux-store">Diving deeper into sensenet ECM’s Redux store</a>.</p><p>To create and configure your application’s state container:</p><pre>npm i --save-dev sn-redux sn-client-auth-google</pre><ol><li>Import the following things to your index.tsx</li></ol><pre>import { combineReducers } from &#39;redux&#39;; <br>import { Store, Actions, Reducers } from &#39;sn-redux&#39;;</pre><ol><li>Create your app’s top reducer sensenet</li></ol><pre>const sensenet = Reducers.sensenet; <br>const myReducer = combineReducers({ sensenet });</pre><ol><li>Create and configure your application’s store</li></ol><pre>const store = Store.configureStore(<br>  myReducer, <br>  undefined, <br>  undefined, <br>  {}, <br>  repository); </pre><pre>store.dispatch(Actions.InitSensenetStore(<br>  &#39;/Root/Sites/Default_Site&#39;, <br>  { select: &#39;all&#39; }<br>));</pre><blockquote><em>There’re some configuration changes that should be made in the </em><em>tsconfig.json. First add the following intto the compilereOptions </em><em>&quot;types&quot;: [&quot;jest&quot;,&quot;node&quot;]. This is needed because create-react-app uses </em><a href="https://facebook.github.io/jest/"><em>jest</em></a><em> for testing but some of the dependencies like sn-redux using </em><a href="https://mochajs.org/"><em>mocha</em></a><em>, both have a variable named </em><em>describe and it causes a conflict in the build process. Another thing to change is to set </em><em>noImplicitAny and </em><em>strictNullChecks to false in the tsconfig.json and set </em><em>no-any to false in </em><em>tslin.json.</em></blockquote><p>Now if you restart the application and check the dev toolbar you can see, that the Redux store of your application is initialized and some basic actions are already dispatched on it. We built redux-logger in <a href="https://github.com/SenseNet/sn-redux">sn-redux</a>, so you can check the state tree in depth before and after every action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wZIb4sKGrd8YiByd.png" /></figure><ol><li>Connect the redux store to your application</li></ol><p>Install <a href="https://github.com/reactjs/react-redux">react-redux</a> and import it into your index.tsx</p><p>npm install --save react-redux</p><p>And wrap your app in a provider with your newly created store.</p><pre>... <br>import { Provider } from &#39;react-redux&#39;; <br>... </pre><pre>ReactDOM.render( <br>  &lt;Provider store={store}&gt; <br>    &lt;App /&gt; <br>  &lt;/Provider&gt;, <br>document.getElementById(&#39;root&#39;) as HTMLElement ); <br>...</pre><p>Now you are able to dispatch the predefined actions on the store, and connecting the store to your Reactjs components you can subscribe to the changes, use and display anything that can be found in the state tree.</p><blockquote><em>See the available actions in the </em><a href="https://www.sensenet.com/Root/Sites/sensenet.com/documentation/sn-redux/modules/_actions_.actions.html"><em>sn-redux API references</em></a><em>.</em></blockquote><h3>Simple app with login, logout and with a list of some content</h3><h4>Create a component to list content items after login:</h4><p><em>List.tsx</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/52230aab213eab21106348b2af50eec3/href">https://medium.com/media/52230aab213eab21106348b2af50eec3/href</a></iframe><p>As you can see the component is connected to the Redux store. This way we are able to dispatch the actions listed above (UserLogout and RequestContent) and get some properties (fetched child items and the array containing their ids) from the state tree through Reducers predefined in sn-redux.</p><p><em>Login.tsx</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/90281b80708b069350d1e3c6b2ef4564/href">https://medium.com/media/90281b80708b069350d1e3c6b2ef4564/href</a></iframe><p>The login component is a simple stateless component. It is a tiny form with two input fields to let the user give her name and password. After submit it passes the name and password to a function defined in the parent component which will dispatch the login action.</p><h4>Finalize the App component</h4><p><em>App.tsx</em></p><p>Install <a href="https://reacttraining.com/react-router/web">react-router-dom</a> and import it into your App.tsx</p><p>npm install --save react-router-dom</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/603989cdda85c3d06effcf92dfd5e31a/href">https://medium.com/media/603989cdda85c3d06effcf92dfd5e31a/href</a></iframe><p>The App component is completed with routing to handle the redirect to the content list when the user is logged in and to the login form if she is not. This component is also connected to the store to get the user’s current login state — which helps the app where it should be redirected — and to get the login action itself.</p><h4>Add router to index.tsx</h4><p><em>index.tsx</em></p><pre>... <br>import { HashRouter as Router } from &#39;react-router-dom&#39;; <br>... </pre><pre>ReactDOM.render( <br>  &lt;Provider store={store}&gt; <br>    &lt;Router basename=&quot;/&quot;&gt; <br>      &lt;App store={store} /&gt;  <br>    &lt;/Router&gt;  <br>  &lt;/Provider&gt;,  <br>document.getElementById(&#39;root&#39;) as HTMLElement ); <br>...</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/0*FBDpE9elzhMtDY3V.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/0*Bb01LCNvX91g-Zrk.png" /></figure><p>After restarting the project you can see that you have a not too stylish but working application. It has login and logout functionality and it lists some fetched content from the repository. The rest is up to you! :) The above mentioned stuff is only the tip of the iceberg.</p><h3>Other examples</h3><p>If you are interested in more examples, we’ve created several todo apps not only with <a href="https://github.com/SenseNet/sn-react-redux-todo-app">Reactjs</a>, but with <a href="https://github.com/SenseNet/sn-angular2-redux-todo-app">Angularjs</a>, <a href="https://github.com/B3zo0/sn7-aurelia-redux-todo-app">Aureliajs</a> and <a href="https://github.com/SenseNet/sn-vue-redux-todo-app">Vuejs</a> too, and we are currently working on a <a href="http://dms.demo.sensenet.com/">DMS MVP with Reactjs and Redux upon sensenet</a>.</p><p>We are open and want to build a great community around sensenet ECM so your opinion is super important to us. Please try, review and comment our work and help us make the world a better place! 😻</p><p><em>Originally published at </em><a href="https://community.sensenet.com/blog/2017/12/12/starting-out-with-sensenet-ECM-using-reactjs-and-redux"><em>community.sensenet.com</em></a><em> on December 12, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce0dd7a2cdcc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sensenet/starting-out-with-sensenet-ecm-using-reactjs-and-redux-ce0dd7a2cdcc">Starting out with sensenet ECM using React and Redux</a> was originally published in <a href="https://medium.com/sensenet">sensenet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Autumn happenings in sensenet frontend-ville]]></title>
            <link>https://medium.com/sensenet/autumn-happenings-in-sensenet-frontend-ville-945261337503?source=rss-1d33b0c626d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/945261337503</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Aniko Litvanyi]]></dc:creator>
            <pubDate>Wed, 29 Nov 2017 00:00:00 GMT</pubDate>
            <atom:updated>2017-11-30T11:48:16.451Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bD8tGYb57tw86OGqzOUDJQ.jpeg" /></figure><p>Busy weeks behind us at the frontend division of the sensenet team. New features on the backend and our in-progress <a href="http://dms.demo.sensenet.com/">DMS MVP</a> generated tons of tasks and gave us many improvement points. But now we’ve released all these new stuff, so we can lay back a bit and sum up what’s done. Join us in checking-out the latests and maybe you’ll catch a bit about the upcomings.</p><h3>sn-client-js 3.0.0</h3><p><a href="https://github.com/SenseNet/sn-client-js">sn-client-js</a> is the core — and a main entry point — of our client side packages. It contains logic about interacting with a Repository, authentication, querying and has the built-in content types bundled.</p><h3>Cleaning up the concepts of a Content Type</h3><p>Typescript Content Types can be generated from the sensenet ECM Backend and are useful if you want to write <em>strongly typed Typescript</em> code. In the previous releases, Content Types was inherited from the Content class (which is a rich domain model driven representation of a Content instance). For Example, the User inheritance looked like:</p><p>Content <strong>→</strong> GenericContent <strong>→</strong> User</p><p>Now we’ve extracted our <em>Content</em> (now <em>ContentInternal</em>) class from the inheritance chain and created a Type Alias called ‘Content’ — this one is an Union Type of *ContentInternal* and the specified Type. There are some of the many benefits of this change</p><ul><li>If you are using plain JavaScript, you don’t even have to care about Content Types (except when creating a Content)</li><li>We could remove <em>all</em> logics from the generated Content Type Definitions. That means roughly 1000 lines of code :)</li><li>Using your own custom Content Types will be much easier. You only have to define a new Typescript class that implements IContent and you can use it</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/0*J9IA50OV0g-zVrL6.gif" /></figure><h3>Repository bound schemas</h3><p>ContentTypes and Schemas both describe content. At the moment Schemas are used for dynamic form generation and validation. Schemas — unlike ContentTypes — can change at runtime. Right after you change a Content Type Definition (e.g. add a new required field in the old Explore, or maybe in one of the future release of our admin GUI ;)) you will expect that the next content you create will pick up the change. At the moment Schemas are generated as well, but from now on they are used only as <em>defaults</em>. Repository instances have their own <em>Schema stores</em> and their content can be <em>replaced</em>. We plan to add a live Schema reload feature in an upcoming release.</p><h3>Upload</h3><p>We’ve added the chunked upload feature in version 2.5.0, now we improved it. We have three endpoints for Upload. With <em>repository.UploadFile()</em> you can upload a simple File object from a form or Drop event, with <em>repository.UploadTextAsFile()</em> you can save a string as a binary and finally <em>repository.UploadFromDropEvent()</em> lets you upload a whole file list or subtree with directories from a simple Drop event. Upload event works with <em>rx/js observables</em>, so it’s easy to track the upload progress info based on the finished chunks. Upload options has been extended with additional OData parameters in this release. They are useful if you want to specify fields to select or expand when the Upload finishes, so you don’t have to reload the File content manually.</p><h3>Batch actions</h3><p>Batch actions (copy, move and delete) have been improved on both back- and frontend. Now the client will receive a verbose response — per operation — and can trigger exactly the same repository events as for single operations. Let’s take a look at the example <em>batch copy</em> operation response.</p><pre>{  <br>   <strong>&quot;d&quot;</strong>:{  <br>      <strong>&quot;__count&quot;</strong>:3,<br>      <strong>&quot;results&quot;</strong>:[  <br>         {  <br>            <strong>&quot;Id&quot;</strong>:101,<br>            <strong>&quot;Path&quot;</strong>:&quot;Root/Workspace/DocLib&quot;,<br>            <strong>&quot;Name&quot;</strong>:&quot;a&quot;<br>         }         {  <br>            <strong>&quot;Id&quot;</strong>:102,<br>            <strong>&quot;Path&quot;</strong>:&quot;Root/Workspace/DocLib&quot;,<br>            <strong>&quot;Name&quot;</strong>:&quot;b&quot;<br>         }<br>      ],<br>      <strong>&quot;errors&quot;</strong>:[  <br>         {  <br>            <strong>&quot;content&quot;</strong>:{  <br>               <strong>&quot;Id&quot;</strong>:103,<br>               <strong>&quot;Path&quot;</strong>:&quot;Root/Workspace/DocLib&quot;,<br>               <strong>&quot;Name&quot;</strong>:&quot;C&quot;<br>            },<br>            <strong>&quot;error&quot;</strong>:{  <br>               <strong>&quot;code&quot;</strong>:&quot;NotSpecified&quot;,<br>               <strong>&quot;exceptiontype&quot;</strong>:&quot;Exception&quot;,<br>               <strong>&quot;message&quot;</strong>:{  <br>                  <strong>&quot;lang&quot;</strong>:&quot;en-us&quot;,<br>                  <strong>&quot;value&quot;</strong>:&quot;Error message value&quot;<br>               },<br>               <strong>&quot;innererror&quot;</strong>:{  <br>                  <strong>&quot;trace&quot;</strong>:&quot;InnerError Trace value&quot;<br>               }<br>            }<br>         }<br>      ]<br>   }<br>}</pre><p>The operation above will fire two <strong>repository.Events.OnContentCreated</strong> events and an additional <strong>repository.Events.OnContentCreateFailed</strong> for a single HTTP request.</p><p>But what can you do with batch operations and <a href="https://community.sensenet.com/api/sn-client-js/classes/repository.repositoryeventhub.html">repository events</a>?</p><p>Imagine some separate components (e.g. a <em>tree</em>, a <em>content list</em> and a <em>breadcrumbs</em>, like a file explorer) attached to the same repository and some batch move / delete / copy operations. Synchronizing content can be hard. You have to avoid additional web requests and component reinits but update them with the changes — that’s where repository events come handy. You can load the component data once and <em>subscribe</em> to an event inside your component. Once it’s done you can handle changes incrementally — without additional requests or reloads:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68c8f1353731f2665498ca0050de19d5/href">https://medium.com/media/68c8f1353731f2665498ca0050de19d5/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nIlQ6rMMG-R2XYfs.gif" /></figure><h3>OAuth</h3><p>We’ve added OAuth provider support for the JWT Authentication service. This means that you can implement and add your own OAuth provider — just like we did it in <a href="https://github.com/SenseNet/sn-client-auth-google">sn-client-auth-google</a></p><h3>sn-client-auth-google 1.0.0</h3><p>This package is our first official client-side OAuth provider. It requires sensenet ^7.0.0 with an installed SN7 <a href="https://github.com/SenseNet/sn-oauth-google">OAuth provider</a> and a <a href="https://developers.google.com/identity/sign-in/web/devconsole-project">Google API Console project</a>. You can use it with or without the official <a href="https://developers.google.com/identity/sign-in/web/sign-in">Google Platform Library</a> or any third party component that can retrieve an <em>id_token</em>.</p><p>We’ve focused on keeping this library straightforward and easy-to-use, hopefully you can integrate it within a few minutes — after checking an example in the <a href="https://github.com/SenseNet/sn-client-auth-google">readme</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/0*P-jjo3Spo80DyIDQ.gif" /></figure><h3>sn-redux 3.4.0</h3><p><a href="https://github.com/SenseNet/sn-redux">sn-redux</a> always keeps an eye on <a href="https://github.com/SenseNet/sn-client-js">sn-client-js</a>, we’re working mostly in paralell and this is how it happened this time. Learn how the new features were added and what and how you can achieve with them.</p><h3>Upload</h3><p>There’re three new actions to handle the upload related stuff. One for an upload request (can only handle one file at once), one for handling if a file was uploaded successfully and one for the upload failure. The upload functionality is implemented in the related reducers too, so if a new file was uploaded, its id is added to the ids array and the entities object will contain the new content. Of course there’s a new <a href="https://redux-observable.js.org/">redux-observable</a> epic handling the ajax request in the background, so to have the upload functionality you simply have to call the upload action:</p><pre>Actions.UploadRequest(content, file)</pre><p>Param content is the parent content object and file is the file that should be uploaded.</p><p>Learn more about upload in sn-redux in the <a href="https://www.sensenet.com/Root/Sites/sensenet.com/documentation/sn-redux/modules/_actions_.actions.html#uploadrequest">API references</a>.</p><h3>Batch actions</h3><p>From now on batch operations are also supported in <a href="https://github.com/SenseNet/sn-redux">sn-redux</a> with three new actions apiece for handling requests, operation successes and failures. Because batch operations’ responses could be mixed (some content could be uploaded and some could not) a new reducer called batchResponses is added to hold the custom response and the error. At the background three new epics handle the processes.</p><p>Learn more about the batch operations in <a href="https://github.com/SenseNet/sn-redux">sn-redux</a> in the <a href="https://www.sensenet.com/Root/Sites/sensenet.com/documentation/sn-redux/index.html">API references</a>.</p><h3>OAuth</h3><p>Since the needed provider was ready both on the backend and in sn-client-js it was a must to add an action to handle login (and registration) with Google account in sn-redux too. However the after-login process is the same a new epic called userLoginGoogleEpic is created. This new epic is subscribed to the new login request action but if it was responded successfully or if it was failed it dispatches the same actions that are used in the simple login process.</p><h3>What’s next?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/224/0*kisu1mCBiKklbEzA.gif" /></figure><p>Let’s see in a few words what is in our backlog for the winter:</p><h4>Scoped npm packages</h4><p>As <a href="https://github.com/SenseNet/sn-client-js">sn-client-js</a> started to grow too fast it will be a good idea to divide it into multiple packages. We should change our naming conventions with our NPM packages and introduce package scoping for @sensenet specific packages just like <a href="https://github.com/material">@Material</a>, <a href="https://github.com/angular">@angular</a>, <a href="https://github.com/aurelia">@aurelia</a> or <a href="https://github.com/reactivex">@ReactiveX</a> did it.</p><h4>ContentTypes vs. Schemas</h4><p>Since ContentTypes and Schemas as auto-generated classes are bundled together and tightly coupled with the Repository object, we cannot extend or add content types from different packages (sensenet Services, Webpages, etc). So we should distribute ContentTypes in a separate package in the future to allow adding Content types and Schemas without changing <a href="https://github.com/SenseNet/sn-client-js">sn-client-js</a>.</p><h4>CTD improvements</h4><p>Sensenet’s Content Type Definitions are awesome but they need a facelift from time to time. This time it means some major improvements like adding solutions for field grouping, ordering and some changes around Icon property to handle font-icon libraries like <a href="https://material.io/icons/">Material icons</a> or <a href="http://fontawesome.io/">Font awesome</a></p><h4>Localization</h4><p>String resources were enable on the client-side through <a href="http://wiki.sensenet.com/How_to_internationalize_javascripts">sensenet’s built-in bundling and dependency handling mechanism</a>. Since we build separate applications with communicating through OData We have to figure out how localized string resources can be distributed from sensenet ECM to the client.</p><p><em>Originally published at </em><a href="https://community.sensenet.com/blog/2017/11/29/sn-frontend-releases-in-november"><em>community.sensenet.com</em></a><em> on November 29, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=945261337503" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sensenet/autumn-happenings-in-sensenet-frontend-ville-945261337503">Autumn happenings in sensenet frontend-ville</a> was originally published in <a href="https://medium.com/sensenet">sensenet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Diving deeper into sensenet ECM’s Redux store]]></title>
            <link>https://medium.com/sensenet/diving-deeper-into-sensenet-ecms-redux-store-a0647170e1cf?source=rss-1d33b0c626d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0647170e1cf</guid>
            <category><![CDATA[sensenet]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[headless-cms]]></category>
            <category><![CDATA[redux]]></category>
            <dc:creator><![CDATA[Aniko Litvanyi]]></dc:creator>
            <pubDate>Wed, 20 Sep 2017 00:00:00 GMT</pubDate>
            <atom:updated>2017-09-20T10:31:45.002Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*KF9ITukxCOe2mzNjCRWX7g.png" /></figure><p>As you may already know <a href="https://sensenet.com/">sensenet ECM</a>’s UI is being fully rebuilt on a new stack including <a href="http://redux.js.org/">Redux</a>. Since sensenet is also a development platform with the possibility of building your own app upon its Redux store and actions, let me guide you through the current version of the state tree showing you how we organized data so far.</p><p>In the last few months I’ve read a couple of posts about the Redux store of Twitter and I thought if it was interesting to dig into their state tree it will be useful to write an article like this about sensenet ECM’s too. <a href="https://medium.com/statuscode/dissecting-twitters-redux-store-d7280b62c6b1">Dissecting Twitter’s Redux Store</a>, <a href="https://medium.com/@nuncamind/diving-deeper-into-twitters-redux-store-adventures-in-minified-vendor-javascript-67fbac5dc219">Diving Deeper into Twitter’s Redux Store: Adventures in Minified Vendor Javascript</a> and other posts in this topic were not only guiding us analyzing sensenet ECM’s Redux store the same way in a similar post, but also helped us to figure out how a state tree in a content-heavy application could be built-up, and how we should structure data in our next DMS MVP’s Redux store.</p><p>To be honest we had a Redux store before, it was the basis of couple of Todo apps that we’ve made with different frameworks to try out sensenet 7’s Javascript Client and the API. But these apps were (and are) only prototypes with reduced functionality and they required only a basic state tree with less data and actions. After we’ve decided to create a DMS MVP with sensenet 7 on the new stack we had to rethink the whole store, the available actions, reducers and epics not only because it requires more and structured data but also because we provide a development platform to create custom solutions upon sensenet ECM.</p><p>Btw <a href="https://github.com/SenseNet/sn-redux">sn-redux</a> is a set of <a href="http://redux.js.org/">Redux</a> actions, reducers and <a href="https://redux-observable.js.org/">redux-observable</a> epics which means you get a package with</p><ul><li>an optimized state tree with normalized data,</li><li>actions that can be dispatched related to the basic content, user and permission managment features of sensenet ECM,</li><li>reducers to define state changes required by the above mentioned actions,</li><li>epics to handle the sensenet OData actions and functions,</li><li>and of course you can complete it with your actions, reducers and epics if you implement a custom feature.</li></ul><p>Old version of sn-redux contained only things that can be used in a simple todo app. So there were only a few things available for creating a task, set it to <em>done</em>, delete it, etc. We knew that it shold be restructured if we want to use it as a base of a content and feature heavier application.</p><p>First of all we’ve checked what sort of solutions were made with sensenet in the past and what could we provide at this level to help to accomplish them. We came to the conclusion that the most important things related to an application built upon sensenet are the context, the content items by permissions, basic document management features, content manipulation and user information. So these things became the key parts of the new Redux store in <a href="https://github.com/SenseNet/sn-redux">sn-redux</a>.</p><p>To let us now dig deeper in sensenet ECM’s Redux store (and make our life easier in development time) we integrated <a href="https://github.com/evgenyrodionov/redux-logger">redux-logger</a> so that we can check how our state tree changes by the dispatched actions and last but not least we can show you how the tree is built-up, you can open every branch and look into it. If you’ve installed <a href="https://github.com/SenseNet/sn-redux">sn-redux</a> and configure a store, you’re able to see the log in the browser console when you dispatch an action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dcVlzvazgyrU_qeH.png" /></figure><p>As you can see there are four reducers at the top level of sensenet: <em>children</em>, <em>currentcontent</em>, <em>selected</em> and <em>session</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FrcjrenvdaafFJC4.png" /></figure><p><strong>currentcontent</strong> holds the state of the current content: you can access its metadata, its fields, the related sensenet actions and the state of the content which means you can check if it is dirty, in progress, saved or valid, and you can subscribe on all of the changes. If there was an error while loading content the error message is also stored here as the value of the <em>error</em> property.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/0*Z8WjXCkTgY495zDm.png" /></figure><p>In the <strong>children</strong> part you can access the current content’s children in normalized form. For normalizing data we used <a href="https://github.com/paularmstrong/normalizr">normalizr</a> which helps to structure (sometimes deeply) nested JSON objects which came as a response of an OData request. This works based on a schema definition with entities (in this case fetched content items) and a given param (in this case Id) that holds their unique identifier. So before data is added to the state tree it’s normalized: there’s an array with name <em>ids</em> that holds the items’ ids and an object, <em>entities</em> that contains the Content items by their ids. Each content in the entities Object has an id that matches the key from the ids Array. This way manipulating (listing, selecting, deleting, etc) Content is much simplier. Some of the OData params are listed here too, so that it can be accessed later which Fields were selected, how items were ordered, if a filter was used, etc. It is also avalible here if the items are currently fetching or not, or if there was an error during the fetching process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/0*3DZknckQrKdcbtdc.png" /></figure><p><strong>selected</strong> holds the id(s) of the selected Content item(s).</p><p>The <strong>session</strong> part contains information about the current <em>session</em>. There’re a couple of user related stuff stored here like her fullname, path of her avatar image, chosen language and username, and there will be some browser related parameters stored like country and language settings. This part is the home of the <em>login state</em> too, so that you can subscribe to the state of the user, and control the authentication process. Last but not least the <em>repository</em> part contains the repository config, with the url of the requested repository and many other settings and defaults.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/0*7yZ5HbPyVJxMjZyt.png" /></figure><h3>Is this the final version?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*GUQp8n5ia0xjXZ3T.gif" /></figure><p>Definitely not. While the DMS MVP and the admin surface of sensenet ECM 7 is in progress, the Redux store of sensenet and <a href="https://github.com/SenseNet/sn-redux">sn-redux</a> itself will change and improve continuously for sure. But we have laid the foundations of it and the future is bright, so any comments are welcome, help us make it better and better. <a href="http://redux.js.org/">Redux</a> is awesome and I believe that it can make development with sensenet ECM more fun then ever.</p><p>Have feedback on this post? Let <a href="https://twitter.com/sensenet">@sensenet</a> know on Twitter.</p><p>Need help or found a bug? <a href="http://community.sensenet.com/contact">Contact us</a>.</p><p><em>Originally published at </em><a href="http://community.sensenet.com/blog/2017/09/20/refactoring-sensenet-redux-store"><em>community.sensenet.com</em></a><em> on September 20, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0647170e1cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sensenet/diving-deeper-into-sensenet-ecms-redux-store-a0647170e1cf">Diving deeper into sensenet ECM’s Redux store</a> was originally published in <a href="https://medium.com/sensenet">sensenet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why React tho?]]></title>
            <link>https://medium.com/sensenet/why-react-tho-1b425708dd58?source=rss-1d33b0c626d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b425708dd58</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[material-design]]></category>
            <category><![CDATA[document-management]]></category>
            <category><![CDATA[sensenet]]></category>
            <category><![CDATA[headless-cms]]></category>
            <dc:creator><![CDATA[Aniko Litvanyi]]></dc:creator>
            <pubDate>Wed, 02 Aug 2017 00:00:00 GMT</pubDate>
            <atom:updated>2017-08-04T11:59:30.704Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*Swnbdpg5xb9kNiorE2BG-Q.png" /></figure><p>One of the key points of developing sensenet ECM 7+ was how can we provide nicer ui for our end-users and a more accessible dev platform for the front-end developers at the same time. We could stay with the old asp.net solution or create a custom no-framework one but we ended-up using <a href="https://facebook.github.io/react/">React</a> and <a href="http://aurelia.io/">Aurelia</a>. In the following post I try to sum up the whys and hows behind choosing React.</p><h3>Main goals</h3><p>Working with the past versions of <a href="https://sensenet.com/">sensenet ECM</a> was not always easy. Especially when you wanted to change the ui. This was one of the key improvement points that we’ve detected and defined it as one of the main tasks for the development of future versions. We wanted to pimp up the ui anyway, so it was also important for us to find a solution for building a new admin surface and creating other building blocks of the public ui easier and more effectively.</p><p>We wanted to reduce the learning curve in the first place. In the old version of sensenet ECM the building blocks of the ui were customizable to the smallest details which was great, but it was also the main reason why the customization was a huge work. There were html pagetemplates for the skeleton of a page, there were ascx views and xslt renderers displaying the components and js and there were css source files not to mention celltemplates, fieldcontrol templates, etc. As you can see it is at least four different technologies and all these things were stored in separate places in the repository. It was not easy to see through what, where and how should be customized. So it was clear that the front-end development should be unified.</p><p>On the other hand it was an important need from the start that if we rewrite the whole ui and everything that is related, the new solution should be componentized, testable (and tested), easy to deploy, accessible and should meet the industry standards, because it is a must if you want to be not only a simple cms but a development platform too. The no-framework solution was rejected very early because of the huge work. On the other hand there are tons of frameworks on the market which were potential options to fullfill our needs. So we just had to try them out…</p><h3>It’s not all about the hype</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*7gpvkzSxZFFn2M2s.gif" /></figure><p>Our selection may seem a bit ad-hoc but we tried to check out the most popular frameworks. We’re working on a development platform so it was clear from the start that the chosen framework should be futureproof and a one with a great community. We’ve agreed to try out <a href="https://facebook.github.io/react/">react</a>, <a href="http://aurelia.io/">aurelia</a>, <a href="https://vuejs.org/">vuejs</a>, <a href="https://angularjs.org/">angular</a> and <a href="https://angular.io/">angular2+</a> with building a todo app with them upon sensenet ECM 7. Not all of them was evaluated by me, so I will reflect only on those that I’ve tried and just for a few words because it’s more important why we’ve chosen React and why not Angular for example.</p><p><a href="https://angular.io/">Angular2+</a> seemed a perfect match at the beginning because it’s written in TypeScript and we love to write our stuff in TypeScript too, but at the same time it was a bit more difficult to learn it than the others and however it’s not likely to happen again, Angular was completely rewritten once and we had to choose a long-term solution.</p><p><a href="https://vuejs.org/">Vuejs</a> is easy to learn and easy to use if you want to build a small project. But was not really recommended for large scale apps and it has unfortunately a smaller ecosystem than the others.</p><p>(We’ve also built and improving continously a control lib for <a href="http://aurelia.io/">aurelia</a>, maybe <a href="https://github.com/orgs/SenseNet/people/gallayl">@gallayl</a> will tell us in another post why he chose it and what experiences he had with it. 😉)</p><h3>So why React exactly</h3><ol><li>Simplicity</li></ol><ul><li>It will take more time to learn the best practices but its learning curve is quite steep,</li><li>It’s Javascript-centric which empower its simplicity,</li><li>Easy to add new features,</li><li>Tons of 3rd party libraries to use.</li></ul><p>2. Virtual DOM</p><ul><li>Fast rendering,</li><li>React is not a real framework but ‘view layer only’ fits our needs in most of the cases.</li></ul><p>3. JSX</p><ul><li>Javascript-centric design</li><li>Easy to learn, easy to read</li></ul><p><a href="http://redux.js.org/">4. Redux</a></p><p>5. Tooling</p><p>6. Ecosystem</p><ul><li>Great support and community.</li></ul><p>7. Non-web stuff</p><ul><li>It’s not part of the scope yet but <a href="https://facebook.github.io/react-native/">React Native</a> or <a href="https://github.com/zeit/next.js/">next.js</a> look promising when we talk about native rendering.</li></ul><h3>All that glitters is not gold</h3><p>Working with React and <a href="https://www.typescriptlang.org/">TypeScript</a> is not always as easy and fun as it sounds. Since we decided going along with TypeScript in our other projects it was clear that this one will be written in TS too. To be short unfortunately not all the above mentioned great stuff can be used (easily) if you want to <em>stick yourself to the rules</em>.</p><p><a href="https://webpack.github.io/">Webpack</a> could be also the bad guy sometimes but it is maybe because we are not so experienced in it yet.</p><h3>The results</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/0*qeLtdqLiDD3gmib0.png" /></figure><p>At the end we’ve made a control package, <a href="https://github.com/SenseNet/sn-controls-react">sn-controls-react</a> with the basic view and field controls. It’s open-source and since it’s not finished feel free to add or modify it yourself. We are continuously developing it so we hope that it can be used as the base of sensenet ECM’s new admin surface and public ui in the near future.</p><p>It is built upon <a href="https://github.com/SenseNet/sn-client-js">sn-client-js</a> that provides the API and lets us manipulate the sensenet <a href="http://community.sensenet.com/docs/content-repository/">Content Repository</a>. It also uses <a href="https://github.com/SenseNet/sn-redux">sn-redux</a> which is a set of redux actions and reducers for sensenet ECM Content management features. <a href="/service/ttps://github.com/SenseNet/sn-controls-react">sn-controls-react</a> has an ultra flexible mapping based on sensenet <a href="http://community.sensenet.com/blog/2017/07/19/how-to-make-your-life-infinitely-better-sensenet-ctd">CTD’s</a> and <a href="http://wiki.sensenet.com/Field_Setting">FieldSettings</a> which provides us Content management surface (create, edit, browse) generation. And last but not least it is built with <a href="https://react-materialize.github.io/#/">react-materialize</a> so it meets the standards and is customizable in common ways.</p><p>We are open and want to build a great community around sensenet ECM so your opinion is super important to us. Please try, review and comment our work and help us make the world a better place! 😻</p><p>Have feedback on this post? Let <a href="https://twitter.com/sensenet">@sensenet</a> know on Twitter.</p><p>Need help or found a bug? <a href="http://community.sensenet.com/contact">Contact us</a>.</p><p><em>Originally published at </em><a href="http://community.sensenet.com/blog/2017/08/02/why-react"><em>community.sensenet.com</em></a><em> on August 2, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b425708dd58" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sensenet/why-react-tho-1b425708dd58">Why React tho?</a> was originally published in <a href="https://medium.com/sensenet">sensenet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to make your life infinitely better — sensenet CTD’s]]></title>
            <link>https://medium.com/sensenet/how-to-make-your-life-infinitely-better-sensenet-ctds-46c3466da354?source=rss-1d33b0c626d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/46c3466da354</guid>
            <category><![CDATA[content-management-system]]></category>
            <category><![CDATA[ecm]]></category>
            <category><![CDATA[content-management]]></category>
            <category><![CDATA[document-management]]></category>
            <dc:creator><![CDATA[Aniko Litvanyi]]></dc:creator>
            <pubDate>Wed, 19 Jul 2017 00:00:00 GMT</pubDate>
            <atom:updated>2017-07-19T11:35:07.813Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*Uh3FBFz8QFcLPmfpalZsSQ.jpeg" /></figure><p>Dynamic Content Type system sounds amazing, but what does it actually mean? This post tries to clarify the basics and show you how can you take advantage of sensenet ECM’s Content Repository as the new home of your custom company data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/0*N1s3nGgqMd43oNQ4.jpg" /></figure><p><a href="http://community.sensenet.com/blog/2017/07/12/everything-is-a-content">Everything is a content</a>, not only in sensenet ECM but in our everyday work. Tasks, documents, memos, invoices, emails, contacts, etc. However digitalized content could make our life easier, these content items can be so diverse that they are usually placed in separate systems. So if we’re searching for a contact, we have to check the company’s CRM system and login to our intranet site in the same time to share it with our collegues. Why are these things usually stored in separate systems? On the one hand, due to the different metadata, on the other hand because they need custom care, custom functionality.</p><p>Since <a href="http://community.sensenet.com/blog/2017/07/12/everything-is-a-content">everything, tasks, memos and even users are Content in sensenet ECM</a>, managing them and working on them collaboratively can be done at one place in the same system through the same API or ui. Even though they are stored in the same system, content can have a lot of different metadata and can be handled by unique content handlers to grant for example approval process or notify users about changes. sensenet ECM helps you customizing metadata and content-handling in several ways, you can define or override top-level Content Types if you want to use them system-wide (e.g. a custom User type), or you can add custom metadata for content items that are stored in a specific library (e.g. list of contracts).</p><p>Now let’s look under the hood to see how the above mentioned things can be done in sensenet ECM.</p><h3>Content Types as a key of managing content in sensenet ECM</h3><p>In sensenet ECM Content Types are also stored in the Content Repository tree as content (<a href="http://community.sensenet.com/blog/2017/07/12/everything-is-a-content">Everything is a content</a>, you know). While content items contain fields Content Types are built-up by field definitions. Managing them could be done through the same ui, you can create new ones like you add other type of content. If you create a new Content Type it can be used everywhere in your portal (where it is enabled as an allowed type of course, but it can be enabled on any level of the repository). This way you are able to define the main group of types for your intranet which will be the basis of your ECM’s type system. There are lot of built-in types in sensenet ECM (e.g. for Folder, Document, Library, Workflow, User) which are a perfect starting point for creating custom ones.</p><p>Why are Content Types the key of managing content? To oversimplify somewhat it is because they hold information about what type of metadata can be stored on a content and how it will be handled by the system. But they contain not only the handler and field definitions, but lots of other things like how these fields will be rendered on the ui when you are editing a Content, which fields will be validated and how, etc.</p><h3>The Content Type tree</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/0*7jaZYqgYGX1wFahe.png" /></figure><p>Tree srtucture helps us to understand the hierarchy, the connection between Content Types and lets us take advantage of inheriting and overriding. If you’re familiar with Object-oriented programming it is quite easy to get it but if you’re not, think about it as cat breeds and their similiarities and differencies. All of them are cats eventually, they have four legs, they are sleeping and purring all the time, but they can have a different colour or type of fur and different nutritional or caring needs. So if you have a custom document type, for example for contracts you can easily inherit it from the built-in File type. So that it will have all the built-in fields that are defined on the File type (e.g. Name, Size, Binary), but can have custom ones too (e.g. Reponsible Person, Date of signature). Basically the contracts will be handled as Files in the system but in addition you can define custom logic behind them to complete the built-in one.</p><h3>Creating custom Forms or Surveys</h3><p>Since managing content is based on defining fields in Content Types and configure how they will be rendered and validated on the ui, this behaviour can be used as a base of custom form and survey building. If a user fills the form, actually she creates a new content, a form item. If you want to create a survey you only have to add a new a custom Content Type defining the fields of the form item. Incredibly easy, isn’t it? Survey items will be saved as Content in the repository so they can be searched by their field values, evaluated easily or you can even build custom ui upon the results (lists, charts, etc).</p><h3>If Content Types Definitions are not flexible enough</h3><p>What if you have different kind of contracts for each organization in your company with different metadata and different workflows in the background. You also want to let your non-dev colleagues managing the contract types because they can only be accessed by the members of the organization. Creating a custom Content Type for all the different contracts does not worth it because you would create tons of Content Type Definitions and only use them once. On the other hand the organization members are maybe not qualified enough to create custom Content Types and they also don’t have the permissions to do that. In this case expando fields provided by sensenet ECM are a great solution. You only have to create a new List and add and customize new columns as fields by a few click. These expando fields are not persisted on Content Types, so they can be used only locally on a list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*jkdFT0RM4_QFpBgN.png" /></figure><h4>Aspects</h4><p>Sometimes you need not only an individual custom field but a group of fields (e.g. rating related ones) that have to be used on multiple types of Content as one. sensenet ECM provides a solution for this case with Aspects so you do not need to define all fields one by one on a type but you can define an Aspect that holds the neccessary fields and configs and attach it to a Content. For now unfortunately working with Aspects is a developer task because it needs some coding, but sensenet ECM is also a development platform, the API is ready for working with Aspects…and you know, sensenet ECM is open source, so maybe you are the one who will save the world with an Aspect editor! ;)</p><h4>Content Templates</h4><p>Working with Workspaces could be tough if you have multiple Workspaces with the same metadata but you need custom content structure below them. Building folder and library structure and set everything after every Workspace creation over and over definitely would be a nightmare. Fortunately sensenet ECM has a solution for that: Content Templates. It helps you to build a children library structure for your types that are created automatically on Content creation.</p><p>Want to know more about sensenet ECM and its capabilities (not only in the case of Dynamic Content Type System)?</p><p>Have feedback on this post? Let <a href="https://twitter.com/sensenet">@sensenet</a> know on Twitter.</p><p>Need help or found a bug? <a href="http://community.sensenet.com/contact">Contact us</a>.</p><p><em>This post was originally published on the </em><a href="http://community.sensenet.com/blog/2017/07/19/how-to-make-your-life-infinitely-better-sensenet-ctd"><em>official blog of Sense/Net Inc.</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46c3466da354" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sensenet/how-to-make-your-life-infinitely-better-sensenet-ctds-46c3466da354">How to make your life infinitely better — sensenet CTD’s</a> was originally published in <a href="https://medium.com/sensenet">sensenet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>