Questions tagged [templating]

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

Filter by
Sorted by
Tagged with
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
17 votes
4 answers
528 views

Best Practices to maintain text for labels and link buttons throughout the website In Tridion CMS

How should we maintain the text for labels and link buttons throughout our website? For example, we have link buttons named “see more” on a few pages and now the editors have a requirement to to ...
Joy's user avatar
  • 195
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
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
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
12 votes
2 answers
226 views

Get StructureGroup ID in Dreamweaver

I was wondering if this is possible? Have tried following cases: Page.OrganizationalItem.ID @@Page.OrganizationalItem.ID@@ Page.Context.OrganizationalItem.ID @@Page.Context.OrganizationalItem.ID@@ ...
Bogdan Stojanovic's user avatar
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
11 votes
2 answers
281 views

Default Rendering Date Format

We have recently inherited a Tridion 2009 implementation and whilst restoring that database onto a new development server there is one thing that is working on the old server that isn't on the new one ...
Ryan Durkin's user avatar
11 votes
1 answer
744 views

Razor Templating - Addbinary (resolve binary)

Is there a function to call to resolve path of a binary? Example: This works and resolves the media.ID as a path. <img src="@Fields.asset.media.ID" tridion:type="Multimedia" alt="test"/> But ...
Roel van Roozendaal's user avatar
11 votes
2 answers
256 views

Using Function Source in Condition Sentence for DW

I'm trying to make it work to use function source(Custom Function) in condition sentence for DW Template. The Result is, In case of adding @@ to the function source in front and behind, the function ...
Naoki's user avatar
  • 459
10 votes
3 answers
289 views

Updating component field while publishing does not publish the latest version of component

We are using Tridion 2011 SP1. When a component is being published we are updating a metadata field of component in our component template. The code which updates the component metadata field is ...
user1453602's user avatar
10 votes
3 answers
1k views

XSLT Component template transformation with external images

We have Multimedia Component that works with external and internal images. When we have external images we have two cases: External Image that has query string parametes ... ex: http://yahoo.com/...
Kremena Lalova'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
10 votes
2 answers
923 views

Accessing Embedded Schema fields via list of Component Links

I have a razor component template which is looping through a list of component links trying to read out fields that come from an embedded schema. The Embedded Schema contains fields like Title, Body, ...
Ibrar Hussain's user avatar
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
10 votes
2 answers
391 views

Iterate through ComponentModel List

I have a Razor Template where I need to order a list of component links by a particular field in descending order (Fields.Date). Normally when I want to loop through a list I would just do something ...
Ibrar Hussain's user avatar
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
9 votes
6 answers
564 views

How to write out full Page URL in a Page Template

For every Page I want to write out a meta tag in the HTML head containing the full Page URL. How do I build up this URL including domain name? We're using SDL Tridion 2011 SP1 with modular templates.
John Bax's user avatar
  • 345
9 votes
4 answers
414 views

Getting Tridion to use SASS

Is there any way to get Tridion and SASS to work together nicely? e.g. I upload my .scss files and they are automatically converted into css files when I publish or create a component presentation? ...
Luke's user avatar
  • 93
9 votes
4 answers
558 views

How do I remove a component template which publishes Dynamic Component Presentations?

While trying to figure out why components on one of our publications take longer to publish then on other publications we discovered an old component template that existed on just that publication. It ...
Glenn Stevens's user avatar
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
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
9 votes
2 answers
719 views

Condition Sentence for Nested multiple Embeddable Link Field

I'm trying to implement Condition Sentence for nested multiple embeddable link field in the DW Tempate. But in the 1st Repeat sentence, I can't judge if the 2nd embeddable link field is empty or not. ...
Naoki's user avatar
  • 459
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
2 answers
1k views

DWT Syntax TemplateBeginIf & TemplateRepeatIndex

I am pushing keywords onto the package with keys like Keyword1Title and pulling them out in my DWT using @@Keyword{$TemplateRepeatIndex}Title@@ The problem is I want to test the contents of ...
Chris Morgan's user avatar
  • 7,327
9 votes
2 answers
537 views

Insert youtube and vimeo video in the wysiwyg editor by replacing component link

I want to display youtube or vimeo videos on a page. I already created a specific schema and a component template so that the user can add the videos to a page via the component presentations of the ...
Glenn Franquet's user avatar
9 votes
3 answers
103 views

Page object not fully loaded when retrieving PublishPath property

