Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [templating]

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

0
votes
1answer
36 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
65 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 ...
0
votes
2answers
32 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
43 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 ...
2
votes
1answer
47 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 ...
3
votes
4answers
358 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
70 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
150 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
145 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
57 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
106 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
120 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
175 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
40 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?
3
votes
1answer
56 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
57 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
92 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
40 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 ...
4
votes
1answer
51 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
68 views

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

Publishing getting failed 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. ...
6
votes
1answer
90 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 ...
3
votes
2answers
64 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
64 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 "...
3
votes
2answers
48 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 ...
3
votes
2answers
37 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
144 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
101 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 ...
6
votes
1answer
90 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
62 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
58 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 (....
5
votes
1answer
36 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 ...
6
votes
1answer
82 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 ...
8
votes
2answers
54 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
77 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 ...
3
votes
1answer
221 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 ...
8
votes
2answers
139 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) {...
5
votes
1answer
64 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 ...
4
votes
2answers
120 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
51 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 ...
1
vote
2answers
89 views

Publish multimedia Component to server with AddBinary method

I'm trying to publish multimedia content (images) on my server from a C# Template Building Block. I tried the following: // Get the component Component c = (Component)engine.GetObject(package....
1
vote
1answer
45 views

Web 8 Content Management DLL .Net framework version?

While I am trying to build C# template assembly using Web 8 Content Management DLL and .NET framework 4.5, I keep getting "ContentManagement" name space not found error while compiling the application....
0
votes
1answer
40 views

Razor Mediator extra Text tags appearing in HTML

Using an if statement while templating using the Razor mediator: @if (...) { <text><div></text> } @if (...) { <text><div></text> } @if (...) { <text&...
5
votes
2answers
65 views

component.Schema is null in SDL Web 8

After migration to SDL Web 8, one piece of code in our C# TBB doesn't work anymore. List<RepositoryLocalObject> componentList = newsKeyword.GetClassifiedItems(filter).ToList(); foreach (...
1
vote
1answer
119 views

How to get the image URL from Structure Group Metadata using C# TBB

I have created a Structure group Metadata having image field. when I try to read the image url, I am getting the TCM ID. ItemFields metadataFields = new ItemFields(objSG.Metadata, objSG....
6
votes
1answer
137 views

DXA 1.5 compatible with 2013 SP1?

DXA 1.5 for 2013 SP1 - the following docs (in the readme.md) have instructions to work for DXA 2013 SP1, but in the .sln from https://github.com/sdl/dxa-content-management doesnt build succesfully - ...
1
vote
0answers
56 views

How to fix this error in Template Builder?

I have a Component template called "BC video" but if I call that in Component layout the Page publishing fails. If I check in Template Builder the error is No Component Template was found with the ...
8
votes
1answer
191 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: ...
3
votes
1answer
111 views

Retrieve list values in DWT template

In my package, i have a list of TcmUri which sometimes contains valid TcmUri but also fake TcmUri such as tcm:0-0-0. slideshareList is the name of my list. I need to write something like this : <!...
3
votes
1answer
50 views

Use of a tcmUri list in component template

I have another problem with a list of TcmUris I pushed to the package and try to use. I'm trying to render the different components whom ids are in the list "slideshareList" with their common ...