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
19 votes
4 answers
363 views

Adding code comments to DWT

I don't see there being any official way to add comments into the DWT building blocks in tridion, but i've come across a situation where i'd really like to add them without having them appear in the ...
johnwinter's user avatar
  • 14.3k
16 votes
8 answers
899 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 ...
Ant P's user avatar
  • 2,039
15 votes
4 answers
3k views

Are there any sources of good study materials for SDL Tridion 2011 templating?

I have been working in SDL Tridion 2011 writing C# Template Building Blogs and Dream Weaver Templates. So far, everything I have learned has been either with help from more senior developers OR by ...
R.C's user avatar
  • 926
14 votes
1 answer
477 views

DWT Page Template Title Syntax

An easy few points for someone, I hope! I want to get the Page Template title in my DWT template. I could knock up a quick C# TBB, but it seems like I should be able to do it without. I have tried: ...
Chris Morgan's user avatar
  • 7,327
12 votes
2 answers
226 views

Get StructureGroup ID in Dreamweaver

I was wondering if this is possible? Have tried following cases: Page.OrganizationalItem.ID @@Page.OrganizationalItem.ID@@ Page.Context.OrganizationalItem.ID @@Page.Context.OrganizationalItem.ID@@ ...
Bogdan Stojanovic's user avatar
10 votes
2 answers
373 views

Publish Binary File in a MM Link Field

I try to think about what is the best practice of publishing binary file in a MM link field without coding like in the DW Template. The background of this question is that I have a couple of on/off ...
Naoki's user avatar
  • 459
9 votes
3 answers
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 ...
R.C's user avatar
  • 926
9 votes
4 answers
941 views

Adding anchors to links in DWT

How do we add anchor links in Tridion DWT? We have a scenario where we have about 10 "teaser" type components on a page that should link to the relevant "full content" on another page. Using: <a ...
Dave Forber's user avatar
  • 1,441
9 votes
2 answers
516 views

IFunctionSource functions for DWT in Razor?

We are working on Tridion 2011 SP1 and we always used DWT (Dreamweaver templates). We have a huge collection of usefull custom functions that we are using accross various dreaweaver templates. Due to ...
Michaël Geerts's user avatar
9 votes
2 answers
723 views

Condition Sentence for Nested multiple Embeddable Link Field

I'm trying to implement Condition Sentence for nested multiple embeddable link field in the DW Tempate. But in the 1st Repeat sentence, I can't judge if the 2nd embeddable link field is empty or not. ...
Naoki's user avatar
  • 459
9 votes
2 answers
1k views

DWT Syntax TemplateBeginIf & TemplateRepeatIndex

I am pushing keywords onto the package with keys like Keyword1Title and pulling them out in my DWT using @@Keyword{$TemplateRepeatIndex}Title@@ The problem is I want to test the contents of ...
Chris Morgan's user avatar
  • 7,327
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
8 votes
1 answer
402 views

DWT GetFieldMetadata Function

I just came across these built in functions for obtaining page metadata here: https://code.google.com/p/tridion-practice/wiki/BuiltInFunctionsForUseInHtmlTemplates For example: !GetFieldMetadata("...
johnwinter's user avatar
  • 14.3k
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
7 votes
3 answers
920 views

DW Template for implementing multiple text field in component link field

I'd like to know how to implement multiple text field in component link field. My situation is Component A has a single component link field "Note1". "Note1" field has a value of a Note Component. ...
Naoki's user avatar
  • 459
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
6 votes
3 answers
2k views

How do I access a metadata field on my multimedia component from within my Dreamweaver template?

I have a multimedia component. The multimedia component implements the "image" schema, and the image schema defines an "AltText" field on the "Metadata Design" tab. The alt text field is marked as "...
George's user avatar
  • 335
6 votes
3 answers
504 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 ...
Josh Hebb's user avatar
  • 2,920
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
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
5 votes
2 answers
490 views

Unable to resolve links using DreamWeaver Templating

We are using the following line of code in our DreamWeaver Template to resolve a link in Tridion. But,not getting the desired output, the link is not being resolved on the page. Is there anything ...
tkarmaka's user avatar
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
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
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
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
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
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
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
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
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
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
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
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
3 votes
1 answer
414 views

Should RenderComponentField work on any Component in the Package?

When trying to figure out an error in Template Builder for EnableInlineEditingUI: Unable to determine the definition for field I realized we simply had the wrong component and schema. But I'm trying ...
Alvin Reyes's user avatar
  • 12.8k
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
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
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
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
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
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
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
2 votes
4 answers
373 views

Tridion 2011 - Dreamweaver Template skips HTML Comments

I have been trying to output the XPM page tags from a C# TBB but for some reason the Dreamweaver Engine does not allow me to output HTML Comments. Example: I have the following HTML Comment code ...
Kunal's user avatar
  • 1,485
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
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
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
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
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
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
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
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