In one of our Compound Page Templates, we need to provide an overview of all pages in a certain Structure Group, and show links to these pages. We use Page properties Title and PublishPath for this. ...
Edwin Room's user avatar
8 votes
4 answers
338 views

Error : Cannot generate template with name Builder, since a generated template created for another assembly template is already present

We have two publications (Desktop Publication - Parent and Mobile Publication - Child). In compound templating setup, we have two projects which contains Template classes with same name in both ...
Jaison Prabhu Doss's user avatar
8 votes
4 answers
717 views

Level of .NET experience needed to take the SDL courses

We need to know what is the level of .NET experience needed to take the SDL courses? Is basic knowledge (Beginner) adequate or do we need to take more advanced courses? And are there any ...
Husain Zahid's user avatar
  • 1,827
8 votes
2 answers
316 views

How do you access the field of a parameter schema from a Razor Mediator Template?

The following is a simplified example: I have a Razor Mediator template and a parameter schema. The parameter schema "News Article Class" is attached to the Razor template and contains the mandatory ...
Nicholas Wetmore's user avatar
8 votes
2 answers
208 views

Error using 'Extract Binaries from Html' with new 2013 XSLT TBBs

I am using the new out-of-the-box XSLT TBBs offered by Tridion 2013. When I use a DWT TBB to render my component content, and add the 'Extract Binaries from Html' TBB directly after it, everything ...
Chris Summers'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
2 answers
465 views

Where should I put PDB file in SDL Tridion 2011 SP1 to enable debugging?

I am putting my Tridion Base Templating project DLL in the Global Assembly Cache (not in Tridion Environment). This has worked fine until now when I want to do the debugging on tridion. Earlier, ...
Manoj Singh's user avatar
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
8 votes
1 answer
71 views

What versions do templates and TBBs run against?

In at least SDL Tridion 2011, Content Manager Explorer and Template Builder run against the current, even if minor, version of a template. Publishing will use the last major, checked-in, template ...
Alvin Reyes's user avatar
  • 12.8k
8 votes
1 answer
276 views

Razor Mediator Helper Functions TBB Not Working with Experience Manager Preivew

We have a page region in XPM and it works fine with adding/removing components until you add the 6th+ component to it. After doing so the following error is produced: TemplateCompileException: ...
Nicholas Wetmore's user avatar
7 votes
3 answers
520 views

Editing Razor TBBs in Visual Studio

Using Visual Studio 2012 I am able to edit Razor TBBs by opening and saving them back via webdav. The problem is that if there is a Razor syntax error, it seems like they are saved OK, but actually ...
Will Price's user avatar
  • 16.4k
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
3 answers
192 views

Resolve Link TBB for Form Actions

Does anyone have a sneaky way of having tridion resolve component links within a form action? For example: <form action="@@Component.ID@@"> Ideally based on standard tridion format href and ...
johnwinter's user avatar
  • 14.3k
7 votes
1 answer
210 views

Why does the Cleanup template fail to remove the tcdl:ComponentPresentation wrapper in publish mode?

I have a page template containing two TBBs. The first renders the component presentations, and the second is the default finish actions. The page contains a component presentation that writes an XML ...
Dominic Cronin's user avatar
7 votes
2 answers
157 views

Problems with multiple TBBs using same parameter schema

I have a DD4T Component Template which contains 2 TBBs: Publish Binaries For Component Generate Dynamic Component Both of these have the DD4T TBB parameters attached, and in this particular template,...
Will Price's user avatar
  • 16.4k
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
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
3 answers
742 views

How to escape single quote Where Custom DWT function not allow to write

I have a DWT TBB having code something like that - <!-- TemplateBeginRepeat name="Video_Array" --> <li> <!-- TemplateBeginIf cond="Component.Schema == 'Video Collection'" --> <a ...
user584's user avatar
  • 1,140
7 votes
1 answer
176 views

Error while creating Template Building Block with core service

We are currently working in Java to export data from a tridion environment, creating files like template.tctcmp and template.dwt. When importing these files back into tridion with the core service, no ...
Roy Teeuwen's user avatar
7 votes
2 answers
75 views

Publishing linked dynamic components

We have following case to solve: When a Page is published, which contains a component that references certain Multimedia components. Those mm components need to be published dynamically. The reason ...
Thomas Hendrickx's user avatar
7 votes
2 answers
849 views

Generate JSON objects

We are having a requirement to generate JSON objects combined with html fragments out of the pages created in Tridion. We need to publish these to another application which will further process the ...
Guest's user avatar
  • 71

1
2 3 4 5