Developer forum

Forum » Development
Subject
Replies
Started by
Last reply
Caching in DW9?
Hi Dynamicweb, After upgrading to DW9 I can see a lot of extra calls to the database on each page load. Most of the calls seems to be related to Pages e.g.: GetFirstPageForArea GetFirstModulePageForArea (for both search and cart) GetPageForItem (and  ...
Anders Ebdrup
23/08/2017 16:16:43
Last post: 24/08/2017 09:32:22
Code first approach
Is it possible to use the code first approach on other areas than item types? Lets say product fields, and product categories? ...
Martin Grønbekk Moen
21/08/2017 15:21:32
Last post: 21/08/2017 16:25:19
Code first item inherit
I'm trying to use code first item creation, but cant get the inheritance working. [Item(Name = "Paragraph", Description = "Root paragraph, in which all other paragraphs inherit settings from.")] [Category("Example")] [Icon(Dynamicweb.Core.UI.Icons.Kn ...
Martin Grønbekk Moen
18/08/2017 10:05:27
Last post: 21/08/2017 08:19:05
Code first default view item page
Hi Guys, I'm trying to set the default view of an item page to 'paragraphs' . It's a code first itemtype but can't find the correct setting. It's running on 9.2.16. What am I missing? [Item(Name = "Detail page", Description = "")] [AreaRule(92, 93)]  ...
Jesse Bakker
18/08/2017 10:46:27
Last post: 21/08/2017 06:51:54
User.GetCurrentUser() not working in 9.2.16
Hi Dynamicweb, After upgrading to 9.2.16 the function User.GetCurrentUser() is not working as intended anymore as this will only return a Backend user. Please see the change here: https://www.screencast.com/t/RBFeAXNW4U Is this an intended change and ...
Anders Ebdrup
12/07/2017 14:58:59
Last post: 18/08/2017 17:32:34
Code first item drop down list
I have tried to use the examples available, but cant get it working. I'm trying to create a drop down list with static options like this. https://www.screencast.com/t/2jXvPrntL But it ends up like this. https://www.screencast.com/t/dnhSTY8W ...
Martin Grønbekk Moen
18/08/2017 12:50:10
Last post: 18/08/2017 12:56:10
Code first item field group visibility rules
Can anyone please post a code first example on how to use the visibility rules for field groups inside an item? https://www.screencast.com/t/MEOoA4RT ...
Martin Grønbekk Moen
18/08/2017 11:27:16
Last post: 18/08/2017 12:50:31
ViewModelBase example source files
Hi Dynamicweb, Any chance you could send or publish the source files from the <code></code> attributes below. Best regards, Rasmus ...
Rasmus Andersen
08/08/2017 08:34:30
Last post: 15/08/2017 10:07:54
In cshtml, list all subpages based if they are published or not
Hi I'm using version 8.6.1.30 In my project I'm listing all subpages of a page in cshtml with a foreach loop using var reports = Pageview.Page.Children; @foreach (var report in reports) Using this method the foreach loop list all the pages published  ...
Andreas Hunderi
15/08/2017 08:28:50
Last post: 15/08/2017 09:56:25
Custom URL Provider
Hi, i am messing around with making a custom URL provider. I have read the PDF about making custom url providers and have made this so far: [AddInName("Image Alias Redirect"), AddInDescription("alias to image name redirect mapper"), AddInActive(true) ...
Anders Ditlevsen
10/08/2017 11:18:30
Last post: 10/08/2017 12:41:04
Get all orders by API, including impersonated
Hi, I need to get a collection of all orders, completed within a certain period of time, by the customer himself or by impersonation. If I use the CustomerOrderCollection, loading it with the customers ID, I will not get the ones completed by imperso ...
Kurt Moskjær Andersen
03/08/2017 11:43:45
Last post: 03/08/2017 13:05:10
BeforeQuery subscriber
Hi, I am looking for a subscriber triggereing before a query when using a query publisher in DW9. So far I have found one for ecommerce: [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Querying.BeforeQue ...
Mikkel Ulstrup
01/08/2017 14:08:40
Last post: 03/08/2017 01:06:09
Notification before product added to cart
Hi, On my ecommerce-solution, a customer is not allowed to order more than a specific quantity of a product, over time. In order to achive this, I've added a custom product field, which holds the maximum quantity allowed for each product. I already c ...
Kurt Moskjær Andersen
02/08/2017 08:48:08
Last post: 02/08/2017 13:49:26
CheckoutDone being run twice per order
Hello. I have a scenario where i have a NotificationSubscriber: Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.CheckoutDone, which is being run twice, whenever i complete the checkout. I am using a DW9 Wrap, where i have added the above described  ...
Anders Ditlevsen
01/08/2017 12:13:05
Last post: 01/08/2017 12:52:11
PriceProvider infinite loop
Hello, I'm trying to implement a simple custom price provider (users have a fixed discount percentage on top of the regular price, including other discounts). I tried the example here : http://doc.dynamicweb.com/training-certification/t3-platform-dev ...
Gaëtan Di Caro
26/07/2017 09:12:55
Last post: 31/07/2017 10:39:21
DW9: Creating user in checkout with billing information. Is it possible?
Hi, DW version: 9.2.16 I want to save customer information in checkout without creating login. Is it possible to create a user in the Information step i checkout with the information from the form? Or do I have to make separate fields for this? I hav ...
Marie Louise Veigert
25/07/2017 11:56:50
Last post: 27/07/2017 11:40:57
External Authentication in DW9
Hi Dynamicweb, We have upgraded a solution to 9.2 from 8.9, but after the upgrade users are not added user management groups. In ExternalLogin.aspx.vb something seems to be missing: Private Sub AddUserToUserManagementGroup(ByVal provider As Provider, ...
Anders Ebdrup
12/07/2017 09:08:27
Last post: 12/07/2017 10:03:52
NavigationProvider: Can you add nodes as childnodes to an ecom node?
Hi DW, I'm using DW 9.2.16 I'm using the Navigation Provider to add nodes based on items. I would like to display those in a megamenu under a given parent node. Ex 'Men'. I can easily add it at the buttom of the XML, but I need it in the wrap of the  ...
Marie Louise Veigert
06/07/2017 16:15:05
Last post: 07/07/2017 13:55:59
Clearing the cache
Hi guys, We have a multi-server setup using DFS which currently runs on DW 8. We're migrating it to DW 9. The 9.2 version that's available now doesn't have a good solution for clearing remote caches so Nicolai suggested to build my own for the time b ...
Imar Spaanjaars
06/07/2017 11:12:21
Last post: 06/07/2017 15:00:19
Guidance on unit testing
Hi guys, We're trying to set up some unit tests to test some custom code using the Dynamicweb API but hit a few roadblocks. For example, something like this will crash: var order = new Order(); because the order instantiates a new PriceIInfo which tr ...
Imar Spaanjaars
05/07/2017 22:25:17
Last post: 06/07/2017 11:05:45