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 [dwt]

Dreamweaver Templating is an approach to creating presentational layout using Template Expression Language. A Dreamweaver Template is a type of Template Building Block used to construct Compound Templates (aka Modular Templates). It usually contains HTML.

0
votes
2answers
31 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 '...
1
vote
1answer
41 views

Experience Manager fields of Component Link type are not editable in SDL Web 8.5

I am trying to edit multiple Component link fields but they are not editable. I can open the Component in form view. I am using DWT Templating. My DWT Templating source code can be seen here: https:/...
1
vote
1answer
56 views

How to download DGX from SDL AppStore?

I'd like to download DGX from SDL AppStore. But when I try to download it an error occurs. And old Tridion World disappers so I cannot download it. How can I get DGX? Error is following:
4
votes
3answers
77 views

How to display the component only once?

Iam working on tridion templating and i have 2 components associated with the same component template.I want to display one at the top and one at the bottom.How should I do that? If i use the below ...
1
vote
1answer
100 views

Get Keys based on Keyword value in DWT

We are using Category and Keyword to display a drop down to author while putting content in component. Now in TBB we can get value of selected keyword. But as per requirement We want to give ...
5
votes
2answers
70 views

How to handle custom anchors in DWT?

I want to be able to use custom anchors for my Tridion project that is publishing aspx pages. So not the 1, 2, 3 etc when using tridion:anchor="true". The reason for that is that we want to use ...
3
votes
1answer
109 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 ...
3
votes
1answer
94 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: <...
1
vote
1answer
95 views

Render component HTML in the parent DWT

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 syntax but it does not ...
0
votes
1answer
46 views

DWT and cookie laws

I'm currently working on a Tridion website and a cookie law must be set up. Right now, in the content Components, there is a possibility to add HTML code through a text field. If this HTML code ...
0
votes
1answer
84 views

Tridion 2013 sp1 , Not able to add/delete component links in XPM / Experience Manager View

I want to add new component links using XPM view but I am not able to get that option. I am able to edit the fields of the component links. Here is my main component xml structure and DWT code. <...
1
vote
2answers
70 views

Use of a counter within a TemplateBeginRepeat loop

In the following block of code: <!-- TemplateBeginRepeat name="slotMiddle" --> <uc:SlotLoader runat="server">@@Component.ID@@</uc:SlotLoader> <!-- TemplateEndRepeat --> I ...
3
votes
2answers
192 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 ...
2
votes
1answer
141 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> ...
3
votes
4answers
480 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 ...
2
votes
3answers
313 views

Dreamweaver rendering single component presentation

I am trying to render a particular Dreamweaver component template. can anyone help me with the script to display a particular component presentation.
3
votes
0answers
96 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 ...
5
votes
1answer
90 views

Get Extension cannot find repeat index in Workflow item

I'm in the process of implementing Workflow, but am running into trouble with a particular template. Here's the test case: Created new image component – chimp2 – Save & Close Goto content ...
4
votes
1answer
147 views

Tridion 2013 - Using dreamweaver template language

I have a question about DWT in Tridion 2013. I have a component with field (RTF) "Description". In Tridion 2009 I wrote @@Component.Description@@ and I got a content from this field. But when I try ...
0
votes
2answers
152 views

Is there way to call Dreamweaver Mediator from C# TBB in Tridion?

I have Dreamweaver code in one text block as string. What i need is will it be possible to call Dreamweaver mediator from C# TBB and pass the string in text block in Tridion
3
votes
1answer
292 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-...
0
votes
4answers
405 views

How to add c# code in Dreamweaver template(DWT)?

I have component layout in DWT. I need to add a small server side code there? How do we do that?
1
vote
2answers
142 views

Structure groups hierarchy to be used for parent child relationship

I have a scenario where I have components with parent-child relationship. For instance, a news can have multiple child news component. The pages for each news will be created under its parent news. ...
4
votes
1answer
146 views

How to read ther default value from the schema through DWT

Created Embedded schema which is multivalue have the fields like style tag which is a keyword and passed the default value as H1 for it and this schema is embedded into another schema. Created ...
6
votes
1answer
282 views

Is it possible to compare two string in DWT

I have some requirement where i have to compare two string values in DWT code like below <!-- TemplateBeginIf cond="'title' == 'title'" --> ....... <!-- TemplateEndIf --> &...
4
votes
1answer
170 views

How do I add a rel attribute to the URL of a component link?

I just noticed the title of the question has been updated. I'm not sure you understand what i'm looking for. Maybe i was not clear enough. In a DWT i have the following block of code: <div class=...
7
votes
1answer
484 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 ...
0
votes
1answer
427 views

