Questions tagged [templating]

for questions about Page or Component Templates and Template Building Blocks (TBBs)

Filter by
Sorted by
Tagged with
4 votes
1 answer
434 views

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

I modified the code of DD4T Templates projects and I generated all the dll files. The next step is to join it in DD4T.Templates.merged.dll using ILMerge. I see in the project a file to build the ...
Guskermitt's user avatar
  • 1,277
19 votes
1 answer
528 views

Getting additional keyword information from item Xml?

I have a very generic "GetItemXml" template building block that basically reads the current item being rendered and outputs the item's xml to the delivery tier. Component component = (Component)...
Nuno Linhares's user avatar
  • 29.1k
17 votes
4 answers
1k views

What are the best practices to manage the sitemap for a Tridion website?

As a general requirement some/almost all of our clients require the website’s sitemap to publish automatically whenever a page gets created and published. Generally we implement this functionality ...
Ram Saurabh's user avatar
  • 1,404
12 votes
1 answer
593 views

"Unable to get template type with legacy id" error

I am working with the XPM in Tridion 2013 at the moment. I want to change the page template of one of my pages but when I click on the drop-down, there is an error notification popping up. It says: ...
Stefan Shumanov's user avatar
10 votes
2 answers
421 views

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

How can one determine if the Template is being published to a site with SiteEdit/XPM enabled? When Experience Manager is installed, Publication Target in the CME has a flag "Enable for inline editing"...
Nickoli Roussakov's user avatar
14 votes
1 answer
475 views

DWT Page Template Title Syntax

An easy few points for someone, I hope! I want to get the Page Template title in my DWT template. I could knock up a quick C# TBB, but it seems like I should be able to do it without. I have tried: ...
Chris Morgan's user avatar
  • 7,327
9 votes
3 answers
1k views

Accessing page object in C# TBB used in the component template

Is there a way to access page metadata schema value or structure group metadata value holding that page from the C# Code fragment which is used in the component template?
Vivek Kwatra's user avatar
7 votes
2 answers
558 views

TcmUploadAssembly tool throws error while uploading dll

I have a base project deployed to GAC that implements the ITemplate interface. e.g) class PageRenderMaster : ITemplate public void Transform(Engine engine, Package package) {} I have domain ...
Jaison Prabhu Doss's user avatar
7 votes
1 answer
205 views

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

With regards to publishing and rendering in TOM.NET, I know the following is true for the legacy publishing framework (pre Web 8): Template Builder PublicationTarget is null, RenderMode is ...
Bart Koopman's user avatar
  • 29.6k
1 vote
1 answer
682 views

How to retrieve the component presentations using DWT in Page Template templating?

How to retrieve the component presentation using DWT in a Page Template where the component have neither content nor any fields in it.The component is a dummy component created using empty schema ...
user3113876's user avatar
0 votes
2 answers
120 views

Step to overide publishing page url using deployer extension

Anybody knows how to create deployer extension to change publishing page URL before inserting to broker database? We are trying to modify the page URL because we will be using keyword key value in ...
Binod's user avatar
  • 125
16 votes
8 answers
897 views

Ordinal position of a Component Presentation in a DWT

I am looking for a way to generate a CSS Id for a Component Presentation, which is guaranteed to be unique within the scope of the page. My initial thought is to make use of the ordinal position of ...
Ant P's user avatar
  • 2,039
15 votes
4 answers
3k views

Are there any sources of good study materials for SDL Tridion 2011 templating?

I have been working in SDL Tridion 2011 writing C# Template Building Blogs and Dream Weaver Templates. So far, everything I have learned has been either with help from more senior developers OR by ...
R.C's user avatar
  • 926
13 votes
3 answers
165 views

Templates not readily available in Tridion Content Manager

When I create a new page template it doesn’t seem to be available in Tridion straight away. That is, if I go to a page I can’t assign my new page template straight away. It does become available after ...
Richard Hamlyn's user avatar
13 votes
1 answer
534 views

Component Templates - Creating using the Output format 'XML Document'

I was just creating a new compound component template today, when selecting the output type I found/noticed something that I've not seen before. If you select the type 'XML Document' a new tab is ...
johnwinter's user avatar
  • 14.3k
10 votes
2 answers
373 views

Publish Binary File in a MM Link Field

I try to think about what is the best practice of publishing binary file in a MM link field without coding like in the DW Template. The background of this question is that I have a couple of on/off ...
Naoki's user avatar
  • 459
9 votes
4 answers
608 views

How to include partial (unbalanced) html in a Razor Mediator if statement?

