Questions tagged [templating]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
466 views

Unable to upload .NET template assembly using TcmUploadAssembly during 2009 to 2013 migration

As part of Tridion upgrade from 2009 SP1 to 2013, we are trying to upload the .NET Template assembly using TcmUploadAssembly.exe as per migration documentaion, but it's failing to upload and we are ...
6
votes
2answers
651 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 ...
5
votes
3answers
242 views

How to group components with different presentations

Using Tridion 2011 with VBScript templating, I'd like to know the best approach for creating a grouped presentation / group relationship? For example: There is a GenericContent component containing a ...
2
votes
1answer
107 views

How does outbound email handle recipient data in SDL Tridion 2013?

I am considering Outbound Email for a requirement I need to fullfil, which is, replace recipient data from an external source when emails are sent. So, when emails are rendered, do my templates have ...
9
votes
4answers
385 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? ...
5
votes
2answers
725 views

How to add Upload Assemblies Add-in to Visual Studio 2013?

Does anybody know how to add this Addin to Visual Studio 2013? I have read that Addins are deprecated in VS2013... Is something special needed to make this work?
6
votes
4answers
988 views

Custom Counter not Template Repeat Index

I'm wanting to find a way to create a counter that I can control the incriminating of, for example in generic programming, I have an unknown array, and I want the first 5 items it would look something ...
5
votes
2answers
302 views

Simplest way to add javascript to the header section in Tridion

I need to add some javascript to the header section of some Tridion pages. I can create a separate set of MasterPage and template to achieve this, but it seems it is so much work and there are too ...
4
votes
2answers
89 views

Process Download Links Extension Bug

We're using the extension from SDLTridionWorld to process download links, http://sdltridionworld.com/community/2011_extensions/process-download-links.aspx. We found an issue with the extension where ...
4
votes
1answer
439 views

How to start trouble shooting error: “Operation is not supported on a new item or on a null URI.”

I have an error occurring when publishing a component to the staging publication target. It works fine when publishing to the Live target just not staging. The error I am getting is Operation is ...
2
votes
2answers
90 views

Are Multiple Layout TBBs okay?

Using multiple layout TBBs in a modular template makes multiple Output items in the Package, which I understand act as a stack of text/html items named Output. Is it a bad idea to use this modular ...
9
votes
6answers
895 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 ...
4
votes
2answers
384 views

The equivalent code for RenderComponentPresentation() in .net or C sharp TBB

I have a page template that uses a following template building block to extract components from a page. <!-- TemplateBeginRepeat name="Components" --> @@...
4
votes
2answers
326 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). ...
2
votes
2answers
341 views

problem “the file exists” with TBB assembly after reuploading

during development of a tridion TBB, i stumbled upon a weird error. I uploaded a new version of my TBB dll, and tried to preview one of my pages to check the result, and i got this error XmlResponder ...
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 ...
4
votes
2answers
135 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<...
5
votes
2answers
661 views

Fetching Page Metadata Field values in CT TBB :Tridion 2011

I want to fetch some page metadata field values in my CT, Template Building Block (Razor Template). The Component Template type is dynamic with a REL output format. I want the metadata information ...
6
votes
2answers
227 views

How do ECL items appear to the CD API?

I understand External Content Library items have a URI that start with ecl: and have both external and CM-side metadata. I'm confirming how these translate into content delivery functionality. ...
5
votes
1answer
327 views

DWT Condition with FieldPath

With a DWT, how to test if an embedded schema field has a value in a condition? The following code does not work and breaks on the TemplateBeginIf condition. Is this possible with a DWT? <...
4
votes
1answer
225 views

Sporadic issues with @RenderComponentField using Razor Mediator for Tridion 2013

We are experiencing sporadic issues with @RenderComponentField() in our Razor templates. It seems that sometimes it does not render the field, just an empty TCDL tag, even when there is content in the ...
6
votes
2answers
358 views

'string' does not contain a definition for 'Title' when using Razor mediator

