8 votes

How to determine if publishing to SiteEditable/XPM-enabled site?

If you are using Razor Mediator to build your layout you can use its built-in function IsSiteEditEnabled. The Razor Mediator v1.3.3 documentation has the following example. @if (IsSiteEditEnabled) { ...
Les Dancsecs's user avatar
7 votes

Special Characters not rendering properly on live website

There are normally three places that I would check for character display issues such as this: Do the characters look correct inside of the Components in the Tridion Content Management Explorer (CME)? ...
Jonathan Williams's user avatar
7 votes
Accepted

What really happens when we restart the Tridion Publisher service?

The Publisher for sure caches objects, but the lifetime of that cache is normally from the point the the Publish Transaction is picked up from the queue to the point that rendering (of all items in ...
Rick Pannekoek's user avatar
6 votes
Accepted

Outputting SVG image assets inline - can it be done?

We have a TBB "Output Multimedia Component as String", which may (or may not!) work for you with a little adaptation: BinaryContent binaryContent = component.BinaryContent; byte[] bytes = ...
Dave Forber's user avatar
  • 1,441
6 votes
Accepted

Razor templating in Xview framework

@Marlowe, glad to hear that you like XView :) I've created this quick video to show how you can use XView in combination with RazorEngine to develop Tridion TOM.NET templates with ViewModels, Razor ...
hoang's user avatar
  • 523
6 votes
Accepted

Unable to delete item. The item is published

I'll suggest an approach, hopefully it will work. Create the target again with the exact same name. Since the target is no longer there, you can recreate the target with dummy values for deployer. ...
Vipin Kothari's user avatar
6 votes

Outbound email TBB not uploaded in CMS 2013 SP1

Open Template Builder Click the Tools menu and select Create Default Building Blocks Select the parent folder to your Default Templates folder (i.e. if your default templates are currently in Building ...
Peter Kjaer's user avatar
  • 19.8k
6 votes
Accepted

DD4T - Generate DD4T.Templates.merged.dll using ILMerge manually

According to the post-build script these are the dlls to merge: DD4T.ContentModel.Contracts.dll DD4T.ContentModel.dll DD4T.Templates.Base.dll DD4T.ContentModel.XmlSerializers.dll DD4T.Serialization....
hoang's user avatar
  • 523
5 votes

Get field value from multiple embedded component link from multiple embedded field

I think you know the issue; the linked components aren't added to the package by default. You have a couple of options here: Install the Razor mediator and have linked components accessible OOTB. ...
Josh Hebb's user avatar
  • 2,920
5 votes

Get field value from multiple embedded component link from multiple embedded field

There are a couple of ways you can do this. If your solution is flexible on the language used in your designs you could use the Razor Templating Mediator, which is great at handling multivalue, ...
Tanner Brine's user avatar
  • 2,512
5 votes
Accepted

How to get all keywords inside the particular category using C# TBB

Here are few things you should cross check as the code looks fine. As Pankaj already suspected , you might be using some config which your C# TBB won't be able to read/access , use the categoryID ...
Ashutosh's user avatar
  • 649
5 votes
Accepted

DXA 1.5 TBBs do not output Multimedia Component Field - External Url, recursively

DXA follows the behavior that SDL Web (or Tridion if you will) delivers, when using an External URL in a Multimedia Component, at Publish time, the content of the External URL is fetched and published ...
Bart Koopman's user avatar
  • 29.6k
5 votes

Publishing an item should trigger publish from parent publication and avoid infinite loop

Instead of creating tbbs for managing publishing, i suggest using event system. It is much more elegant solution. You can manipulate objects via event system more easily and will have more control ...
Marko Milic's user avatar
  • 8,863
5 votes

Publishing an item should trigger publish from parent publication and avoid infinite loop

Not that this sounds like a particularly good idea but - are you sure you're not publishing with "publish child publications" checked? Also - you'll have to catch (using the Event System - which ...
Dylan .. Mark Saunders's user avatar
5 votes
Accepted

How to consume XML sent by C# TBB in Razor template?

AFAIK, you won't be able to get the Keyword titles directly in a Razor TBB; however, you can create your own custom function in the Razor TBB that manipulates the XML and returns the titles. The ...
Sabarish Senthilnathan's user avatar
5 votes

Unable to debug Merged .NET assembly Template Building Blocks

Thanks all for the answers and comments. But it was a silly mistake from my side, So to upload the DLL (and other TBBs) in Tridon I was using the command below TcmUploadAssembly.exe config.xml "...
Saurabh Gangwar's user avatar
4 votes

Get field value from multiple embedded component link from multiple embedded field

In addition to the answers already given, which offer up the Razor Mediator, Get eXtension and some .Net based TBB methods, there is also a fairly simple, works out of the box, pure DWT solution which ...
David Forster's user avatar
4 votes

How to get all keywords inside the particular category using C# TBB

Use Template Builder to debug you code by adding TemplatingLogger lines between your commands. public class GetKeywords : ITemplate { TemplatingLogger log = TemplatingLogger.GetLogger(this....
Ognjen Ivetic's user avatar
4 votes
Accepted

Retrieve list values in DWT template

There is a TBB called Get Linked Components in the Template Base framework for DWT. You can find it here: https://www.sdltridionworld.com/community/2011_extensions/generic-2011-tbbs.aspx. It will ...
Nickoli Roussakov's user avatar
4 votes
Accepted

component.Schema is null in SDL Web 8

Sounds like an issue with lazy loading of TOM.NET objects. In general, TOM.NET objects can be partially loaded (i.e. not all property values are retrieved). This typically happens when getting a list ...
Rick Pannekoek's user avatar
4 votes
Accepted

UsingItemsFilter not filtering result for publication context

Since you seem to be interested in classified Components: did you consider using Keyword.GetClassifiedItems ?
Rick Pannekoek's user avatar
4 votes
Accepted

Publishing linked dynamic components

You could use a custom resolver; much like as described in this article: http://www.tridiondeveloper.com/a-custom-resolver-in-practice
Will Price's user avatar
  • 16.4k
4 votes

Publishing linked dynamic components

Actually you can achieve this via templating, no need for custom resolver. You can add additional dwt in your page template in which you will have RenderComponentPresentation() function for your ...
Marko Milic's user avatar
  • 8,863
4 votes

Unit test TBB in C# in Web8

It's tempting to see Tridion templating as an exercise in object-oriented programming, in which idiom the most obvious automated test is a unit-test. It's often better to see it as a data ...
Dominic Cronin's user avatar
4 votes

Differences between PTs in DXA

They do appear to have the same metadata and includes, so in the default dxa setup, they are the same. However, separating the home page and section pages in two different templates can be useful, ...
Harald Hoffelinck's user avatar
4 votes
Accepted

.NET Framework 4.0 templating DLL support SDL Web 8.5

First - Tridion has a very long history of supporting templates through an upgrade without changes. My DWT Get Extension was written for Tridion 2009 and it still works in Web 8.5 without a single ...
Nuno Linhares's user avatar
  • 29.1k
4 votes

DXA dynamic type mapping

No, it doesn't; DXA uses Strongly Typed View Models. The supported View Model property types depend on the CM field type you are mapping to. In case of a CM Component Link field, you can map it to a ...
Rick Pannekoek's user avatar
4 votes
Accepted

How to check publishing or rendering context using TOM.NET in the new publishing framework

If all is well, the same logic can still be used; the new publishing franework uses Topology Manager Mappings instead of Publication Targets, but you will find that there is still a PublicationTarget ...
Rick Pannekoek'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

Publishing getting failed in Template rendering but able to preview the Page

A few things you may want to check: Is the TBB reliant on some/certain content being published to Publishing Target? Is your Publisher scaled out from you CM? If so, then it may be that there's an ...
Jonathan Williams's user avatar

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