Questions tagged [templating]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
80 views

Read Web.Config in Pipeline

I have written a WCF service that takes userID and finds complete display name from active directory. In my publishing pipeline I have got creatorID of current page which is compete userid along with ...
Ali's user avatar
  • 1,447
1 vote
1 answer
685 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
0 answers
39 views

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

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
2 votes
3 answers
355 views

After upgrade from 2009 to 2013 the .net templates dont work

After upgrading system from 2009 to 2013 SP1, the existing .net templates built with Tridion Content management dll 2009 and .net framework 3.5 are not executing (rendering fails) When we run from ...
user956's user avatar
  • 71
-5 votes
2 answers
555 views

how i do the page linking in Sdl Tridion? please give the example

I am new in sdl tridion.and I am creating a web site on sdl tridion and i create a navigation menu.and I have anchor tag in this menu .How i give the page path on the anchor tag property href.
pankaj Sharma's user avatar
4 votes
1 answer
119 views

Error for RenderedWith property while using GetPublishInfo for Component Template

It looks like I come across a bug on Tridion API's, while working on DotNet Templating using Tridion 2011 SP1. ICollection<PublishInfo> publishInfos = PublishEngine.GetPublishInfo(...
Siva Charan's user avatar
  • 4,324
2 votes
1 answer
229 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
0 votes
0 answers
479 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 ...
Manoj Sonawane's user avatar
6 votes
2 answers
702 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
5 votes
3 answers
244 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 ...
Stephen S's user avatar
  • 213
2 votes
1 answer
109 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 ...
Jaime Santos Alcón's user avatar
9 votes
4 answers
415 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
5 votes
2 answers
730 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?
Edwin Room's user avatar
6 votes
4 answers
1k views

Custom Counter not Template Repeat Index

I want to find a way to create a counter that I can control the incrementing of. For example in generic programming, if I have an unknown array, and I want the first 5 items, it would look something ...
Daryl H's user avatar
  • 625
5 votes
2 answers
344 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 ...
charles's user avatar
  • 1,271
4 votes
2 answers
104 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 ...
Nickoli Roussakov's user avatar
4 votes
1 answer
443 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 ...
mackie1908's user avatar
2 votes
2 answers
94 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 ...
Alvin Reyes's user avatar
  • 12.8k
9 votes
6 answers
937 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
4 votes
2 answers
394 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" --> @@...
Patan's user avatar
  • 2,051
4 votes
2 answers
328 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
2 votes
2 answers
343 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 ...
Harald Hoffelinck's user avatar
2 votes
2 answers
104 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
4 votes
2 answers
154 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
5 votes
2 answers
680 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 ...
Sourav Garg's user avatar
6 votes
2 answers
244 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. ...
Alvin Reyes's user avatar
  • 12.8k
5 votes
1 answer
337 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? <...
robrtc's user avatar
  • 10.2k
4 votes
1 answer
228 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 ...
Will Price's user avatar
  • 16.4k
6 votes
2 answers
404 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 ...
Dominic Cronin's user avatar
5 votes
3 answers
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 ...
Daryl H's user avatar
  • 625
2 votes
2 answers
490 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>...
AlokBhatt's user avatar
  • 1,250
4 votes
1 answer
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 ...
Jitender sharma's user avatar
7 votes
3 answers
140 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 ...
Dominic Cronin's user avatar
6 votes
2 answers
300 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
3 votes
1 answer
147 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 ...
Will Price's user avatar
  • 16.4k
6 votes
1 answer
77 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 ...
Will Price's user avatar
  • 16.4k
7 votes
3 answers
747 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
4 votes
1 answer
119 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 ...
Guest19876's user avatar
  • 1,090
7 votes
3 answers
521 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
1 vote
2 answers
277 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....
Ali's user avatar
  • 1,447
3 votes
1 answer
237 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>. ...
Alvin Reyes's user avatar
  • 12.8k
3 votes
1 answer
411 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 ...
Alvin Reyes's user avatar
  • 12.8k
1 vote
1 answer
354 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....
NVanderEnde'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
10 votes
2 answers
422 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
5 votes
2 answers
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 ...
Sam's user avatar
  • 1,407
5 votes
2 answers
388 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 ...
TempTracer's user avatar
5 votes
3 answers
318 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 ...
user590's user avatar
  • 91
7 votes
1 answer
177 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
4 votes
1 answer
248 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 ...
Venkata Jinnala's user avatar