Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
77 views

Getting the below error while Publishing the item in Tridion Web 8.5

JScriptException: Expression 'RenderComponentPresentation()' had error 'JScriptException: Expression 'Get("Fields.Exception[0].URL")' had error 'Variable 'Get' has not been declared'' ...
swapnil shukla's user avatar
1 vote
2 answers
68 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:...
Neelesh Raghuvanshi's user avatar
2 votes
3 answers
91 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 '...
Herman Desmet's user avatar
1 vote
1 answer
103 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:/...
Thoufik Ahamed's user avatar
1 vote
1 answer
69 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:
Hirokazu Shikata's user avatar
3 votes
3 answers
113 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 ...
vids's user avatar
  • 135
1 vote
1 answer
136 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 ...
Harish Sharma's user avatar
5 votes
2 answers
89 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 ...
Glenn Franquet's user avatar
3 votes
1 answer
160 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 : <!...
user avatar
2 votes
1 answer
72 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 ...
user avatar
3 votes
1 answer
227 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: <...
user avatar
1 vote
1 answer
159 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 ...
user avatar
0 votes
1 answer
54 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 ...
FieryA's user avatar
  • 85
0 votes
1 answer
99 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. <...
user3560198's user avatar
1 vote
2 answers
94 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 ...
user avatar
2 votes
2 answers
240 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 ...
Jaison Prabhu Doss's user avatar
2 votes
1 answer
161 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> ...
user1693's user avatar
3 votes
4 answers
610 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 ...
Herman Desmet's user avatar
2 votes
3 answers
395 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.
Hari Krishna Gaddipati's user avatar
3 votes
0 answers
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 ...
Nitin Chaurasia's user avatar
5 votes
1 answer
105 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 ...
Dave Forber's user avatar
  • 1,441
4 votes
1 answer
197 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 ...
Pavel Zhukov's user avatar
0 votes
2 answers
170 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
Anand Natarajan's user avatar
3 votes
1 answer
400 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-...
R.C's user avatar
  • 926
0 votes
4 answers
519 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?
vids's user avatar
  • 135
1 vote
2 answers
201 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. ...
Saurabh Mehndiratta's user avatar
4 votes
1 answer
180 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 ...
k951's user avatar
  • 43
6 votes
1 answer
311 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 --> &...
user584's user avatar
  • 1,140
4 votes
1 answer
204 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=...
user avatar
8 votes
1 answer
536 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 ...
Saurabh Mehndiratta's user avatar
0 votes
1 answer
458 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 ...
Gaurav Agarwal's user avatar
4 votes
1 answer
139 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 ...
Freq's user avatar
  • 317
0 votes
0 answers
26 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 ...
Tulika's user avatar
  • 13
2 votes
1 answer
432 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/...
Keirthana's user avatar
  • 861
0 votes
2 answers
392 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 ...
Chakresh Singh's user avatar
2 votes
1 answer
134 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?
Freq's user avatar
  • 317
4 votes
1 answer
633 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 ...
AmateurCoder's user avatar
1 vote
1 answer
450 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("...
AmateurCoder's user avatar
1 vote
1 answer
690 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 ...
user3113876's user avatar
0 votes
0 answers
39 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 ...
user3113876's user avatar
4 votes
3 answers
104 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. ...
Trevor Bartlett's user avatar
6 votes
3 answers
699 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" --> @@...
Daryl H's user avatar
  • 625
8 votes
2 answers
325 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
ITB's user avatar
  • 459
5 votes
1 answer
269 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 ...
ITB's user avatar
  • 459
1 vote
2 answers
64 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/...
Chakresh Singh's user avatar
3 votes
1 answer
276 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 ...
Ali's user avatar
  • 1,447
6 votes
2 answers
519 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
user610's user avatar
  • 161
4 votes
2 answers
491 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@@...
user584's user avatar
  • 1,140
5 votes
1 answer
339 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? <...
robrtc's user avatar
  • 10.2k
2 votes
2 answers
491 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>...
AlokBhatt's user avatar
  • 1,250