Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
LINQ 'nested' GroupBy
Hi guys We got an event calendar where we would like to 'nest' the grouping of items in the current order: Weekday Venue Artist Artist Artist Venue Artist Artist We got the following code (current.jpg) made with LINQ but we are struggeling to make th ...
Jens Mouritzen
19/05/2019 22:34:26
Last post: 18/06/2019 08:44:14
Viewmodel list multiple files
Hi, I have a question, we have a code first item where we can selecte multiple images: [File(Name = "Image", BaseDirectory = "/Images", Extension = "jpg,png,svg", MaxFilesToAdd = "6", Description = "", AllowFrontendUpload = false)] public string Slid ...
Harald Brouwers
13/06/2019 14:35:31
Last post: 17/06/2019 09:13:28
Get the value of custom order fields
Hi, I'm trying to get the value of custom order fields displayed in the cart. Have tried the following in the JSON feed but the tags returns the input field: feedRoot.reference = GetString("Reference"); feedRoot.requisitionNo = GetString("Requisition ...
Søren Bremholm Jakobsen
07/06/2019 14:51:51
Last post: 11/06/2019 11:05:32
Forms for Editors - Not showing Radio Fields option values in Confirmation Email
Using Forms for Editors App. In the NotificationTemplate, under [MyDesign]/Forms/Mail/ , When the fieldType == Radio, it does not return the selected option value, label Text, instead, a string "On" is returned. The field is being called under a GetL ...
Lara Arsénio
20/05/2019 21:10:43
Last post: 28/05/2019 07:37:19
Extending Dynamic Article
Hi there DW Forum. I have a question regarding the Dynamic Articles and the possibilities of extending them. It's because i have made a custom block/template for showing some Schema markup on Dynamic Article item'et. And on the Dynamic Article page l ...
Mikkel Hornbech Nielsen
15/05/2019 12:30:16
Last post: 20/05/2019 14:08:42
Web-view confirmation emails - how to customize the template
Hello! - I need to customize the page that has the web view of the email templates (when we click the link of a confirmation email, and open it in a web browser. It looks like it is calling, by definition, the template located in "Application\Admin\M ...
Lara Arsénio
17/05/2019 18:45:35
Last post: 20/05/2019 13:34:32
Item relation list returns a single value instead of an array of multiple values
I would like to get all values from an item relation list that is part of a page item type, but I have a problem because the item relation list returns a single value instead of an array of all the items. This is the code I use: // Get all pages unde ...
Pernille Mortensen
23/04/2019 11:22:48
Last post: 06/05/2019 15:11:39
Any way to alter mail subject dynamically in form for editors?
We usually alter input fields via javascript, but is there any way to alter the mail subject dynamically of the mail being sent as a receipt? /Hans ...
Hans Ravnsfjall
02/05/2019 14:54:29
Last post: 02/05/2019 15:31:01
ParentTag in RenderNavigation (PageViewModel)
Hi I am trying to render a menu using ParentTag like this: @RenderNavigation(new { StartLevel = 1, EndLevel = 2, ParentTag = "Topmenu", Template = "TopNavigation.xslt" }) But the systems seems not to take ParentTag into consideration. Nothing is rend ...
Lars Larsen
29/04/2019 12:13:09
Last post: 29/04/2019 13:39:33
Vertext Address Validation
I have a Vertex Address Validation configured. On the first step of the cart i am getting the AddressValidators loop, sometimes the loop has values and some times it doesn't (the address used is always the same address with errors). Shouln't the loop ...
Cátia Torego
17/04/2019 18:21:59
Last post: 23/04/2019 16:12:06
Linking to an item based page, that I only have the itemid on (don´t have the pageid)
Hi This is sort of related to this matter https://doc.dynamicweb.com/forum/development/development/how-to-get-value-from-paragraph-item-field What I want to do, is to be able to link to an itembased page, that i only have the item id on. It is relate ...
Hans Ravnsfjall
04/04/2019 08:16:49
Last post: 12/04/2019 14:57:10
Comments template
Hi, The documentation page (here) gives the path "Templates/eCom/Product" for the template to add user comments to the products. That template doesn't work, as it doesn't send the comments to the database. Nevertheless, at "Templates\Comments" there  ...
Tomas Gomez
11/04/2019 16:12:23
Last post: 12/04/2019 10:28:11
Dynamic @Inlcude
Hi, I have a solution where the customer want's to be able to choose among several header templates. They have a developer who creates some of the templates that they wan't to be able to choose among. And they would like to keep it in simple files th ...
René Poulsen
04/04/2019 11:50:45
Last post: 04/04/2019 15:01:28
Cookie level in razor/cshtml ?
I need to put some script into an if-sentence on a razor masterpage ("if cookie level option = all") But I can't make it work as cshtml. I hope some of you will make a copy of the code snippet and put it here - thanks in advance!! /LTP ...
Lise T. Pedersen
29/03/2019 13:52:08
Last post: 29/03/2019 15:58:59
Attach all files from a folder to an email sent from forms for editor email
Hi Is it possible - in a razor template - to attach all files from a certain folder to an email sent from Forms for editor module? I am wondering, could this be a solution to add something like this to the forms mail template? mail.Attachments.Add(ne ...
Hans Ravnsfjall
14/03/2019 16:54:10
Last post: 15/03/2019 10:05:45
How do I get primary domains for all areas?
See subject. I've tried simply using Dynamicweb.Content.Area.GetAreas(), but the areas that are returned only have a "domain" property, which appears to have all domains for the area, in one string (which doesn't seem too useful). /Jonas ...
Jonas Krarup Dam
28/02/2019 13:44:46
Last post: 28/02/2019 13:54:52
Customers who bought this also bought not returning any products
I'm using the "Customers who bought this also bought" loop in the product page (eCom:Related.CustomersWhoBoughtThisItemAlsoBought) but i'm not getting any products. I made several orders, shouldn't it have some products? DW version 9.5.7 ...
Cátia Torego
22/02/2019 19:16:05
Last post: 27/02/2019 13:17:33
Email messaging Tags for Razor code
HI i Need to create a fully customized Email template for Back to Stock and when i try to get either EmailMessaging:Recipient.Id or EmailMessaging:Recipient.Key only available in placeholder tags. any idea to get that fileds value into my code block? ...
Shiwanka Chathuranga
09/02/2019 19:28:39
Last post: 20/02/2019 08:59:54
Navigation with razor - example and documentation
I'm looking for some documentaion and an example of how to create a navigation with razor, instead of xslt? Been looking on GitHub, but could not find any examples of how to create a navation with razor, with some documentaion on how to do it. Is thi ...
Martin Kristensen
22/04/2015 13:36:48
Last post: 15/02/2019 13:20:57
Conceal input field in mail
I'm creating a form with forms for editors and a custom template and I want to conceal or hide a part of the userinput in the email receipt. Say I'm letting the user enter a phone number, and only want the first 6 numbers shown in a mail like this: 1 ...
Marc Hjorth
05/02/2019 14:48:38
Last post: 05/02/2019 15:03:50