Developer forum
Subject
Replies
Started by
Last reply
PageTemplateExtender to use with "IF Statements"
Hi, I have one PageTemplateExtender with some Tags... this tags are printing normally. If I use in one template (DataList) is printing but if I use the "IF Statements" to check is not working... But If I use the "IF Statements" in Master template tha ...
George Nelzo Pereira
20/04/2017 15:36:16
Last post: 24/04/2017 16:56:47
eCommerce subgroup sorting (not navigation sorting)
Hi, I've got a pretty simple group structure in eCom, but making it work in frontend is quite hard... Group1 Subgroup1 Subgroup2 Group2 Subgroup3 Sugrroup4 Important! No groups will ever be present more that one place in this structure! In the fronte ...
Jacob Storgaard Jensen
03/04/2017 22:55:43
Last post: 07/04/2017 11:24:45
Any security issues using GetFiles(); on eCom product?
Hi guys, I'm planning on using this code to loop out product related files on a ecom product template - is there any security issues using GetFiles that way? @using System.Web; @using System.IO; @using System.Linq; @{ var productNumber = ""; productN ...
Jacob Storgaard Jensen
03/04/2017 10:37:59
Last post: 03/04/2017 22:01:41
update variant number
I have a custom code for inserting products/variants and I have issues when I want to edit variant information (in my case productnumber). This is what I tried and it didn’t work. var var = new VariantCombination(); var.ProductID = dwProduct.ID ...
Davor Zlotrg
20/03/2017 20:38:57
Last post: 23/03/2017 13:11:10
13
Subscribe
Add hash token to filepath of css/js files?
Hi, Is there a way to add a token/MD5 hash string to a css/js files path? I know that the ControlResourcesHandler.ashx does it if resource files are registered dynamically - no clue why it doesn't when they are just hardcoded in the filelist!?... ...
Jacob Storgaard Jensen
14/03/2017 15:33:53
Last post: 15/03/2017 14:22:43
Enhancing performance in cshtml
Hi all, As I was building a new site for one of our customers in Dynamicweb9 I experienced that the page was quite slow at loading the first time. I narrowed it down to the compilation of the cshtml file, so the performance was as expected when reloa ...
Søren Heide Larsen
14/03/2017 21:10:33
No replies yet
RenderParagraphContent with DW9 ViewModels
Starting to use the new ViewModels, and have some Page Templates where @RenderParagraphContent() is use. Is there something simular in the new PageViewModel in DW9? ...
Heine Virenfeldt Kristensen
03/03/2017 12:36:05
Last post: 12/03/2017 00:26:05
Razor template for a calendar
Hi guys I'm very new to Razor templates. I got a event booking site that needs an event calendar sorted by month. The events are made with items and display with the itempublisher (it's a DW9 solution). The hierarchy/loop would look like this (see im ...
Jens Mouritzen
06/03/2017 20:43:45
Last post: 09/03/2017 13:59:24
Problem with DW parsing html attributes with templates tags
Hello, In the master template with Razor syntax, there is an issue when it is parsed. Code being parsed: <body data-minicart-page-id="@GetString("Item.Area.HeaderCartPage_ID")" data-maxicart-page-id="@GetString("Item.Area.Maxi_Cart_Page_ID")" data ...
Emil Ryberg
08/03/2017 13:26:52
Last post: 09/03/2017 13:27:54
Item calendar
Hi guys I'm very new to Razor templates. I got a event booking site that needs an event calendar sorted by month. The events are made with items and display with the itempublisher (it's a DW9 solution). The hierarchy/loop would look like this (see im ...
Jens Mouritzen
06/03/2017 20:44:59
Last post: 07/03/2017 13:39:56
Query content index DW9 using API
Im trying to use the API to fetch data from the index by looking at this code example. http://developer.dynamicweb-cms.com/documentation/for-developers/ecommerce/indexed-search/search-query-syntax.aspx Unfortunatly it does not look like this example ...
Martin Grønbekk Moen
06/03/2017 20:52:10
No replies yet
Foreach loop rendering empty fields in ItemPublisher module
Hi I am using foreach loop to render fields in Item publisher module. It renders the fields data but along with it it also renders a lot of empty fields as you can see it in a attached PNG. I am pretty sure there is something very wrong with my loop ...
Aditya Bante
10/02/2016 09:44:50
Last post: 06/03/2017 20:45:50
Forgot password message not shown
I am trying to show a message about the result of the "Password restore" operator. I use the standard Login_uk_password.html template. E-mail with the password is comming, ForgotPasswordConfirm and ForgotPasswordEmailNotFound are in the form, but the ...
Andriy Kozachuk
23/02/2017 15:53:47
No replies yet
Dynamic master page
Is it possible to dynamically set which master page to use? I have tried this, but it does not work out. I guess it is because of how you parse the files. @{ var master = (parameter) ? "Master1.cshtml" : "Master2.cshtml"; } @MasterPageFile(master) ...
Martin Grønbekk Moen
19/02/2017 20:38:44
Last post: 20/02/2017 10:07:06
Duplicate master template inside of the module.
Hi there, I have an issue with item publisher. I have created an item publisher which displays in my sub-page, a list of items (displays as expected), then I click in one of the item's list, it goes to a single item(which displays also fine) but the ...
Francisco Jose Gamarra Mena
06/02/2017 15:40:59
Last post: 07/02/2017 09:49:32
dw9 - Getting created date from page object
Hey So while upgrading an old template to dw9 I ran into the problem of needing the created date of a page. In DW8 I could do something like this: int pageId = 1; Dynamicweb.Content.Page page = Dynamicweb.Content.Page.GetPageById(pageId); DateTime cr ...
Claus Kølbæk
24/01/2017 15:46:55
Last post: 24/01/2017 20:02:22
Razor question on how to get something like a substring where i Remove the filename from a path
Sorry for my lack of Razor knowledge, but my mission is I have a field that has a complete path to a file like /Files/Images/Ognir/Vagar/Gardsvegur_22_Sorvagur/00.JPG Now, i want to get the value of the path minus the filename and extension. So my ou ...
Hans Ravnsfjall
21/12/2016 09:03:21
Last post: 03/01/2017 22:49:06
How can I loop through images in a folder, based on a File field in eCom Product
Hi As a progression on some of my previous questions, I am trying to loop through the files of a folder and displaying them in a list. All this is based on eCom product custom field, with the tag and systems name Images. My not working code so far is ...
Hans Ravnsfjall
03/01/2017 19:55:53
Last post: 03/01/2017 22:48:24
Color Seeting.... DW9 bug?
Hi, is there anyone having problem with website setting primary color? I am having trouble while setting up _wrap >colorsetting which is connected to website setting primary color,secondry color. is that DW9 issue? Arker Soe ...
Arker Soe
15/12/2016 12:30:49
Last post: 17/12/2016 12:13:55
XSL-stylesheet missing
Hi, We have an old Dynamicweb solution, which uses the xslt-files in the DataManagement-module. The file Default_validation.xslt tries to import the xsl-stylesheet from http://demo.core.dynamicweb.dk/Files/Templates/global_templates.xsl, but this url ...
Kurt Moskjær Andersen
08/12/2016 14:50:48
Last post: 08/12/2016 18:31:55