Hot answers tagged

14 votes

Difference between DD4T and CWA

Chris hits a few of the main differences between the CWA and DD4T project. My view is a bit simpler, so I'll share it too. In a Tridion implementation your content lives (at least) three places: in ...
user avatar
11 votes
Accepted

DD4T with MVC 5 and areas

ok I think I figured out the part I was missing. I assumed... wrongly... that the default route was not being used but it is. That is the route the ComponentController goes through. In my area route ...
user avatar
  • 952
11 votes
Accepted

DD4T site set up issue | Tridion 2013 SP1 |Could not load file or assembly 'Tridion.ContentDelivery,

When you get errors like this, it's probable that the dd4t version you are trying to install is built against a different version of the contentdelivery dll. You can either rebuild the dd4t solution ...
user avatar
10 votes

Implementing SmartTarget in DD4T

Another way of doing this would be to write a number of mvc html helpers that would use the smarttarget query api to fetch promotions etcetera. The flow would be something like get parameters from ...
user avatar
9 votes
Accepted

Why is DD4T markup rendered multiple times

The problem with multiple doctype declarations can be caused by some standard mvc view behaviour. In your mvc project, you can define a _viewstart.cshtml file. In here, you specify the default mvc "...
user avatar
9 votes

DD4T site set up issue | Tridion 2013 SP1 |Could not load file or assembly 'Tridion.ContentDelivery,

Sounds like you're using the Tridion 2013 providers which come with that template. You should run the following commands from the Package Manager Console: Uninstall-Package DD4T-Tridion-2013 ...
user avatar
9 votes
Accepted

PageContentAssembler.GetContent(resultUris[0]) Returns Empty string in Localhost only

I'm not sure what the problem is, there could be a lot of causes, like a different configuration between your local environment and the other server. It might be useful to set logging to debug. To do ...
user avatar
9 votes
Accepted

Difference between DD4T and CWA

Good question. I have not used CWA in a long time, but I will do my best to explain. CWA is a product/module/architecture which allows you to store all of your content in the Broker Database. You ...
user avatar
8 votes
Accepted

OData provider for DD4T?

I have created an OData Provider. It has not been committed to to the DD4T project yet (I am waiting on access), but I plan to in the near future. But I am happy to share my code base if you drop me ...
user avatar
8 votes

Understanding the use of SiteEdit_config.xml file in DD4T/XPM integration

OK - Looks like for XPM or style="SiteEdit2012" you can just go with an empty SiteEdit_config.xml file: <?xml version="1.0" encoding="utf-8" ?> <siteEdit enabled="true" style="SiteEdit2012" ...
user avatar
  • 6,668
8 votes
Accepted

Resolving of binary links in rich text fields by DD4T

The problem here is that the DD4T LinkFactory class only looks for regular component links. It only queries the link_info broker table, which does not contain links to binaries. When we had to ...
user avatar
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....
user avatar
7 votes
Accepted

Russian content in component delivered as ??? in tridion DD4t

I would suggest setting your ASP.NET MVC (DD4T) app to use UTF-8 encoding. http://msdn.microsoft.com/en-us/library/hy4kkhe0%28v=vs.71%29.aspx
user avatar
  • 10.2k
7 votes

Concurrency problems with DD4T Binary Module

DD4T uses the filesystem to cache binaries which are being retrieved from the Broker database. For this, it uses a HttpModule called BinaryDistributionModule, which checks each incoming URL to see ...
user avatar
  • 7,253
7 votes

DD4T and ASP.net Custom Error always throws a warning

I'll take a stab at explaining this. DD4T's TridionControllerBase.Page method is decorated with the HandleError attribute. This is an inherited attribute, meaning it's also applied to your override. ...
user avatar
  • 2,039
7 votes

Page not found using DD4T returns the error PageDAO could not be retrieved

So further looking... We found that we had copied the deployer storage_conf.xml and left in a reference to the SearchDAOBundle. Once removed everything fell into place.
user avatar
7 votes
Accepted

DD4T DefaultCacheAgent - GetLastPublishedDateCallBack called for unexpected object type

The issue with trying to reuse a single ICacheAgent instance is that both the ComponentFactory and PageFactory classes override the GetLastPublishDateCallBack property, and both make assumptions about ...
user avatar
7 votes
Accepted

Tridion 2013 SP1 DD4T SOLR index arabic character encoding issue

Is your source encoding UTF-8? If so you should run the JVM with the argument -Dfile.encoding=UTF-8 This can be achieved either by adding this parameter to the jvm.xml (if using a .Net web ...
user avatar
7 votes

DXA versus pure DD4T based approach

To answer the more black and white questions first: Is there a Java version available? Yes, but its not yet publically available, you may be able to get a sneak preview if you contact SDL. Can it ...
user avatar
  • 16.4k
7 votes

DD4T: Attempt to load JVM failed on native side

This issue is very similar to https://stackoverflow.com/questions/10238273/http-deployer-throws-attempt-to-load-jvm-failed-on-native-side. It could be one of two things: mismatch between 32 and 64 ...
user avatar
  • 6,458
7 votes
Accepted

Not able to find DD4T 2.0 (.NET) API source code

If you go to https://github.com/dd4t you will find all sources separated by package names, for .NET you have: DD4T content model (.NET) https://github.com/dd4t/DD4T.Model DD4T Core delivery framework ...
user avatar
  • 29.6k
7 votes
Accepted

DD4T site set up issue | SDLWEB8 | could not load the source in VS2013

@Meyank, Error message is showing, DD4T templating solution is searching for MSBuild at default installation path. Installation and integration of MSBuild with Visual studio will fix your error. As ...
user avatar
  • 4,054
7 votes
Accepted

DD4T versions for SDL Tridion 2013 and SDL Web 8?

For the Java version of DD4T: Tridion 2011 to Tridion 2013 No upgrade needed. DD4T versions 1.31 and 2.0.0+ will work with Tridion 2013 as well, with one important note: The DD4T web application ...
user avatar
  • 7,253
6 votes

DD4T + OData using Java

I assume you know DD4T for Java is an MVC application (Spring MVC). It uses factories to read Tridion content and metadata and to transform it into DD4T class model. The factories work with different ...
user avatar
6 votes

Embedded component presentation publishing behavior in DD4T

Tridion will resolve the published items for you and re-publish these by default. It won't remove the responsibility for (what it logically assumes) publishing items for the first time. You're stuck ...
user avatar
6 votes

Implementing SmartTarget in DD4T

You could put the content out using REL and transform the TCDL tags yourself. when you return your content from the broker. EDIT I agree with the process Harald discusses above - I have tested and ...
user avatar
6 votes

Intermittent ClassNotFoundException

Following Nuno's advice on this question, you may want to check that your website application pool is set to not recycle. It may also be worth checking the version of Java that you are using. Only ...
user avatar
6 votes
Accepted

How do we can implement Custom controller for business logic and ViewModel seperation

You need to use Component Template metadata to tell DD4T the name of your controller (ArticleView) and action (ArticleViewCT) to call when rendering: You can remove the RenderAction call, DD4T will ...
user avatar
  • 6,668
6 votes

Time zone issue with Tridion database

As you've tagged this DD4T this is likely related to the BinaryFileManager class in the DD4T project. I see in the check to ProcessRequest DateTime default is used. Given a DateTime value can reflect ...
user avatar
6 votes

Template builder vs publishing

There are different render modes, depending on what is happening, here is a short overview: Template Builder RenderMode is RenderMode.PreviewDynamic, Publication Target is null CME Preview RenderMode ...
user avatar
  • 29.6k

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