Questions tagged [dd4t]

DD4T (short for Dynamic Delivery 4 Tridion) is a light-weight framework which links SDL Tridion to your MVC web application architecture. It is available both for Java (Spring MVC 3) and .NET (ASP.Net MVC 3 or 4).

Filter by
Sorted by
Tagged with
8
votes
2answers
519 views

DD4T: GetComponents: Index was out of range. Must be non-negative and less than the size of the collection

I have the following code in my controller: string[] componentIds = new string[] {"tcm:26-123","tcm:26-456", "tcm:26-789"}; ComponentFactory cf = new ComponentFactory(); var components = cf....
6
votes
2answers
346 views

DD4T-Linked Component Issue

I am using the below code to access the field values for a linked component. In the foreach line, it throws error that The given key was not present in the dictionary I have checked the ...
6
votes
1answer
287 views

DD4T-how to fetch linked components fields using razor

I have a component with a field "video" which is linked to a component which consist of a youtube url. I just want to fetch that url from that component. My code below what I tried @if(Model....
6
votes
2answers
262 views

Avoiding republish of all pages when Structure Group Metadata changes in DD4T

Imagine the following hierarchy of pages + structure groups (with the stated metadata field): (StructureGroup): Section [MetadataField: BodyCssClass (text)] (StructureGroup): About (Page): Default (...
7
votes
2answers
346 views

DD4T configuration

We are planning to move to using DD4T for a new website. Currently the cd_deployer is in Linux. We have the following questions: Do we need to switch cd_deployer to Windows server while using DD4T? I ...
7
votes
1answer
684 views

DD4T - Dynamic Link Resolution Falls Over Within TridionLinkProvider

I'm currently trying to implement a DD4T solution (running locally), and have had a lot of success with most aspects of the implementation. I have pages setup and working which pull through all types ...
11
votes
3answers
331 views

DD4T-how to read all the fields of a component?

My component has fields like (text,image,componentlinks). I have faced two issues since, here we cannot use <a tridion:href="@fields.internal_link"></a>, so how can we create a component ...
5
votes
1answer
179 views

Broker Database - Unable to retrieve htm files from DB

I have the following configuration to save files to the broker Database. <Item typeMapping="Page" cached="false" storageId="defaultDataFile"/> <Item typeMapping="Page" itemExtension="....
11
votes
2answers
599 views

Rendering a single component presentation in DD4T

I have a page with several component presentations using the component template 'Promotion'. In my page view '_Page.cshtml' I wish to write out all component presentations using this template and for ...
8
votes
1answer
315 views

Storage config setting for XML files to DB quesiton

We're using SDL Tridion 2011 SP1 HR1, DD4T 1.25.0.0 (.Net website with IIS) We wanted to load a (navigation) XML file from the filestore if it existed (as a debug override) and get it from the ...
10
votes
1answer
193 views

DD4T: Date component field to DateTime

I have a date field in a tridion schema which, when published using the standard DD4T templates, becomes the component field: <Field xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:...
5
votes
1answer
139 views

Binaries not removed from file system when the component is unpublished

I have a multimedia component and it is linked in Content component. When I publish the component, the binary should be stored in the file system without any tcmid. e.g A multimedia component with ...
8
votes
2answers
232 views

How to access the current page from within a DD4T component view

Due to an irritatingly structured HTML design, I need to (in my 2011 SP1 DD4T .NET web application) be able to access certain Component Presentations on a page from within a Component view, to embed ...
5
votes
1answer
107 views

Determine absolute path to item (DD4T)

Is it possible to get the absolute path to a Page in a SG? Currently, I only get the immediate parent of the item in the DD4T output. For example: ... "StructureGroup": {"Id": "tcm:1006-1028-4", "...
5
votes
2answers
419 views

Experience Manager: Sequence contains no matching element

I'm busy testing Experience Manager in a DD4T implementation and am hitting a wall. Our setup: Tridion 2011 SP1, DD4T, Experience Manager, Workflow BP: Content Parent Publication providing content ...
7
votes
2answers
155 views

Problems with multiple TBBs using same parameter schema

I have a DD4T Component Template which contains 2 TBBs: Publish Binaries For Component Generate Dynamic Component Both of these have the DD4T TBB parameters attached, and in this particular template,...
6
votes
2answers
382 views

How to publish automatically a linked component in a rich text field of other component?

I have a bit problem and a few new questions related with the rich text. When I create a new component, linked another component in a rich text field of the first component, create a page and add the ...
7
votes
1answer
137 views

How can DD4T request the broker with known component's URI and receive a component

Could I request the broker server for a component sending the component's URI, using dd4t? When I use ComponentFactory.TryGetComponent - it returns null for the object. Using Tridion2011sp1 and DD4T ...
7
votes
1answer
336 views

RichText and linked components

I have a richtext with linked component inside. Also, I have added LinkLevel=9 for my page template and component template. This link is in the scope of these levels. What do you think is the best ...
10
votes
2answers
264 views

How do I hook up DD4T.ContentModel.IComponent.Multimedia.AltText to my metadata field value?

I am using DD4T (1.26.x) and ASP.NET MVC, and just noticed the useful looking AltText property on DD4T.ContentModel.IComponent.Multimedia. I have a metadata field alt_text on my multimedia component, ...
3
votes
2answers
200 views

DD4T.Templates.Base.BaseComponentTemplate Serialization

Has anyone written a JSON serializer for this? Seems a mistake to have hard-baked in the serialization functionality within this class, specificially to XmlSerializer, but I'll stand corrected as to ...
13
votes
6answers
1k views

Attempt to load JVM failed on native side

We are working in a DD4T project using TFS as source control, today when I opened the solution I had this error message : My colleague had this one yesterday, he restarted his computer and it fixed ...
4
votes
1answer
304 views

DD4T + OData service

I'm using DD4T and have some XML being generated which I can now query from the OData service. Unfortunately the DD4T content comes back serialised into the content property of the response. This ...
5
votes
2answers
270 views

Best practice for designing Experience Manager-managed tabs/sub-tabs component?

I'd like some input on how to best achieve a schema design for tabs, that could contain sub-tabs and/or normal content. Pretty much like this one: http://os.alfajango.com/easytabs/#nested-tab-3 What ...
6
votes
1answer
298 views

Dynamic Linking Across Multiple Web Publications

I have a scenario where there are several websites powered by Tridion and there are component links that I want to resolve across web publications. For example: There is a Corporate site: ...
5
votes
2answers
401 views

Why my web project with added x86_x64 Tridion's dlls does not work properly on my local 32bit machine?

Scenario: I have 32 bit dev-machine and 64 bit server The project's target is AnyCPU My local project works perfectly with x86 dlls from Tridion. But this requires to enable 32bit support in my ...
8
votes
1answer
139 views

How to map TridionPageProvider.PublicationId to web.config[appSettings.PublicationId]

For multi-publicational purpose I need all publications to override some items in appSettings area of the web.config file of my web application. Is there a clever way that my TridionPageProvider....
7
votes
1answer
227 views

Why does my DD4T project find more than one controller?

I created a DD4T project from scratch including ASP.NET MVC 4 website, I copied all files (lib, conf & license included) from DD4T template but when I deploy the solution there is a problem ...
10
votes
3answers
477 views

How do I resolve a 'No PageFactory configured' error in DD4T?

We decided to create a "homemade" DD4T template to have the Tridion API & an ASP.NET MVC 4 website (the current template contains contains an ASP.NET MVC 3 website) I added /lib & /config ...
7
votes
1answer
121 views

Tridion 2011 SP1 HR1 - PageContentAssembler

Observing some strange behaviour in our code thats is pulling back published page content from broker. This is DD4T (except we use WCFs a DD4T providers to get stuff out of broker) - when we query ...
8
votes
1answer
248 views

DD4T The “MetaQueryValues” parameter for IComponentFactory.FindComponents()

I am trying to retrieve all Components which satisfy a certain schema, and i have chosen the method "IComponentFactory.FindComponents" to do this. This method accepts an "ExtendedQueryParameters" ...
8
votes
2answers
1k views

Problem with runing locally project with tridion and DD4T- unable to load dll 'xmogrt': the specified module could not be found

I have two new question about my local configurations. Now, I am trying to configure a new machine and I am facing two new problems. Scenario: 32bit local machine and 64bit server installed Java ...
7
votes
1answer
254 views

DD4T Dynamic Links weird URLs

We're using DD4T and in a view are rendering component links. The issue is that the link comes out like this: http://localhost:889/http://localhost/.... The relative path is correct, but the front ...
8
votes
2answers
181 views

Page preview in CM of DD4T page

we will start with a DD4T implemenation soon (Tridion 2011 SP1, MVC4, .NET 4.0), but one (hard) requirement from the client is that the preview of a page in Tridion CM context is working. The default ...
7
votes
5answers
2k views

Problem with runing locally project with tridion - Could not initialize class StorageManagerFactory

I have a problem, with running my Tridion installation locally. Info: - I have installed Tridion on 64bit server - My local machine is 32bit - On my local machine I have installed jre1.6 and jdk1.6....
8
votes
2answers
343 views

DD4T and deeply nested components

We've an implementation where we are using the DD4T framework. Some of our pages contains up to 5 levels of nested components: Page Component embedded into page (with CT 'blah') Component ...
14
votes
5answers
313 views

Modelling one-off pages with DD4T

My web application has a number of one-off pages, by which I mean a page whose contents does not follow a standard layout, and the content does not fit a standard schema. These are typically simple ...
9
votes
1answer
784 views

Navigation with DD4T and MVC

What is the best approach for building navigation with DD4T and ASP.NET MVC? From Tridion I was thinking to publish the Structure Groups as XML, including URIs for the Pages, and then in the MVC ...
8
votes
3answers
288 views

DD4T - how to retrieve/use publication-depending values

in the webform era, we implemented (mostly) the following structure: one .NET application (and a corresponding app pool) for all local websites in the root of the app, we had a global web.config (...
6
votes
1answer
378 views

How to render image from database using DD4T

I am publishing everything to the Broker database, including images. How do I resolve the images from the Broker database using DD4T? I found a nice example of resolving images from the filesystem ...
6
votes
2answers
83 views

Combined use of templating techniques within a single CM instance?

A client has a CM - CD environment set up and running several sites using the classic Compound Template model We're exploring the possibility of introducing a set of 64 sites into the existing CM ...
12
votes
2answers
287 views

Can a single DD4T project be used against multiple publications?

The traditional way to display a different language or content for a site in Tridion is to have the web publication publish its website in a different folder. DD4T has a Publication Id that is set in ...
12
votes
1answer
229 views

Tridion UI 2012 Session Preview Web Service not maintaining preview in browser

I am struggling to get Tridion UI 2012 Session Preview working on a DD4T website. I view the website in a browser, click the SDL Tridion logo to enter 'edit' mode, then start editing some content on ...
13
votes
2answers
265 views

List of items in DD4T

I would like to get a list of news items from the Broker in DD4T. I created a Controller to query the Broker and build a list of items using my own Model. The View iterates over the list and deploys ...
7
votes
1answer
193 views

Component Template Used in DD4T for Multiple Component Presentations with Same Component

How is the resolving of the Component Presentations done with DD4T? We had a strange situation where an older Component Presentation was shown for our Page but using a different CT. Looking into the ...