Skip to main content
8 votes
Accepted

DD4T good practice: how to render component presentations based on ViewModels

Dominic, it's indeed correct that, when you use the DD4T2 ViewModel approach, you should use the Html.Render helper function, and if you use the older models, you should use the Html....
Harald Hoffelinck's user avatar
6 votes
Accepted

Is it possible to expose Tridion page content as JSON, for React application?

At the moment I imagine that your current implementation is "baking" your HTML during publishing and including some JSP code which is executed on the server. There's nothing to stop you from having ...
David Forster's user avatar
6 votes
Accepted

How to fix Java heap space error?

You can specify the java settings used by your .NET application in two ways : either by making changes in windows registry, or by adding a jvm.xml file with the settings in the bin/config folder of ...
Harald Hoffelinck's user avatar
6 votes
Accepted

Does SDL Tridion Sites 9 accept DD4T XML model?

There is no provider to make DD4T version 1 work with Tridion 9. You have 2 choices: Upgrade to DD4T 2. Create your own Tridion 9 provider. If you go for option 2, you must also update the ...
Quirijn's user avatar
  • 6,787
5 votes

DD4T good practice: how to render component presentations based on ViewModels

My understanding of the differences are: When using ViewModels you should use @Html.Render(model) Why? It uses the standard MVC pipeline, resolving Action, Controller and View from the ViewModel ...
Chris Morgan's user avatar
  • 7,327
5 votes
Accepted

DD4T 2 Java and Maven Build Failing

These dependencies aren't available from maven central. You need to host those yourself. To find out which items are hosted on Maven central: Check http://search.maven.org/#search%7Cga%7C1%7Cg%3A%...
Thijs's user avatar
  • 608
5 votes

BinaryData Folder issue in DD4T

This is a known issue in DD4T. The root cause is that a non-existing image was requested. When somebody tries to access a non-existing image url (in a non-existing folder), the BinaryFactory creates ...
Nirajan Pokharel's user avatar
5 votes

Can I use DD4T Framework on a C# based Windows service?

You can use DD4T for this, with two caveats: Don't reference DD4T.MVC4 or 5 (this won't work in a Windows service) Don't use Rich Text fields in your model (regular text and other types work) This ...
Quirijn's user avatar
  • 6,787
5 votes
Accepted

DD4T 2.1 Support on Sites 9

You can use DD4T 2.1 in combination with Tridion Sites 9.1. You just need to upgrade the POM so that it uses the 9.1 CIL and related third-party libraries. On the CM side you can use the DD4T 2.5 ...
Quirijn's user avatar
  • 6,787
4 votes
Accepted

In DD4T, when should I use ModelControllerBase, and when TridionControllerBase

The biggest difference is the inclusion of IViewModelFactory. This allows ModelControllerBase to return the Model converted to your associated View Model type. TridionControllerBase returns the Model ...
Chris Morgan's user avatar
  • 7,327
4 votes
Accepted

How do I make use of DD4T's provided ViewModels?

ViewModelFactory.BuildViewModel is able to transform/create a strongly typed model out of the DD4T model. BuildViewModel() has 1 argument of type DD4T.ContentModel.IModel, Both DD4T.ContentModel....
Siawash Shibani's user avatar
4 votes

How do I make use of DD4T's provided ViewModels?

Long answer short... You can use IViewModelFactory to achieve this. For example: Article article = _viewModelFactory.BuildViewModel<Article>(cp); If you are going from a page down to component ...
Katarina Stojanovski's user avatar
4 votes

DD4T with Razor Templating - feasibility

A few rough answers on your questions: Simply considering DD4T is slower then Razor Templating is not a valid statement if you ask me. There will be a lot of questions you need to asnwer before you ...
Bart Koopman's user avatar
  • 29.6k
4 votes
Accepted

Html.RenderComponentPresenationsByView returns JSON

From what I gather, you have Page 1 rendering just fine, but Page 2 simply prints out the JSON of the Component Presentation without hitting the CP controller nor view. Could it be that the Page ...
Nickoli Roussakov's user avatar
4 votes

LastPublishedDate incorrect in DD4T.ContentModel.Page

The last published date information is not part of page model instead it is part of pagemeta model. So in page model you will see the date as 01/01/0001 which is nothing but the minimum value for date....
Hiren Kaku's user avatar
  • 3,728