Create and pass JSON object to User Control in Dreamweaver [closed]

I have the requirement to create the json object by reading the field value of component in Dreamweaver template and then pass this object to user control.and based on this object,i need to create ...
4
votes
1answer
133 views

@@Page.Id@@ in Page Template not pulling tcmid

I've inserted @@Page.Id@@ into a page template and published pages that use this template, but when viewing the source of the page after publishing, no tcmid is shown. Any idea why this is not ...
0
votes
0answers
25 views

Get PageTemplateName at DWT [duplicate]

I refereed below link to get pageTemplate name at DWT level. DWT Page Template Title Syntax but i am not able to get the page template name. I am using Tridion 2011 .please let me know what else i ...
2
votes
1answer
388 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/...
0
votes
2answers
294 views

anchor tag with html decode asp.net function

I am using below line of code in my DWT. <h2> <a tridion:href="@@Component.ID@@"> <%=Html.ServerDecode("@@Component.Fields.Name@@")%> </a> </h2> When I ...
2
votes
1answer
103 views

How to insert the tcm id of the page into the page source in Tridion

How do I go about retrieving the page's tcm id and insert it as a comment in the page source using a Dreamweaver Template?
4
votes
1answer
589 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
393 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("...
0
votes
1answer
637 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
35 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 ...
4
votes
3answers
95 views

Publishing an item in Workflow through a nested RenderComponentPresentation not showing changes in Workflow

We have a Component Template that uses @@RenderComponentPresentation(CID,CTID)@@ from Dreamweaver mediator on linked Component and a Component Template ID that is pulled from the Component metadata. ...
6
votes
3answers
552 views

Tridion Razor RenderComponentPresentation

have you ran into the problem when defining a template in a component query? When using DWT my call looked like this <!-- TemplateBeginRepeat name="allItemsInFolder" --> @@...
8
votes
2answers
304 views

Tridion 2009 DWT How to know if a checkbox field is checked?

Does anyone knows how to check from a dreamweaver template if a checkbox field is checked or not? Thanks in advance
5
votes
1answer
230 views

Get TemplateRepeatIndex out of TemplateBeginRepeat

I have the code above in a DWT and what I need is to put in the "X" the number of elements that I have. So the final TemplateRepeatIndex + 1 and it should be in the DWT if it is possible. Does anyone ...
1
vote
2answers
62 views

not able to add `<h2>` tag through dwt code

I have to put main heading in <h2> tag. I have written following line of code <li>&lt;h2&gt; @@GetResourceComponentFieldValueByWebDavURL('Building%20Blocks/Content/brand_xxx/...
3
votes
1answer
194 views

Displaying a variable value in DWT, getting error says variable value has not been declared

I have a compound template that contains 2 C# TBB and 1 Dreamweaver template. First TBB generates an xml from selected component, second TBB takes xpath and return a string value from the xml ...
6
votes
2answers
471 views

How can I split an email address by the '@' sign using DWT?

I would like to split the email address across two separate lines, ie left of the @ and right of the @inclusive, i am using Dreamweaver templates. (Tridion Version 2009), Thank you
4
votes
2answers
473 views

Unable to resolve the internal links along with use of RenderComponentPresentation() in the anchor tag

I have tried the following code in a DWT and the internal link (tridion:href= "@@Links0.Fields.link@@") does not get resolved. <a onclick="_gaq.push(['_trackEvent', '@@Links0.Metadata.ga_category@@...
5
votes
1answer
310 views

DWT Condition with FieldPath

With a DWT, how to test if an embedded schema field has a value in a condition? The following code does not work and breaks on the TemplateBeginIf condition. Is this possible with a DWT? <...
2
votes
2answers
458 views

Issue with SetVariable and GetVariable method calls from DWT

I have written a DWT which is creating an XML as below:- <?xml version="1.0" encoding="utf-8"?><episodes><episode> <episode_id>EPS_7208_7205_56</episode_id> <title>...
6
votes
3answers
482 views

Access TemplateRepeatIndex inside DWT Conditional

I have a multi-valued embedded schema containing a text field and a multi-valued component link. I am currently using the common get linked components TBB to add the components to the package, but due ...
9
votes
3answers
1k views

NOT condition in Tridion Dreamweaver Template (DWT)

This is fairly simple: <!-- TemplateBeginIf cond="Component.Key=='TrackingTag'" --> . . . <!-- TemplateEndIf --> However, I'm stuck with reverse condition. For example in C# we usually ...