I am finding it hard to identify an error that occurs when executing Razor template building blocks. The error message is as follows: Engine: Error in Engine.Transform 'string' does not contain a ...
5
votes
3answers
1k views

Fetching information from a page template in a component template Tridion 2011

Is there a way to use Page meta data from a component template (Component Presentation) Example: Page has meta data schema with a field called "pageName" and value "awesome page" Component has a ...
2
votes
2answers
479 views

Issue with SetVariable and GetVariable method calls from DWT

I have written a DWT which is creating an XML as below:- <?xml version="1.0" encoding="utf-8"?><episodes><episode> <episode_id>EPS_7208_7205_56</episode_id> <title>...
4
votes
1answer
79 views

How can we allow unpublish to fail on need?

I have a situation where i need to stop unpublishing of specific pages. I want to write some template or code which will stop unpublishing for such pages. The need is very intresting . I have a page ...
7
votes
3answers
139 views

Is the 2013 Template Builder backwards compatible?

The Template Builder will not install if there is already a Template Builder installed on the same machine. This means that for developers who need to work on both 2013 and 2011 servers, it would be ...
6
votes
2answers
265 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 ...
3
votes
1answer
132 views

Changing the status of a Publish Transaction to Warning in TBB code

The use case is as follows: If an item is published, but some of the component presentations were not rendered, we want to set the status to Warning (but still publish the page(s) as normal). The ...
6
votes
1answer
72 views

Configuration for read-only/write within .NET TBBs

I seem to remember there is a configuration setting in version 2011 which by default sets templates to have read-only access to the TOM.NET API. Is this still the case in 2013, and where can I set it ...
7
votes
3answers
708 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 ...
4
votes
1answer
116 views

Addition of always used TBBs into Component Templates

We have a requirement where in every time a new CT is created we need to add some TBBs (like config and cleanup etc done by us) into the CT. Is there a way to save us from doing this every time and ...
7
votes
3answers
513 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 ...
1
vote
2answers
266 views

Tridion uploading .net assembly error type mismatch

I am trying to upload a .net TBB assembly thorough the Visual Studio add-in. However, I am getting the following error: Error: Error: Type mismatch at[remote] Tridion.ContentManager....
3
votes
1answer
232 views

Changing Inline Editing Wrapping Tag per field?

To enable a component template for inline editing we add the Enable inline editing for content Template Building Block and optionally set the Default field HTML Tag, which defaults to <span>. ...
3
votes
1answer
403 views

Should RenderComponentField work on any Component in the Package?

When trying to figure out an error in Template Builder for EnableInlineEditingUI: Unable to determine the definition for field I realized we simply had the wrong component and schema. But I'm trying ...
1
vote
1answer
345 views

Lifecycle of the Package

I have several page templates that use a single page template TBB. The page templates pass a string, version, into the package. The page template TBB evaluates this string via @TridionHelper.Package....
8
votes
1answer
67 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 ...
10
votes
2answers
393 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"...
5
votes
2answers
2k views

Class does not support Automation or does not support expected interface - when opening any building blocks

Today suddenly in our production environment we got an error while opening any building block of any publication. The error is: Class does not support Automation or does not support expected ...
5
votes
2answers
356 views

site map xml generation - Getting publish status of structure group and page adding performance overhead

We are using Tridion 2011 SP1. While generating site map XML in .NET templating code, we came across an issue. The requirement is to show only those structure group/pages in site map XML that are ...
5
votes
3answers
300 views

Throw custom error message to Transaction Details window

I would like to throw a custom error to stop a component from publishing. In Tridion 5.3 the following was working: throw new Exception("This is a custom error message"); In Tridion 2011, the ...
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 ...
4
votes
1answer
246 views

Tridion is throwing an error message when user attempt to preview or compare a page in Tridion 2009

We are using Tridion SP1 2009 .We are facing the below issue when we are trying to preview or compare page against Expandable CT and Multiple CT the following error is thrown: (2147747185) An error ...
8
votes
4answers
664 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
204 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 ...
13
votes
1answer
517 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 ...
9
votes
3answers
99 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
328 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 ...
7
votes
2answers
545 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
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,...