Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [templating]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
298 views

How to get components by a particular Schema in TBB

I am new to template building blocks. I need to get all the components from a publication based on a particular schema inside a .Net TBB. Can you please help me with the piece of code. update I ...
1
vote
3answers
311 views

How to pass embedded component field value to C# TBB using parameter schema

I need to pass embedded field value as a parameter to the C# TBB. Could you please tell me what would be the syntax for the same. I am using below syntax , but it is not working Component.fields....
2
votes
1answer
74 views

Failure on component approval status check

Has anyone else had any issues when trying to check the approval status of a component? I am using the code below, to check if a component meets the minimum approval status, before performing some ...
1
vote
2answers
298 views

JScriptException: Expression 'RenderComponentPresentation()' had error 'Object reference not set to an instance of an object.'

In the Template Builder, when I run the Component Template with the Component I get the following error: Debugging was started in process 'TcmTemplateDebugHost' with id 2688 Object reference not set ...
2
votes
1answer
74 views

Tridion ECL provider package referenced in a TBB : Could not load File Assembly

We are using Keepeek as external DAM solution and we have developed an ECL Provider. Assembly Name : KeepeekProvider.dll On the publishing side, we need to execute specific treatments on Keepeek ...
3
votes
3answers
102 views

Adding information to package for unpublishing

To add information in case publishing we can use TBBs. How can I add extra information in case of unpublishing. My scenario is as given below: Consumers are caching the processed content from content ...
3
votes
1answer
329 views

CSS background image issue | Inline CSS style property url() not resolving image | background-image:url()

While defining style properties inline in DWT code , the Default Finish Actions TBB ( Containing Link Resolver TBB ) was NOT able to resolve the url of image contained in style property: background-...
7
votes
1answer
99 views

Which Element or CSS selector to use for custom CME logo?

In previous versions of SDL Tridion, you could add a logo to the Content Manager Explorer by updating the CSS (see my example on TridionDeveloper). Specifically, you could add a background-image to ...
3
votes
2answers
66 views

Exif image data?

I see that Tridion preserves an image's Exif details (e.g. example image). For example using WebDAV I can see the original Exif values on the left are still available on the right. This works for ...
2
votes
1answer
112 views

Registering Jscript on a Tridion-generated page

I'm attempting to register some javascript on a Tridion-Generated page via a user control. I've created a page object that uses a generic aspx page template. The TBB for the page template contains ...
6
votes
1answer
154 views

What is “this” in global scope when using a JScript component template

In classic ASP this works: <% Response.write ( typeof this); //object varInGlobalScope = 1; Response.write( varInGlobalScope ); //1 Response.write( this.varInGlobalScope ); //1 this....
1
vote
0answers
97 views

Pulling Component Information using ComponentPresentationFactory

I'm attempting to write a function in a UserControl to pull data using ComponentPresentationFactory.. Below is my code.. string ret = "RET: -- "; int PublicationID = Convert.ToInt32(...
6
votes
2answers
285 views

Access a page's package from a component template on the page?

Is there a way to access a page's package from a component design for a component on the page? I have a page template with some TBBs to push several page-related fields onto the package. Later in the ...
3
votes
3answers
142 views

How to pass Component information to a user control

I would like to pass the entirety of a Component's data to a user control from a Component Template. I'm thinking I would need to pass the XML. I know how to pass individual field data: <...
7
votes
2answers
787 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 ...
0
votes
1answer
92 views

TemplateCompileException while working with array in razor [closed]

I'm having a difficult time getting the below code to work. It's choking on the testArray[Count] = "asdf" statement. How should this statement be written? <ul class="product-options--list"> @...
5
votes
3answers
134 views

Subclass templates in tridion

I have a template that has grown to be over 1200 lines long. I need to bring down the size to make it more maintainable and manageable. The way it works is this.. The template is used to create ...
6
votes
1answer
103 views

Is it required to build Compound Templates with Tridion 2013 DLL while upgrade?

We are upgrading from SDL Tridion 2011 SP1 HR1 to SDL Tridion 2013 SP1. As we are changing database from Oracle to SQL Server, we used Content Porter to migrate content. After doing content port we ...
4
votes
1answer
234 views

Use of Context Variables

I am doing inline call's to RenderComponentPresentation from a CT (CT carousel, which renders individual carousel items with CT Item). Challenge: items need to know their position within the carousel. ...
2
votes
2answers
155 views

Tridion storage extension

Current situation: there is a storage extension for pages (class MyPage extends JPAPageDAO implements PageDAO, from com.tridion.storage.dao.PageDAO and com.tridion.storage.persistence.JPAPageDAO) I ...
1
vote
1answer
99 views

Duplicate or “split” (Mix-and-match) XPM Regions

