Questions tagged [templating]

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

Filter by
Sorted by
Tagged with
19
votes
1answer
505 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)...
16
votes
4answers
962 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 ...
4
votes
1answer
372 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 ...
12
votes
1answer
534 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: ...
10
votes
2answers
391 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"...
14
votes
1answer
457 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: ...
9
votes
3answers
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?
7
votes
2answers
539 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 ...
1
vote
1answer
657 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 ...
15
votes
4answers
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 ...
8
votes
1answer
503 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 ...
13
votes
1answer
506 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 ...
7
votes
1answer
141 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 ...
6
votes
2answers
632 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 ...
13
votes
3answers
163 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 ...
10
votes
2answers
364 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 ...
16
votes
8answers
860 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 ...
9
votes
4answers
537 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"...
9
votes
1answer
452 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. ...
9
votes
6answers
878 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 ...
8
votes
2answers
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 ...
7
votes
1answer
487 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> <...
7
votes
3answers
837 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. ...
7
votes
2answers
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 ...
6
votes
2answers
255 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 ...
6
votes
1answer
133 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, ...
4
votes
2answers
133 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<...
4
votes
2answers
325 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). ...
3
votes
1answer
137 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: <...
3
votes
1answer
200 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 ...
3
votes
1answer
271 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 ...
3
votes
2answers
712 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 ...
2
votes
1answer
223 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 ...
2
votes
1answer
565 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?
2
votes
2answers
102 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 ...