When setting up a new Tridion environment for a client or for testing purposes, there is often a requirement for a quick sample web application. To verify all connections and configuration are set up correctly, or sometimes just to hit some URLs and see some information on the page. This can be useful for instance when dealing with a copied database or in the process of a Tridion upgrade to the latest version. This blog post will demonstrate the quickest and easiest way to get the basics up and running.
A few months ago, I wrote about Dyndle. Today I have good news for anyone who needs to build an ASP.NET web application based on SDL Tridion Sites: Dyndle has been released.
Dyndle is free of charge and fully ready for you to use.
Besides the framework itself, we have also launched a new web site. On dyndle.com, you can find everything you need to know, including extensive documentation.
Tridion developers: enjoy your new toy.
On February 12th, SDL released DXA 2.0, the shiny new version of the Digital Experience Accelerator. Part of this new version is a new REST service called the model service, which is able to return content quicker, and in a leaner format. Not only that, the model service is also able to resolve links in the content on the fly. This is an important improvement, because link resolving is one of the most expensive operations in DXA as well as DD4T.
A full migration of your application from DD4T to DXA is far from trivial, at least not with the DXA 2.0 release that is currently out. But there is good news: it is very easy to start using the DXA model service in your DD4T .NET application (it is also possible with a Java DD4T application, but we’ll discuss that some other time). Your application is likely to become faster because of it.
There is one important condition: you have to use SDL Web 8.1 or higher, and DD4T 2.0 or higher, in order to upgrade to the model service.
Customer Use case
Our customer had a requirement to send some HTTP headers with the last publication date of the page in it, in order to optimize browser caching. For this reason we needed to include the last published date from Tridion in our DD4T PageModel.
The DD4T ViewModel functionality lacks the option to include the last publish date. Fortunately, you can create your own attributes.
In this blog I will show you how easy it is to create a custom attribute to include the last publish date of a page in your models. Continue reading
One of the unwritten rules in MVC is that ViewModel classes should be kept very simple. They should basically represent data to be displayed in your views. Then, depending on the concrete implementation and the requirements, the whole mapping and connecting it all together part does not always stay simple.
The usage of ViewModels in DD4T 2.0 can actually be very simple, as the example code will try to show. Anything with a simple basis should be also extendable in an easy way and that is the main goal of the framework.