How would you recommend implementing XPM page regions that could accept the same Allowed Component Presentations (Schema and Component Template [CT] combinations), possibly with different quantity ...
1
vote
1answer
733 views

How to access the parameter schema fields from C# TBB

I have schema A that has the field called Keys which is embedded schema type. The embedded schema consists of 2 fields that is the keyname and keyvalue. I have created component using schema A. After ...
4
votes
1answer
223 views

VBScript code to Modular Templating

I want some guidance or quick help to convert my VBScript component templates and TBB into modular templates. Below is my current setup. Page template - Source code i.e. Template Type is (VBScript [...
8
votes
1answer
504 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 ...
1
vote
1answer
676 views

Getting a list of Components (filtered) BasedOnSchema from Folder

[Tridion beginner] I have a folder named Components where I store different Components. Now, I would like (in C# code fragment template building block that I put in component template) to get list of ...
4
votes
1answer
203 views

Problem mixing VBScript and Compound Component Templates on a page

I'm trying to use a mix of VBScript CT's and a couple of new (albeit very basic) Compound CT's on my very old, complex legacy VBScript PT (!!) but the presence of the Compound CT's is causing Tridion ...
2
votes
2answers
84 views

HTML Script Tag be shorten by Tridion

We add some customize HTML JavaScript Tag to reference external JS resource, it looks like this: <script src="http://edge.quantserve.com/quant.js"></script> But each time Tridion will ...
4
votes
1answer
333 views

Getting values for HTML meta tags

A regular HTML file has the below structure: <html> <head> <title>You page title</title <meta property="og:title" content="The Rock" /> <meta property="og:type" content="...
1
vote
0answers
177 views

TCM URI getting appended to image name while publishing in case of Dynamic Component Presentation

I have a Component which can be used as embedded content in one Component Template and can also be published dynamically with another Component Template. The issue is while publishing only the ...
2
votes
1answer
401 views

Rendering Image using DWT

I have a component source xml as below: <image_227x140> <img style="width: 227px; height: 140px;" alt="alttext" title="IA_Offer2" xlink:href="tcm:382-26496" xmlns="http://www.w3.org/1999/...
1
vote
3answers
179 views

How to setup debugging of content delivery when using .NET

We have component template of type ASCX control which is generating code for creation of News Overview list. The code of this ASCX control will run on Content Delivery Side. But on Content Delivery ...
3
votes
1answer
213 views

Calling WCF webservice in templating C# TBB

I am using one C# code Templating solution for generating an XML file from Category & Keywords. The code is working fine, however we now have a requirement to add some more XML tags in the ...
1
vote
2answers
239 views

How to display metadata schema field keywords value in the content property of tag <meta name=“keywords” content=“”> in Template Building Block?

I have a Metadata Schema and it is attached to the page. My meta data schema have a keyword field and in this field value I have a keyword. I want to display the keyword value in the content property ...
4
votes
2answers
202 views

Error while uploading Template assembly with TcmUploadAssembly.exe to 2013 SP1

I am trying to upload a new Template assembly to SDL Tridion 2013 SP1, using tcmUploadAssembly.exe. It fails with error: "Error: Could not load type 'System.Runtime.Versioning....
3
votes
1answer
507 views

How to access the nested Embedded Schema fieldsin C# Fragement

I have three Schema A (Content) , B(Embedded), C(Embedded) Schema A have fields A1(text) and A2(EmbeddedSchema) Schema B have fields B1(EmbeddedSchema), B2(text) And Schema C have fields C1(text) ...
0
votes
1answer
139 views

Getting ComponentTemplate Metadata from .NET Template code

I set some data into ComponentTemplate using Metadata schema. And I'm trying to fetch this data through .NET code, but I can't find some related variables in engine, package to do this. Could someone ...
0
votes
1answer
465 views

Tridion 2013 SP1 TCMUploadAssembly - database time out error [duplicate]

I am trying to upload a .NET assembly to Tridion 2013 SP1 environment and keep getting this database timeout error (please see below). I looked for CM logs and the event viewer but nothing is being ...
4
votes
1answer
597 views

Render multivalued Multimedia Component link with metadata in DWT

I have Component with multivalued Multimedia Component link field named "list". Each Multimedia Component has its own metadata ("thumbnail" and "altText"). I need to write a DWT TBB to extract those ...
1
vote
1answer
408 views

Render multilevel component link fields in DWT

I am writing a DWT TBB to get field value of multi level component link field. I have a component having componentlink field("list") and in those component i have another component link field("...
1
vote
0answers
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 ...
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 ...
0
votes
0answers
37 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 ...
2
votes
3answers
317 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 ...
-5
votes
2answers
489 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.
4
votes
1answer
115 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(...
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 ...
0
votes
0answers
463 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
633 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
240 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 ...