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) {
...
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)?
...
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 ...
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 = ...
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 ...
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.
...
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 ...
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....
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.
...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 "...
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 ...
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....
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 ...
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 ...
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 ?
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
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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.
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
templating × 2492011 × 47
2013 × 31
dwt × 28
publishing × 25
2013-sp1 × 24
razormediator × 20
tom.net × 16
content-manager × 13
web8.5 × 12
2009 × 12
web8 × 11
dd4t × 11
experience-manager × 9
c# × 9
template-builder × 9
dxa × 8
cme × 8
content-delivery × 7
template-building-blocks × 7
ecl × 6
core-service × 5
event-system × 5
componentpresentation × 5
multimedia × 5