Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
Getting label of Item type generated list
I have created an item type, with a item type generated list as one of its fields. I have selected the fields to be used for label and value in the list, but I cannot output the label in my template, when I use @item.GetValue("ItemPublisher:Item.Forh ...
Kurt Moskjær Andersen
28/08/2015 11:10:00
Last post: 01/09/2015 14:01:58
Timezone of Order datetime
HI, As requested by the users, I've added this line @GetValue("Ecom:Order.Date") in notification email template and order datetime is displayed in the email. Users are now requesting the datetime to be sent in (-6hrs CET) timezone. Kindly help me how ...
Thaw Htun Lynn
21/08/2015 05:23:45
Last post: 21/08/2015 12:03:08
Generate random unique identifier (max 5 chars)
Hey guys, Is there a way to generate a random unique identifier of a max of 5 chars (maybe 6), similar to a voucher code, by using some built in DW functionality? Strings and ints or just strings or just ints it really doesn't matter Thanks! ...
Adrian Ursu
18/08/2015 16:28:19
Last post: 19/08/2015 10:17:40
Navigation from another Area
Hello guys, Is there any way to list the navigation from another Area than the current one? For example, I am in Area2 and I want to list also the navigation from Area1. I am ok with any option: razor or xslt. Thanks, Adrian ...
Adrian Ursu
11/08/2015 15:56:47
Last post: 11/08/2015 16:27:46
SearchFriendlyUrl for hreflang
Hi, We've got a website with several different language versions. In the header I would like to create "hreflangs" for each language version of the current page. Let's say i have a page on the english site with this URL: http://mynewbikeshop.com/bike ...
René Poulsen
11/08/2015 08:44:53
Last post: 12/08/2015 14:09:22
Validation of date-field
Again, i'm struggling with validation for a form, using Forms for Datalists... I have this form with a "date from" and "date to" field. But how do I validate, that the dates is changed to something else than todays' date, before the form can be submi ...
Lise T. Pedersen
06/08/2015 13:11:38
Last post: 10/08/2015 13:49:56
Global:Paragraph.Content([ID]) not working in Confirmation template
Hi, I have one datalist in one paragraph then I'm trying using the tag: Global:Paragraph.Content([ID]) to include the paragraph in one Form Confirmation Template, but is not bringing anything... Someone know if this tag Global:Paragraph.Content([ID]) ...
George Nelzo Pereira
22/07/2015 18:47:33
Last post: 06/08/2015 11:32:59
ItemCreator - itemlist
Hi, I have one item (item A) with an itemlist containing other items (item B). Is it somehow possible, via ItemCreator, to create new instances of Item B in the itemlist on Item A? ...
Rene Poulsen
07/07/2015 15:14:12
Last post: 07/07/2015 17:04:48
Delay in Item values being pulled from the database.
Hi, I have some items which have drop down fields which simply get their values from database tables. Now there is a section in the site where the users update these values. When I update them, they do not appear in the Item field. I have to go in th ...
Yasharth Tahiliani
07/07/2015 12:11:46
Last post: 13/07/2015 13:11:46
template.TagExists & template.LoopExists
Hi guys, I just upgraded a project to the latest core and now a huge performance issue occurred. We used some template extenders in which we used template.TagExists and template.LoopExists to add tags or call functionalitity only when it is desired.  ...
Peter Leleulya
06/07/2015 14:08:48
Last post: 06/07/2015 15:27:34
Email marketing Template
Hi guys, I am playing arround with Email marketing templates. And I have 2 questions: 1) In the email, I am getting "click here to unsubscribe" link. But that is not setted up in my markup, it comes from somwhere else, was wondereng where that place  ...
Dmitrij Jazel
01/07/2015 15:35:03
Last post: 01/07/2015 16:17:36
Get Item Page URL.
Hi, How may I get the Page URL in a Razor template? I use @GetValue("DwPageName") to get the Page Name. Just need to access the Page URL. Thanks & Regards, Yash. ...
Yasharth Tahiliani
29/06/2015 18:34:28
Last post: 29/06/2015 20:56:22
Dynamically setting value of a text box in Razor.
Hi, I have a Forms For Editors Form and I output the form fields using the following Razor markup: <div class="form-input required textarea"> <label for="enquiry">@GetString("Form.Field.Yourenquirycomments.Name")</label> <div cla ...
Yasharth Tahiliani
26/06/2015 18:22:20
Last post: 29/06/2015 14:14:19
Query String in Razor
Hi, Is there a way to get the query string value within a Dynamic Web Razor template? I am trying the following : @{ string brochureName = @Request.QueryString["brochureName"]; } but it isn't working. ...
Yasharth Tahiliani
26/06/2015 17:56:57
Last post: 26/06/2015 18:19:12
Form Template Loop through fields.
Hi, I am trying to create a generic template for User generated forms using the forms for editors module within Dynamic Web. I want to be able to loop through each field within the form and attach some div elements around it. <div class="row">  ...
Yasharth Tahiliani
24/06/2015 14:01:03
Last post: 24/06/2015 14:07:14
Page Item Type ID
Hi, I have these pages in my website that are items of a particular type. Now, is there a way in the Razor template to get the ID of the Item Type of these pages. I am using Dynamicweb.Frontend.PageView.Current().Page.get_Value("PageId").ToString();  ...
Yasharth Tahiliani
22/06/2015 10:44:09
Last post: 22/06/2015 10:51:52
[Razor] Using a concatenated variable with GetString
Hello, I have several group fields which are numbered, so to avoid writing 20 times the same html code, I wanted to do a for loop : @for (int i = 1; i <= 10; i++) { tagName = "Ecom:Group:Field.Picture" + i.ToString() + ".Value.Clean"; if (!string. ...
Gaetan Di Caro
17/06/2015 15:00:37
Last post: 18/06/2015 10:58:33
Razor grouping
Hi guys, I've tried to search the forums to find a way to group items, but with no luck... so here it goes: I've got a bunch of Items (Paragraph items) which are employees at a company. I would like to group these by department, which is a field set  ...
Jacob Storgaard Jensen
16/06/2015 18:16:55
Last post: 22/06/2015 08:58:47
Page item in xslt navigation
Hi. How would i use page item attributes in a XSLT template? Lets say i have a page-item called link, with basic functionality like: Href, Target, Alt and text. How would i get those properties in the XSLT? Ive tried stuff like: select="@Link.Link" s ...
Jonas Mersholm
08/06/2015 15:47:03
Last post: 10/06/2015 05:18:50
Geolocation in User Management
I cannot see that the GeoiLocation information is available in the Extranet/Intranet module for a user? Can this be solved in some way? Regards / Aki ...
Aki Ruuskanen
02/06/2015 09:02:24
Last post: 08/06/2015 13:58:55