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
1
vote
2answers
112 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
56 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
48 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
66 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
161 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
144 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
65 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
237 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
125 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 : <!...
2
votes
1answer
54 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 ...
1
vote
1answer
89 views

Accessing embedded Schema fields in Template Building Blocks

I'm trying to get embedded Schema field values in a Template Building Block. The field in question is of type "link to Component" and can be present in the Component multiple times. Therefore, I need ...
3
votes
1answer
138 views

Render component template from link to component field [tridion 2009]

In the schema of a component A, there is a "link to component B" field. I want to retrieve the template of that component B in my component A template. I tried the following but it does not work: <...
3
votes
1answer
271 views

Outputting SVG image assets inline - can it be done?

We are using SVG images more and more and I would like to put some of these inline using the <svg>...</svg> code directly in the markup. I've done this successfully when the image is ...
3
votes
2answers
242 views

Unable to delete item. The item is published

When trying to delete an unused component template (if I click 'Where used', the only items returned are ones that refer to the component template with 'Only old versions'), I am getting an error as ...
0
votes
1answer
85 views

Dynamic image publishing fails for similar file names

We have created a dynamic CT to publish the multimedia components to the structure group that have same relative path as the folders using this example . Everything works well except when we try to ...
6
votes
1answer
154 views

Razor templating in Xview framework

I saw the presentantion on xview on the TDS and i really liked it. Is it possible to use a regular razor view and pass the model to the view from the controller so i can use it like this? Hoang Chu ...
1
vote
2answers
87 views

How does template unpublish MMC?

For some reasons, I customized DD4T template building block not to publish multimedia component. BinaryPublisher's "PublishItem" method publishes multimedia component, so I removed code and added ...
2
votes
1answer
107 views

Has Templating Context Variable scope changed in Tridion 2013 SP1?

Previously I have made use of Context Variables to pass information around between template renderings during a publish action. I just fired up some old code on a Tridion 2013 SP1 (HR1) system, and ...
1
vote
1answer
129 views

Rendering of Template is taking more time | XSLT Mediator

We have few xml which genereted from Tridion Using C# TBB and XSLT Mediator and we have seen from last few days renderning is taking lot of time. I didn't change any code since last 1 year , templates/...
4
votes
1answer
159 views

Setting permissions for Topology Manager Roles when using Interops

I have some legacy piece of code in some old 5.3 templates which has been migrated to SDL Web 8. The offending piece of C# is as follows: String publishItemsXML = publication.GetListPublishItems(...
3
votes
2answers
720 views

Special Characters not rendering properly on live website

I am facing issue with production website which is displaying some special characters as black diamond shape with a question mark inside, on multiple browsers .However, the QA website is displaying ...
2
votes
2answers
197 views

Is it possible to push a custom array through package variable from .Net TBB to DWT and iterate the loop in DWT?

I know it is possible to send ComponentArray but here i need to pass a dummy array to create a collection loop in DWT. Am unable to pass dummy componentArray as it throws item not found error. Any ...
1
vote
1answer
83 views

how to create xml page

I am trying to create a page with .xml extension. Below are the steps I followed: Created a schema with one text field. Created a component with above schema and added desired xml content to ...
5
votes
2answers
250 views

How to get all keywords inside the particular category using C# TBB

I have Tcm id of category in my app.config. In my C# TBB i am writing below code to get all keywords associated with this category public class GetKeywords : ITemplate { public void Transform(...
5
votes
1answer
53 views

Outbound email TBB not uploaded in CMS 2013 SP1

We setup AudienceManager and Outbound email in our CMS 2013 SP1. But can't see the default outbound e-mail TBB in CMS anywhere. Now CMS is running and we have contacts and outbound email in use. We ...
4
votes
1answer
375 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 ...
3
votes
1answer
104 views

Building DD4T 2.0 Templates project

I'm trying to Build the project downloaded from: https://github.com/dd4t/DD4T.TridionTemplates But, When I try it I get the errors: Error 18 Unable to find version '1.0.3' of package 'sdl-...
2
votes
3answers
384 views

Get field value from multiple embedded component link from multiple embedded field

Component Name: highlight Multi-valued Embedded Field: body Multi-valued field: value that holds component link. And I need to fetch some value from the linked component. <Content> <...
1
vote
0answers
66 views

Upload .Net Assembly TcmUploadAssembly.exe Error - Root Element not found error

We are getting root not found error while uploading .Net assembly using TcmUploadAssembly.exe. We tried creating the config file again from cmd console. We are not able to find that this error is ...
2
votes
1answer
146 views

