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
-1
votes
0answers
20 views

Remove all html from field content using C# Templating and XML Output

Developing new xml component templating using C# and author enter few html tag`s in FieldContents. FieldContent = "<br><br><strong>Wells Fargo Funds Distributor, LLC</strong>...
0
votes
2answers
27 views

Get MIME Type of Multimedia Types based on file extension using TOM.NET (.NET Templating)

Recently I recevied client business requirement to get MIME Type of Multimedia Types item based on extension (External Url) from Tridion using C# Templating. Read all Multimedia Types from ...
1
vote
1answer
23 views

Error while uploading Template assembly with TcmUploadAssembly.exe using domain name to SDL 8.5

I am running a script to upload templates from the same cms server. The script fails when I use the domain name of the machine however it works when I use the localhost as the targeturl parameter. For ...
1
vote
0answers
39 views

Resolving Rich text with anchor tags pointing to Iceportal Component

Hello this is my first post and am a newbie tridion user here. I have created a component with rich text where I include an hyperlink to an ecl item. Then I included the component on a page and ...
2
votes
2answers
78 views

TemplateCompileException: CS0234: The type or namespace name 'Script' does not exist in the namespace 'System.Web'

SDL Tridion Support recommended that I post this question out here (they don't seem to have any good guesses at this point). Today I went to go update a Template Building Block (TBB) that largely has ...
1
vote
0answers
25 views

“It is not possible to perform this action in a template” error when publishing SG, but not its contents

I have a couple of Structure Groups for which publishing fails with the message "It is not possible to perform this action in a template". When I select the Structure Groups and Pages that are in the ...
0
votes
1answer
47 views

Is there any standard solution for Blueprint structure to be fetched, for all publications in a CMS?

For our Web 8.5 implementation, we have a requirement to fetch the complete Blueprint structure using C# TBB's. We do have an implementation that uses Metadata Schemas to fetch the Publication details ...
1
vote
1answer
30 views

Component Template and adding layout TBB

I have a relatively static site. I also have a fairly generic CT with many default and custom TBB's. I add new DWT Layout TBBs and use the same CT with just swapping out name and TCM ID of the new ...
2
votes
2answers
44 views

Set multiple Parameter Schemas for TBB?

Suppose I have 2 custom TBBs, each with their own Parameter Schema. During development, I noticed that there are parameters that are shared between the two. Is there a way to assign multiple ...
6
votes
2answers
88 views

Event code error - only in Template Builder

Firstly, this is an 8.5 instance, upgraded from 2013, upgraded from 2011. We have Audience Manager installed (and working well) and outbound email. I have a set of custom events that subscribe (when ...
0
votes
1answer
52 views

Is it possible to publish page with anothe Page Template using Core Service or something similar?

I need to do some new functionality which allow users to select some feature in Page Metadata and with this check selected the Page should be published with another Page Template (this Page Template ...
4
votes
2answers
137 views

Unable to debug Merged .NET assembly Template Building Blocks

I am trying to debug a Custom Template Building Block defined in a .Net Assembly TBB according to the documentation. I am building the .Net Assembly using below command in the Post Build event of the ...
2
votes
3answers
57 views

2 DWT Tridion 2013 questions

Not sure if I can post my questions here, please tell me where to move my question if necessary... 1) I added to a page a custom metadata schema. In that schema, there is an embedded component field '...
0
votes
1answer
49 views

Unable to connect to Template Builder : Upgrade from Tridion 2011 to Web8.5

After upgrading the CMS from Tridion 2011 to Web8.5 Template builder throws an exception below when you click on the Building blocks folder in any publication. Object reference not set to an ...
3
votes
1answer
64 views

Slightly confused over dynamic version

Read the following question which explains TCMs like tcm:x-xx-v0 are created when items are checked out. However when Ive tested using a simple C# TBB: log.Debug("Executing C# template"); Item item ...
2
votes
4answers
364 views

Can a CT be created to be only allowed in one PT?

In Order to make my logo dynamic(coming from CMS), I created a CT which can add any image to a header page having PT "Include Page". But Now I want that CT to be available for one page i.e. header ...
1
vote
1answer
83 views

Error on Publishing ECL Items

To publish ECL Items we have placed a custom build TBB to add external binary to our file system. On publishing ECL Items we're getting error as Cannot access a closed Stream. Error: The number ...
1
vote
1answer
186 views

How publishing works for ECL Items when published alone or published as Multimedia Link

Trying to explore more on Tridion, found that ECL External Content Library framework bit interesting. Started implementing the same in Tridion CME with the help of a few tutorial and blogs, which ...
3
votes
1answer
201 views

Error on previewing an ECL Component

I'm trying to implement Bart's Flickr ECL provider to get content from Flickr. Successfully configured to Tridion, Flickr images are now exposed to Tridion. I'm testing on how ECL Components rendering ...
5
votes
1answer
82 views

PublishEngine.IsPublished() so slow

We recently migrated from Tridion 2011 to SDL WEB 8.5 and suddenly, in one of our environments (staging), an specific page started to take over 2 hours to being published. This page has a tbb c# ...
5
votes
1answer
118 views

Can I register a CME Notification from a TBB?

I would like to throw a notification message in the CME message center from my workflow external activity TBB. I am just trying to do this but not sure this is possible. I can do this with help of ...
1
vote
3answers
151 views

How to consume XML sent by C# TBB in Razor template?

My C# TBB returns Keywords from a specific Category as XML: XmlDocument keywordsXml = new XmlDocument(); keywordsXml.LoadXml(cat.GetListKeywords().OuterXml); Item output = package....
1
vote
2answers
231 views

Publishing getting failed in Template rendering but able to preview the Page

I am trying to publish an XML Page where I am updating the Output of the Page created in Default Finish Actions using a C# TBB. I am able to preview the Page in Tridion but while publishing, it is ...
2
votes
1answer
53 views

Not able to preview DD4T page in SDL Web 8

In our project we are using DD4T Templates in Pages design. In Tridion CME, we are not able to preview the Tridion Pages. Can any one help me how to preview the DD4T Pages?
2
votes
1answer
60 views

Errors with extending DD4T.Templates.Base

I am trying to update some custom DD4T templates to v2.2.1 When I run my template I get the following error in the Template Builder Engine: Error in Engine.Transform Engine: Error in Engine....
2
votes
1answer
68 views

Get rendered HTML for different Page versions along with correct Component and Template version

For one of the requirements we need to extract the rendered HTML for each version of the Page. We want to understand if old versions of Pages renders the corresponding Component and Template version ...
2
votes
1answer
148 views

package Push Item Method Encodes attribute values

I was trying to push content from C# Fragment using below snippet Item componentItem = package.GetByType(ContentType.Component); Component component= engine.GetObject(componentItem.GetAsSource()....
0
votes
0answers
41 views

“The File Exist” error while publishing

We have DD4T based application, we start getting below error while publishing pages, it says file exist. We removed all temp files from c:\windows\temp and C:\Users\[MTSUser]\AppData\Local\Temp but ...
3
votes
1answer
55 views

Can we add Preview Functionality in CME for DD4T based Application

We see json Data if we preview any component Presentation, Can we have same preview functionality as we had in web form based application ?
1
vote
1answer
81 views

Not able to preview/publish pages which are having non azure sync images in components

Publishing fails if I add images in component which are not azure synced yet. When I replace the images with azure sync ones, publishing/previewing works fine. It's a DD4T based application. I can ...
7
votes
1answer
141 views

How to check publishing or rendering context using TOM.NET in the new publishing framework

With regards to publishing and rendering in TOM.NET, I know the following is true for the legacy publishing framework (pre Web 8): Template Builder PublicationTarget is null, RenderMode is ...
2
votes
2answers
67 views

DXA dynamic type mapping

I am trying to map a Component link field to a dynamic type Module and I am getting this error: Unable to map field 'dynamic field' to property of type 'System.Object'. Unable to cast object of type ...
2
votes
2answers
77 views

Multiple template classes in assembly have the same TcmTemplateTitle attribute - TcmUploadAssembly.exe

I'm getting below error while uploading the .NET Assembly into "Tridion". Error: Multiple template classes in assembly have the same TcmTemplateTitle attribute I tried to rename the "...
2
votes
2answers
49 views

Not able to open a page template

It says Unable to retrieve item with id Unable to open requested item Name cannot begin with the '%' character, hexadecimal value 0x25 I am using Tridion 2013 SP1 and the Page Template name ...
2
votes
2answers
42 views

Processing Multimedia Content

I have got a requirement where business people would be uploading the xml files (not more than 25 file) as multimedia components and we need to expose them as JSON. I started on the POC and after a ...
1
vote
2answers
156 views

How to publish the component as XML or JSON file on the File System

Business Requirement is to create 400 components based on a single schema in Tridion and then publish all this content as xml or json file to the File system. Thats all whats needed from Tridion end. ...
1
vote
2answers
109 views

Accessing Multimedia Content

Currently our users are uploading access db files with extension .mdb into Tridion 2013 as multimedia components and publishing it to file system. We are trying to do a POC to redesign various ...
5
votes
1answer
99 views

What really happens when we restart the Tridion Publisher service?

In the pipeline of my Template Builder, I have a Template Building Block which takes a Component as parameter. When I update this Component in Tridion then publish the Page that calls this TBB, I ...
3
votes
2answers
65 views

Publishing an item should trigger publish from parent publication and avoid infinite loop

I have publication A and child publication of A is B. We have written a TBB which publishes page in B when published from A. Now we need to publish page in A (parent), when page is published from B ...
-2
votes
1answer
70 views

.NET Framework 4.0 templating DLL support SDL Web 8.5

I am working on SDL Tridion 2013 SP1 to SDL Web 8.5 upgrading now. We are using old database schema with NEW customized CMS MSI using .NET Framework 4.6.2. In CMS referring all old Templating DLL (....
4
votes
1answer
39 views

Differences between PTs in DXA

I found that two page templates are similar in DXA - Home Page and Section Page. Their fields in [Page Template Metadata] have the same values - configured to contain only header and footer and the ...
5
votes
1answer
105 views

Unit test TBB in C# in Web8

I'm trying to unit test a TBB. To do that I have created a PageAdapter which has a Page (from Tridion) inside and the method I need and implements an interface IPage so it can be injected (both real ...
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 ...
2
votes
1answer
87 views

Tridion RTF Field Content Format

We are having an RTF field and Editors would be pasting small html snippets in it. Finally we are generating Json output using Newtonsoft json (Json.net) Serializer. Strangely I have come across an ...
2
votes
1answer
239 views

DD4T 2.0 Templating ILMerge Issue “Unresolved assembly reference not allowed”

I want to upgrade my existing custom TBBS to use DD4T 2.0 from DD4T 1 and uploaded the following into my Nuget feed: DD4T.Core.2.1.0 DD4T.Model.2.1.0 DD4T.Templates.Base.2.1.2 Newtonsoft.Json.6.0.8 ...
7
votes
2answers
183 views

UsingItemsFilter not filtering result for publication context

In my c# tbb, I am trying to fetch all the components using the particular keyword in a publication context. The code which I am using is: UsingItemsFilter filter = new UsingItemsFilter(pub.Session) {...
4
votes
1answer
76 views

Binary Publishing without TCM URI

We are currently working with 2013 SP1 version and got a requirement to publish binaries without any TCM URI getting appended to it. I am aware of duplicate binary issue which is fine with the ...
3
votes
1answer
88 views

DXA 1.5 TBBs do not output Multimedia Component Field - External Url, recursively

I am not sure where to log this as a defect, maybe? But when using DXA 1.5 TBBs: Generate dynamic component Generate dynamic page it recursively outputs json, which is really great, but it does not ...
3
votes
2answers
163 views

Converting Content into JSON

I have started working over a POC to give a JSON response from the key value pairs content created in Tridion whose keys,values are not definite and can be anything. I have tried using asp.net ...
2
votes
2answers
56 views

Convert multimedia Component to bytes

I'm trying to write a block of code to publish images uploaded in multimedia Components. This block of code publishes only the data (4th argument) and not the image uploaded in the Component. By the ...