Ant P
  • Member for 8 years, 11 months
  • Last seen more than 3 years ago
  • Manchester, UK
Accessing Embedded Schema fields via list of Component Links
Accepted answer
15 votes

Ensure that item.EmbeddedSchemaName.EmbeddedSchemaFieldName is non-null for each item: @foreach(dynamic item in List) { if (item.EmbeddedSchemaName.EmbeddedSchemaFieldName != null) { @...

View answer
Content Porter 2009 import without Publication Metadata
Accepted answer
13 votes

After selecting your items to import, right-click on each Publication that is now checked and select "Selected children only." This will stop Content Porter from importing the Publication itself (...

View answer
DD4T-how to read all the fields of a component?
Accepted answer
11 votes

This works differently in DD4T. Unlike when dealing with the dynamic ComponentModel.Fields exposed by the Razor Mediator, you're now working with a standard dictionary, so you need to check that the ...

View answer
Get StructureGroup ID in Dreamweaver
Accepted answer
10 votes

Alternatively to using the Dreamweaver Get Extension, you could retrieve this information with the use of a C# TBB. Something along the lines of the following should work (assuming this is a page ...

View answer
Is there a tool to add multiple images to Tridion?
10 votes

As an alternative to WebDav, the 2011 Power Tools project includes a Batch Image Uploader: https://code.google.com/p/tridion-2011-power-tools/

View answer
Error -Type mismatch: cannot convert from void to Criteria
Accepted answer
9 votes

As hinted at by Nick, the Criteria.AddCriteria method doesn't return a Criteria object, so you can't assign it as you're trying to. What you probably want is something like this: searchCriteria....

View answer
Component Presentations not being added to page through core service
Accepted answer
9 votes

You are overwriting your array of ComponentPresentationData objects in each iteration of your foreach: foreach (var cp in pageData.ComponentPresentations) { // Build up collection of cps ...

View answer
DD4T and ASP.net Custom Error always throws a warning
7 votes

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. ...

View answer
Why do Experience Manager TBBs insist on outputting a new tag around every Component Presentation and Component Field?
7 votes

When the XPM markup is parsed, everything up until the end of the containing HTML element is treated as part of the "editable" region. My assumption, then, is that because the RenderComponentField ...

View answer
Simplest way to add javascript to the header section in Tridion
Accepted answer
7 votes

There's an infinite number of ways to achieve this. What is best depends entirely on your scenario; however, if you are looking simply to inject a snippet of Javascript into a manually-selected set of ...

View answer
Ordinal position of a Component Presentation in a DWT
Accepted answer
7 votes

Thanks for the responses, all. In light of Bart's answer, I have decided that I can make do with having the ordinal position of each Component Presentation, with respect to its Component Template. ...

View answer
Help understanding Services in a GUI Extension
Accepted answer
6 votes

I wouldn't really say this is necessarily a Tridion-specific question, nor would I say that the PowerTools model is the canonical (or even best) approach to architecting GUI extensions. It sounds ...

View answer
How can I check if a linked Component is first in the list?
Accepted answer
5 votes

To expand a little on what your problem is and why your solution won't work; the IsFirst property that you're using is part of the Razor Mediator's DynamicItemFields class and is explicitly set by the ...

View answer
Custom Resolver versus AddBinary()
Accepted answer
4 votes

All resolving will occur before any rendering (as you have to resolve everything in order to know what to render) and, yes, I believe that "Show Items to Publish" includes items resolved by custom ...

View answer
Query timed out error while publishing the component
4 votes

Without a specific error message, it's difficult to diagnose this problem properly; however, if it's failing while resolving then it's not likely to be an issue with the CT but, if you have a lot of ...

View answer
Link Resolving with Razor Mediator
4 votes

This blog post suggests that - in order for the Link Resolver to work successfully for tridion:type="Multimedia" - you have to manually publish the binaries prior to resolving the link. What happens ...

View answer
Why can't I see the "Add Child" button in the Publication BluePrinting dialog?
3 votes

As far as I know, it is not possible to directly "add" a Publication as a child of another. There are a couple of reasons for this that are immediately obvious (though it's likely that there are more):...

View answer
Header/Footer in DD4T websites
3 votes

I've had some success with this approach (example used is for a footer but could easily be applied to a header): Create a Generic DD4T XML Page Template that Publishes a DD4T page with an XML ...

View answer
DD4T and Tridion 2013 SP1
3 votes

I hit a few compatibility issues with this this week and I've created a NuGet package which contains a version of the Tridion 2013 providers with updated references to the SP1 DLLs here: http://nuget....

View answer
Iterate through ComponentModel List
3 votes

I seem to recall that the Razor Mediator has problems with extension methods. This means that, in order to use OrderByDescending and other Linq extensions, you'd have to do something like: @ { ...

View answer
Tridion Mock Objects
2 votes

I'll throw another possibility into the mix. Ideally, in this scenario (in the context of a C# TBB, for example), what you'd want to do is mock out the Engine and Package objects to control their ...

View answer
RTF Fields vs Normal Text Field in Schema
2 votes

Aside from the obvious issues regarding design consistency and formatting (which you've already acknowledged), one thing to take into account is the fact that if you are planning on doing a lot of ...

View answer
What is the meaning of v0 in tcm id like tcm:163-34568-v0?
2 votes

"v0" is the version, with the zero indicating that it's the current version of the Component. As far as I know, there's no built-in way to retrieve the ID without the version; however, it's simple ...

View answer
Why does removing the AmbientData HttpModule in Web.config prevent IsPostback from always being false?
1 votes

My limited understanding of how this works is as follows. When an ASP.NET HTTP module first accesses the POST data for a particular HTTP request, the stream containing the request body is consumed, ...

View answer
Hosting DD4T and traditional ASP.NET SDL Tridion application under one website in IIS
1 votes

Nuno's answer points to a post on running ASP.NET MVC and WebForms side-by-side. There's a plethora of information out there on doing so, so I will skip that part of the question as it's not really ...

View answer
Naming Conventions for Localized Items?
1 votes

I'd come at this question from a slightly different angle, particularly regarding situations like this... A major catch is code that relies on Content Manager-side paths (e.g. referencing a ...

View answer
How do I, in a C# TBB, convert a TCM ID to a link?
1 votes

As Nuno details, link resolution is the responsibility of the content delivery service. It is possible to resolve links at publish, in a sense; however, you will lose a lot of sophisticated ...

View answer
DD4T can't find pages on server but can local. (404)
0 votes

To throw another answer into the mix - you should be able to resolve this issue without resorting to the "sledgehammer" approach that Will mentions by removing the precondition from the ...

View answer