4 votes
Accepted

Reasons to choose DD4T over traditional Tridion & Asp.NET architecture[ Postback system ]

The main reason that it's chosen for most new implementation is the cleaner separation of concerns, easier deployments and simpler maintenance. For a more detailed list of reasons, you may want to ...
Jonathan Williams's user avatar
4 votes

Reasons to choose DD4T over traditional Tridion & Asp.NET architecture[ Postback system ]

Because this question was asked to you in a job interview, I'm not sure we should answer it here, since then we kill a great opportunity to separate the knowledgable from the less knowlegable :D But ...
Bart Koopman's user avatar
  • 29.6k
4 votes

LinkedComponentValues shows Fields empty

If the Component is published as an embedded Component on a page using a static template, then this is correct. The Broker won't have anything for that Component in the ComponentPresentation table. ...
Nickoli Roussakov's user avatar
4 votes

Can we add Preview Functionality in CME for DD4T based Application

Not sure how current this information is, but according to this blogpost, yes you can. There's some template and webapp changes needed to get it to work, they're detailed in the post I linked to.
Nuno Linhares's user avatar
  • 29.1k
4 votes
Accepted

Intermittent broken DXA JSON output during publishing

As I commented on your original question already, I don't think an upgrade to a DXA 1.x version will solve the issue you are dealing with, since there haven't been that much changes in the DD4T ...
Bart Koopman's user avatar
  • 29.6k
4 votes

Fetching Keywords from SDL taking too long

You could load the values for each of the fields when they're clicked, a sort of lazy loading if you will. Also, caching comes to mind. That won't help you with the first load, but subsequent loads ...
Atila Sos's user avatar
  • 6,290
4 votes
Accepted

Enable remote JMX monitoring for DD4T webapp

By default remote JMX monitoring requires authentication and SSL is also enabled. You can try to add the additional lines to disable authentication and SSL: <Option Name="-Dcom.sun.management....
Andjar's user avatar
  • 86
3 votes

DD4T good practice: how to render component presentations based on ViewModels

Very broad question, but if you are considering the DD4T 2.0, then the recommended best practice is to use the View-Model appraoch and use @Html.Rendermethod as explained with example in the Blog Post ...
Pankaj Gaur's user avatar
  • 15.9k
3 votes

Disable XPM for smartphone/tablet

Indeed the Bootstrap script is there because XPM is enabled, it basically adds the Start button to your site, from which you load the XPM interface. If it is slow in loading, then it sounds to me ...
Bart Koopman's user avatar
  • 29.6k
3 votes
Accepted

DD4T 2.0 caching updates

As highlighted in Albert's DD4T and caching blog post from back in 2012, the earlier versions of DD4T (prior to v2.0) relied on three mechanisms for caching: ASP.NET Output Cache SDL Tridion Object ...
Jonathan Williams's user avatar
3 votes
Accepted

How does template unpublish MMC?

When you publish the item, if the template has a call to AddBinary() the binary will be published, and also some metadata indicating that the binary was published with that specific item. If you ...
Dominic Cronin's user avatar
3 votes

How DD4T application gets the content data from the broker database? odata service or broker api?

DD4T (both Java and .Net) uses the standard Broker APIs to fetch data from the Broker database and thus requires all the content to be published to the database. It is not possible to use a file ...
Bart Koopman's user avatar
  • 29.6k
3 votes

DD4T XpmMarkupService Binding Error

We got the same error but fixed it by simply reverting DDT4T.MVC5 NuGet package to version 2.0.8. We are also using Autofac v4.1.0 and Autofac.Mvc5 v 4.0.0 Are there any issues we need to be aware ...
maurocam's user avatar
  • 233
3 votes

LinkedComponentValues shows Fields empty

I figured out the issue. The TBB was missing parameter schema "Generate dynamic component presentation". Once I added that, I got the required values in "LinkedComponentValues"
GVK's user avatar
  • 505
3 votes

DXA 1.5 intermittent issue in JSON output

This is related to the concurrency issue that @Shiva highlighted, but in fact is not limited to just the content management side. It also affects the content delivery side and can result in extremely ...
CajunCoding's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible