Developer forum

Currently discussing: Plans to implement a Consent module for GDPR compliance.

Join the discussion!

Forum » Templates
Subject
Replies
Started by
Last reply
Email marketing - Preheader in newsletter
Hi It seems like I can't prevent Dynamicweb from injecting content from the tag "EmailMarketing:Email.PreHeader" in my newsletter! I have tried to use the tag "EmailMarketing:Email.PreHeader.Clean" like this: <body> @GetString("EmailMarketing:E ...
Lars Larsen
24/04/2018 12:38:39
No replies yet
ItemPublisher / RenderItemList and paragraphs vs. include all child items
Hi, I have a structure off departments and employees that goes something like this: Department 1 Department 2 Employee a (paragraph on Department 2 page) Employee b (paragraph on Department 2 page) Subdepartment 2.1 (subpage to Department 2) Employee ...
René Poulsen
23/04/2018 10:45:57
Last post: 23/04/2018 17:25:57
RenderItemList and global paragraphs
Hi, I'm creating a contactpage with departments and employees. Some of the employees belong to 2 or more departments, so I want to use global paragraphs for the employees. The departments and employees are shown on a page using RenderItemList, but wh ...
René Poulsen
13/04/2018 13:19:01
Last post: 13/04/2018 13:42:20
Is there a "smart" way to find missing references in Visual Studio?
I'm trying to copy a template file from another solution to my project, but it is missing some references or assemblies. Is there a "smart" way to find the missing references in Visual Studio? What I'm doing is copying some template files from Rapido ...
Bjørn Kamfjord
10/04/2018 09:19:22
Last post: 12/04/2018 10:20:59
TemplateTags() breaks the page
Hey. The issue, when I try too put an @TemplateTags() in a product loop, it breaks the page, returning an ServerError page. With no templatetags the page works fine. Ive tried putting the Template tag all over the template, it breaks no matter how i  ...
Bjørn Kamfjord
23/03/2018 08:48:26
Last post: 28/03/2018 02:41:59
Primary Related Groups
Hi... I have one product... it is related in more groups... is OK, I can find this product in these groups... But I choosed one Primary Group and this are not following in details... https://georgenelzo.tinytake.com/sf/MjQzNzg3OF83MzcxMTY2 In Details ...
George Nelzo Pereira
14/03/2018 19:38:08
Last post: 10/04/2018 08:49:55
Helpers, regex engine and mvc-like
We are in the process of moving our coding standard away from the old includes and towards helpers, functions and partials via the techniques described by Dynamicweb here https://doc.dynamicweb.com/forum/templates/razor-partial-views-and-helper-funct ...
Kim Pilgaard
21/02/2018 13:01:11
Last post: 27/02/2018 14:05:40
Automatic email template forms for editors
Hi, We have different clients who made a form with the forms for editors function in DW9. When you fill in the form and send, then the customer and the company are getting the mail with a Dynamicweb logo. We changed it in the DefaultMail.cshtml and t ...
Manon Wekking
14/02/2018 14:31:11
Last post: 16/02/2018 02:14:10
Max number of products from a specific product category
I need a setting, where i can set a max number of products from a specific product category, that buyers can put in the cart pr. order. An example: a festival where visitors buy a workshop, and they can only put one workshop in the cart pr. order. Do ...
Jens Mouritzen
13/02/2018 12:55:31
Last post: 19/02/2018 15:33:24
Paragraphs container (items loop)
I'm trying to loop items with a file include. Basicly i'm trying to make a simple paragraph container like the one in Rapido I got the following error Exception in template (Designs/Simple/Paragraph/ParagraphContainer.cshtml): System.ArgumentExceptio ...
Jens Mouritzen
29/01/2018 11:10:06
Last post: 08/02/2018 09:28:41
Item publisher
I'm trying to make a template for the item publisher. The purpose is to display a link if a item relation list, in the items, has content. The attached image "template" is the code i got so far. I got a short video showing the items with images in th ...
Jens Mouritzen
25/01/2018 08:59:34
Last post: 25/01/2018 12:11:51
Example on MailProvider with ItemCreator?
Hey I am messing around abit with RenderItemCreationForm - and can see it takes a Provider as a setting (https://doc.dynamicweb.com/api/html/00986dc5-3297-b451-2dde-8753406a4db6.htm) - and wondered if you had a simple example of the use of it? - For  ...
Claus Kølbæk
10/01/2018 11:02:50
Last post: 18/01/2018 10:48:47
Cart view model not set
Hi Dynamicweb, I am getting the error from the attached screenshot when trying to use a CartViewModel. I am on Dynamicweb 9.3.5. Is there something I am missing? Best regards, Rasmus ...
Rasmus Andersen
18/12/2017 09:25:48
Last post: 20/12/2017 08:57:12
Can't insert global element
Hi Dynamicweb, I cannot insert a global element with a item-allowed string formatted with spaces: @Model.Placeholder("Hero", "Hero", "items-allowed: HeroRibbonItem, HeroWithTextRibbonItem; unwrap:true") But it works when formatted like this: @Model.P ...
Rasmus Andersen
12/12/2017 11:23:33
Last post: 12/12/2017 20:02:04
Content placeholder
Hi, In DW9, how do i remove the content placeholder tag from the output, to create a clean JSON output from the page <div class="row dwcontent" id="maincontent" title="Content area"></div> BR Thomas ...
Thomas Larsen
04/12/2017 17:21:09
Last post: 05/12/2017 16:46:02
Automatic log-out extranet after session-timeout
According to Nets security demands, a webshop extranet user should be logged out automatically if the user has been inactive for the time of the session-timeout (or other time set). This is not happening in DW today. Maybe it can be implemented in th ...
Michael Fløe Haug
30/11/2017 09:34:37
Last post: 30/11/2017 11:23:33
Loop eCom:Related.MostPopularProducts
On my site www.bolind.dk I use the loop "eCom:Related.MostPopularProducts" (frontpage), but it seems like it's only returning up to 10 items. In this case it's unfortunately, cause we strip/hide some of the items (accessories), which ends up returnin ...
Arild Garde
30/11/2017 09:02:48
Last post: 30/11/2017 12:46:40
Grid layout
Has anyone tried to create the new custom grid layout with simplified column selection? I want to controle the grid on all the different breakpoints so the user should only worrie about how they want it to look like on the eg desktop. I would like to ...
Jakob Westhausen
29/11/2017 15:18:44
Last post: 15/12/2017 13:03:20
Dynamicweb.Ecommerce.Common.Context.Cart.Price not updated after cart step update
Hi, I've taken over this code which is meant to be part of rendering a mini cart @{ double quantity = 0; var price = new PriceInfo(); if (!isCartEmpty) { quantity = Dynamicweb.Ecommerce.Common.Context.Cart.OrderLines.CountOnlyProducts; price = Dynami ...
Jacob Storgaard Jensen
20/11/2017 17:03:34
Last post: 28/11/2017 10:56:24
Razor: Increment
Hi, I've got a template which is both used as an include on a normal ecom product catalog template and on product templates... What I would like to achieve is to have my wrapping element given a unique ID each time this include/template is rendered.  ...
Jacob Storgaard Jensen
12/11/2017 14:17:45
Last post: 12/11/2017 20:11:04