Questions tagged [templating]
for questions about Page or Component Templates and Template Building Blocks (TBBs)
248
questions
1
vote
1
answer
324
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 ...
0
votes
1
answer
129
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 ...
2
votes
3
answers
40
views
validate Component Template selection on Page Saving
we need to validate the Component Template selection on Page Saving. if we did not select the CT, now we are able to save the Page but on publish time it's throwing an error.
can anyone help me how to ...
1
vote
1
answer
28
views
How to Preselect Component Template
We are using Tridion Site 9.6.
if we are adding Component into page, if we have only 1 component Template for component, it will be selecting automatically. but if we have multiple CT's for same ...
1
vote
2
answers
52
views
What makes a Page Template "template-less?" (data publishing with multiple regions)
As of Tridion Sites 9.5 we can use data publishing where Pages and Components are published using built-in (JSON) data.
Editors don't necessarily need to create Component Presentations for a page, ...
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 ...
4
votes
1
answer
95
views
Restrict publishing of Linked component within Parent Component using C# Template
Restrict publishing of Linked component withinn Parent Component using C# Template
We have a dynamic component template and I want to restrict the Publishing of Linked-Component which is within Parent ...
4
votes
1
answer
433
views
DD4T - Generate DD4T.Templates.merged.dll using ILMerge manually
I modified the code of DD4T Templates projects and I generated all the dll files.
The next step is to join it in DD4T.Templates.merged.dll using ILMerge.
I see in the project a file to build the ...
1
vote
0
answers
58
views
Executing Default Finish action from .net assembly
I want to execute default finish action compound tbb from .NET code. Is it possible and how? Or any other TBB that comes with Tridion installation?
8
votes
2
answers
465
views
Where should I put PDB file in SDL Tridion 2011 SP1 to enable debugging?
I am putting my Tridion Base Templating project DLL in the Global Assembly Cache (not in Tridion Environment).
This has worked fine until now when I want to do the debugging on tridion. Earlier, ...
0
votes
1
answer
39
views
Compile DXA Templating 2.2.3 for SDL Tridion 8.5
We have a SDL Tridion 8.5 installation with DXA 2.0.3.
Now we want to migrate to DXA 2.2.3 as previous step to migrate SDL Tridion to 9.5.
In the templating part, we did some extensions that we want ...
0
votes
2
answers
116
views
Step to overide publishing page url using deployer extension
Anybody knows how to create deployer extension to change publishing page URL before inserting to broker database?
We are trying to modify the page URL because we will be using keyword key value in ...
2
votes
1
answer
60
views
DXA 2.2 Issue with Publication Title
We have noticed that if there is . and / character in Publication Title, DXA template throw error while publishing/previewing the pages. Find below error message:
(80040200) An error occurred while ...
1
vote
1
answer
71
views
Modify Page url using TBB
We have created and implemented a TBB which modifies the published Page's url. We managed to modify the Page url in the Package, but the Broker database it still shows the unmodified page url.
...
1
vote
2
answers
66
views
DWT Code for Reading Component Links
Is there any way other then standard anchor tridion href to read component links from the Component using Dreamweaver Template.
For example we use below code to resolve component link
<a tridion:...
4
votes
0
answers
62
views
Implementing Experience Manager fields with repeating (and embedded repeating) fields/values (SDL Tridion Web 8)
I've been struggling to find clear documentation on implementing Experience Manager fields <tcdl:Field><tcdl:FieldValue></tcdl:FieldValue></tcdl:Field> into Razor C# template ...
0
votes
2
answers
139
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
0
answers
50
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
2
answers
1k
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
0
answers
29
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 ...
2
votes
3
answers
87
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
1
answer
67
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 ...
4
votes
1
answer
159
views
How to use the Core and HTML Design Configuration components in DXA?
We are using Tridion 2013 SP1 + DXA.
What is the significance of adding the HTML Design Configuration component link to the Core component (located at \Building Blocks\Modules\Core\Admin)?
For HTML ...
7
votes
1
answer
110
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 ...
1
vote
1
answer
34
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
2
answers
64
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 ...
1
vote
3
answers
181
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 ...
1
vote
1
answer
86
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 ...
6
votes
2
answers
140
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
1
answer
71
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
2
answers
423
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
4
answers
371
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 ...
5
votes
2
answers
606
views
Mixing JSON data and Razor in Tridion 2011 Razor Template
I'm creating a Razor Component Template in Tridion 2011. In this template I want the output to be in JSON format. Now how do I mix the two languages? JSON should be seen as HTML not as code.
Example:
...
3
votes
1
answer
71
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 ...
0
votes
1
answer
58
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
2
answers
125
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 "...
13
votes
3
answers
165
views
Templates not readily available in Tridion Content Manager
When I create a new page template it doesn’t seem to be available in Tridion straight away. That is, if I go to a page I can’t assign my new page template straight away. It does become available after ...
10
votes
3
answers
1k
views
XSLT Component template transformation with external images
We have Multimedia Component that works with external and internal images. When we have external images we have two cases:
External Image that has query string parametes ...
ex: http://yahoo.com/...
16
votes
8
answers
896
views
Ordinal position of a Component Presentation in a DWT
I am looking for a way to generate a CSS Id for a Component Presentation, which is guaranteed to be unique within the scope of the page. My initial thought is to make use of the ordinal position of ...
1
vote
1
answer
113
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 ...
3
votes
1
answer
271
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
1
answer
116
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
1
answer
142
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 ...
2
votes
2
answers
329
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
3
answers
180
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
2
answers
326
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 ...
1
vote
2
answers
119
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 ...
2
votes
1
answer
65
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?
6
votes
1
answer
110
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 ...
2
votes
1
answer
68
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....