Read metadata of multi level nested embedded schema field(multimedia link)

I am writing a DWT in which i need to read metadata of multimedia component added in a component. following is the component structure. <content> <level1> <level2> ...
4
votes
1answer
198 views

Razor templating “Namespace name 'KeywordModel' could not be found”

I'm getting the following error when publishing a DCP using a Razor TBB that has references to the KeywordModel class. TemplateCompileException: CS0246: The type or namespace name 'KeywordModel' ...
3
votes
4answers
522 views

How can I check if field is null or empty in DWT?

I'm making a DWT component template that loops multivalued componentlinked components. I want to check if a textfield in a linked component is empty, but it always gives errors. I need to use the ...
4
votes
2answers
101 views

How do I check the maxlength in a component template

How can I find the maxlength of the number of items? TemplateBeginIf cond="TemplateRepeatIndex == 0"
3
votes
0answers
85 views

I am unable to add new template type.Error when adding new mediator

I am getting error when i am trying to add new Mediator.I did following changes in Tridion.ContentManager.config: <section name="mustache.mediator" type="Tridion.Extensions.Mediators.Mustache....
4
votes
1answer
178 views

Access the field path of an item inside of a foreach loop using razor templating?

I am converting a DWT into a Razor template. In the Razor template I have a foreach loop. Inside of that foreach loop I am attempting to render a field of the current item using RenderComponentField....
3
votes
2answers
137 views

Get rendered output of a component from different publication

I have the following requirement: On specific page type I need to render existing CP multiple times each time using (translated) component from different language publications. This way, I will have ...
3
votes
1answer
117 views

Question About DXA implementation?

I have just setup DXA sample website with Oracle database. but when I am trying to browse pages, I am getting all pages without css. on further investigation, I found that css file url shows version ...
1
vote
3answers
112 views

How to publish the page in two different locations with two different Page Templates?

I have a Page named PageA created using PageTemplateA in my publicatioN S070. and there is no any child publications to this publication. I am publishing the PageA which is using PageTemplateA,But ...
2
votes
2answers
326 views

Moving XPM Markup in a DD4T Setup?

I understand DD4T setups add Experience Manager (XPM) markup (page bootstrap, Component Presentation markers, and field details) in the MVC Web Application. JSP views might reference an <xpm:> ...
4
votes
1answer
159 views

Location of .net TBB dll's on the CM server?

Where is the location of .net TBB dll's on the CM server?
2
votes
2answers
261 views

DD4T Link Resolving in Rich Text Format Areas

For DD4T for Java how do we resolve links in rich text format areas? On my client's setup I notice some of these are not resolved. In other words, I see TCM Urls or ECL Ids on the rendered page. ...
1
vote
0answers
167 views

Get Published Content of Page in Tridion

I want to get final published page HTML/Content using coreservice. I am using below code it will give render content and then I got content using "Content" property of "RenderItemData" object. ...
4
votes
1answer
142 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 ...
2
votes
1answer
565 views

How to retrieve component by specific Schema?

I have a schema id. based on that schema id i want to retrieve all components modified date (created by that schema). How to resolve it?
0
votes
2answers
87 views

Extra or missing node in Rich Text Format Area

If you type some text (e.g. "hello") in a rich text format (RTF) area without pressing enter, a Component will save: <body>hello</body> If you press enter, however, the field will add ...
3
votes
0answers
111 views

XPM inline editing - add new value in a multi-valued embedded field

I am facing an issue while adding new value in a multi-valued embedded field in XPM. In case of adding new value after last value of multi value field, it replaces the last value with new one. For ...
9
votes
4answers
537 views

How to include partial (unbalanced) html in a Razor Mediator if statement?

When saving a Razor Mediator Template it fails anytime that I have an if statement with unbalanced html tags in side of it. @if (Fields.subtitle != null) { <div class="subtitleColor"...
8
votes
2answers
286 views

How do you access the field of a parameter schema from a Razor Mediator Template?

The following is a simplified example: I have a Razor Mediator template and a parameter schema. The parameter schema "News Article Class" is attached to the Razor template and contains the mandatory ...
4
votes
2answers
213 views

How to assign the value of a component link field to an XML element?

if (currentComponent.Schema.Title == "dtd_link_item") { var linkComponentFields = currentComponent.Fields(); var element = new XElement("SiteMapNode"); element....
3
votes
3answers
371 views

Get Components based on specific schema in TBB returns all components

I am trying to get the Components based on a specific Schema in my TBB. But every time it is returning all the Components created under Building Blocks. I am putting my code below. Any help will be ...