When saving a Razor Mediator Template it fails anytime that I have an if statement with unbalanced html tags in side of it. @if (Fields.subtitle != null) { <div class="subtitleColor"...
Nicholas Wetmore's user avatar
9 votes
1 answer
484 views

How do I determine if a Component is Published based on the current TargetType

I'm using Component.IsPublishedInContext to determine if the Component is published but the value returns true irrespective of the current TargetType where the Component is being published to. ...
Kunal's user avatar
  • 1,485
9 votes
6 answers
933 views

What is the best way to manage Javascript and CSS withTridion (2011/2013)?

I've always wondered if there's a "preferred" way to manage CSS and Javascript files in Tridion. I have mine (do whatever is best for the customer's requirement) but maybe there's some kind of "best ...
Jaime Santos Alcón's user avatar
8 votes
2 answers
1k views

DW Template for Multi Embedded Multi Component Link Field

I'M trying to implement DW Template using the Useful TBB("Get Linked Component") found the following URL. https://sdltridionworld.com/community/2011_extensions/generic-2011-tbbs.aspx This TBB have ...
Naoki's user avatar
  • 459
8 votes
1 answer
529 views

XPM inline editing of Multi-valued field inside a multi-valued embedded field

I have a schema with a multi-valued embedded field, which further have multi-valued text field. Need to loop through the embedded field first and then loop through the multi-valued text field - using ...
Saurabh Mehndiratta's user avatar
7 votes
3 answers
907 views

DW Template for implementing multiple text field in component link field

I'd like to know how to implement multiple text field in component link field. My situation is Component A has a single component link field "Note1". "Note1" field has a value of a Note Component. ...
Naoki's user avatar
  • 459
7 votes
2 answers
1k views

Component Template - Parameter Schemas (2011 SP1 HR1)

Couldn't find an explanation in the online documentation but the Parameter Schemas option on Component Templates - can this actually be used the same way parameters are used on TBBs? After adding a ...
Neil's user avatar
  • 6,698
7 votes
1 answer
501 views

Link Resolving with Razor Mediator

I am pretty new with Razor Mediator and of course having some issues while testing my TBBs. I am writing a TBB that renders HTML for HTML5 videos like this. <h2>@Fields.title</h2> <...
Eric Huiza's user avatar
  • 9,352
6 votes
2 answers
141 views

Event code error - only in Template Builder

Firstly, this is an 8.5 instance, upgraded from 2013, upgraded from 2011. We have Audience Manager installed (and working well) and outbound email. I have a set of custom events that subscribe (when ...
Dylan .. Mark Saunders's user avatar
6 votes
2 answers
299 views

Preview a Component Presentation from TBB code

I wish to preview a component presentation and get the rendered content from within another Component Template. I can call engine.RenderComponentPresentation() to get the rendered content, however I ...
Will Price's user avatar
  • 16.4k
6 votes
2 answers
696 views

How can I debug Tridion Templates locally without connecting to TcmTemplateDebugHost?

Everyone might be facing the same problem with debugging Tridion templates: How to debug Tridion Templates locally without connecting to the remote TcmTemplateDebugHost.exe Is there way to debug ...
Siva Charan's user avatar
  • 4,324
6 votes
1 answer
137 views

Modifying Templates for Hebrew and Arabic

We use Tridion (2009) for our different country sites that have left to right languages such as French, English, and Chinese. We now need to modify our existing templates for Hebrew and Arabic, ...
H Victor's user avatar
4 votes
2 answers
152 views

Is it possible to assign or change the value of a component Field during templating?

I was wondering if it is possible to assign or change the value of a Component Field during templating? Is there any way to accomplish this? Say for eg : List<ItemFields> fieldslist = (List<...
user768's user avatar
  • 175
4 votes
2 answers
327 views

Publish Multimedia to sub folder with dynamic Component Template

We have a dynamic Component Template for publishing Multimedia Components. The dynamic Component Template redirects the multimedia binaries to a XYZ target Structure Group (in Default Finish Actions). ...
TempTracer's user avatar
3 votes
1 answer
273 views

Error on previewing an ECL Component

I'm trying to implement Bart's Flickr ECL provider to get content from Flickr. Successfully configured to Tridion, Flickr images are now exposed to Tridion. I'm testing on how ECL Components rendering ...
USER1287's user avatar
  • 169
3 votes
2 answers
1k views

Special Characters not rendering properly on live website

I am facing issue with production website which is displaying some special characters as black diamond shape with a question mark inside, on multiple browsers .However, the QA website is displaying ...
jyoti's user avatar
  • 31
3 votes
1 answer
217 views

Render component template from link to component field [tridion 2009]

In the schema of a component A, there is a "link to component B" field. I want to retrieve the template of that component B in my component A template. I tried the following but it does not work: <...
user avatar
3 votes
1 answer
294 views

Outputting SVG image assets inline - can it be done?

We are using SVG images more and more and I would like to put some of these inline using the <svg>...</svg> code directly in the markup. I've done this successfully when the image is ...
ThatITBloke's user avatar
2 votes
1 answer
759 views

How to retrieve component by specific Schema?

I have a schema id. based on that schema id i want to retrieve all components modified date (created by that schema). How to resolve it?
User 45's user avatar
  • 119
2 votes
1 answer
226 views

Unable to save c# TBBS using visual studio

I m getting this error while saving c# template using visual studio i m using sdl tridion 2013.i increase the timeout of database query and also maintenance(updating index and shrinking files) has ...
Abdul Qadir's user avatar
  • 2,495
2 votes
2 answers
103 views

Is there any way to determine from an event system and/or a template whether it is being called from Experience Manager or somewhere else?

I am trying to identify in my Event System and in my Templates when the rendering (template) or the action (event system) is being triggered from either Experience Manager or somewhere else in the ...
Jaime Santos Alcón's user avatar