We’re rewarding the question askers & reputations are being recalculated! Read more.

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)...
17
votes
4answers
498 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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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 ...
12
votes
2answers
210 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@@ ...
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: ...
11
votes
2answers
260 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 ...
11
votes
1answer
732 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 ...
11
votes
2answers
243 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 ...
10
votes
3answers
262 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 ...
10
votes
3answers
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/...
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"...
10
votes
2answers
855 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, ...
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 ...
10
votes
2answers
376 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 ...
9
votes
6answers
879 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 ...
9
votes
6answers
520 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.
9
votes
4answers
381 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? ...
9
votes
4answers
519 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 ...
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
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?
9
votes
2answers
693 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. ...
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
2answers
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 ...
9
votes
2answers
465 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 ...
9
votes
3answers
98 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. ...
8
votes
4answers
320 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 ...
8
votes
4answers
653 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 ...
8
votes
2answers
286 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 ...
8
votes
2answers
202 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 ...
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 ...
8
votes
2answers
426 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, ...
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 ...
8
votes
1answer
66 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 ...
8
votes
1answer
235 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: ...
7
votes
3answers
512 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 ...
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
3answers
187 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 ...
7
votes
1answer
201 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 ...
7
votes
2answers
155 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,...
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 ...
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 ...
7
votes
3answers
687 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 ...
7
votes
1answer
170 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 ...
7
votes
2answers
67 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 ...
7
votes
2answers
786 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 ...