Hot answers tagged

14

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 the Content Manager database as XML in the Content Delivery broker in the visitor's browser as HTML Tridion systems architecture +----------+ +---...


11

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 config I was not defining the default route, hence it was complaining about the route not being found. Once I added the following to my area route config both ...


11

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 with the tridion dlls you are using (download the source, set the references to your contentdelivery dlls, and build, or you can add the following in your web....


10

As it turned out from the comment from Albert, I had to remove the "Convert XML to Java" TBB from my Page Templates/Component Templates. Thanks again!


10

There's no reason why you still can't use the TBB's. I'd recommend using them in the event you wish to move away from the DD4T mvc framework in the future. Simply output your content as REL and transform the TCDL tags yourself when you return your content from the broker.


10

The classic concept of BluePrinting does not change whether you use DD4T, CWA, or a classic Tridion DWT-based implementation. The only difference with DD4T is that instead of publishing rendered markup (i.e. baked HTML, Java, .NET or whatever server-side language), DD4T's templates publish XML (e.g. when you look at a component's source, just with a bit ...


10

As David said, there is no change to the authoring process for the editors and the Blueprint model is the same. In terms of how the CD looks depends on your requirements and capabilities in terms of scaling and deployment set up. You could have a single web application pointing to a single Broker database which all publications publish to in the model ...


10

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 the html helper (promo name, nr of items, region name,...) construct a smarttarget query send a query and receive xml with results. I believe the results are tcm ...


9

In terms of BluePrint design and authoring, nothing needs to change... The process for creating schemas, components and pages etc. remains the same, and the methodology of using multiple BluePrinted publications to, for example, localise and/or translate content remains valid and can be identical to that which you know and love. Architecture wise - things ...


9

Assuming your dynamically published Component Presentation is using a default DD4T style Component Template, all you need to do is retrieve the Component using the ComponentFactory as part of your controller action. You can get the ComponentFactory from the DependencyResolver like so var componentFactory = DependencyResolver.Current.GetService<...


9

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 "master page" (called "layout page") to use. This layout page will be outputted around all of your views that don't specifiy a custom layout. you can specify a ...


9

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 Install-Package DD4T-Tridion-2013sp1 Then in the DD4TNinjectModule class, change the using statement to match the provider. Lines 11 and 12. // TODO: Change this ...


9

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 this, go into your config folder on your localhost machine, open the logback.xml and set this property to debug <property name="log.level" value="DEBUG"/&...


9

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 then have a CWA enabled web application which uses OOTB JAR files to retrieve the content (i.e. Pages and their component presentations as well as binary files ...


8

As already answered by Rob and Quirijn, the LinkFactory from DD4T only does Component Linking. You can use the core Tridion Content Delivery API to page link though. Check the Tridion.ContentDelivery.Web.Linking.PageLink class and it's various GetLink methods. i.e: //create a new PageLink instance for publication 199 var pageLink = new PageLink(199); //...


8

The LinkFactory does Component Linking and it looks like you're trying to link to a Page. Your link variable is null because there isn't a Component with that ID.


8

It looks like cd_dynamic.jar is missing in the lib folder. Update: Needs to remember that cd_dynamic.jar and cd_dynamic_conf.xml are dependent on each other. Hence, cd_dynamic.jar should be placed in lib folder cd_dynamic_conf.xml should be placed in config folder


8

I'd say that your approach is solid as the headers and footers are in a single item, which means they can be published once and changed globally. I typically have a configuration file where I store 'global components' by TCM ID, this means you can get the item from the broker via the following: var componentFactory = DependencyResolver.Current.GetService&...


8

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 an email at stackexchange@urbancherry.net It is still a bit of a work in progress, but it has page, component, link and binary support. The performance is ...


8

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" tridionHostUrl="http://xxx.xxx.xxx.xxx"> <contextPublications/> </siteEdit> This enabled XPM without having to implement a <...


8

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 implement a similar functionality, we had to customize the DD4T code. What you could do is something like this create a custom LinkFactory class, inheriting from ...


8

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.RenderComponentPresentationBy...() helper. Regarding your question on "Do people typically expose pre-filtered lists of component presentations from their model", I have to say ...


7

Ok, I found out that it was still the Tridion.ContentDelivery.dll. It was present, but it was a different version than my Provider dll was built against. So the provider did not want to load it. See the comments on the previous answer to see how the fix was done. A great way to test is to load the unity (or whatever framework you use) configuration to ...


7

You can also query Fredhopper directly via the query web service -passing the various facets you wish to query on. Fredhopper will return results that contains several components such as a breadcrumb, facetmap, item lister and promotions. You can then render these as you wish. Cheers


7

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


7

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 whether it requests a binary. If a binary indeed is requested, a call to the BinaryFileManager class, which writes a fetched image to the filesystem if the publish ...


7

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. Now, the HandleErrorAttribute (for which you can see the source here) replaces the view model in ViewData with its own HandleErrorInfo and renders out (by ...


7

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.


7

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 the type of cached objects they will handle. The ComponentFactory assumes that the cached objects will implement IComponent; the PageFactory assumes the cached ...


7

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 application) or in the startup parameters of your application container. For jvm.xml (located in bin/config of your web application) the syntax is <Option Name=...


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