Developer forum
Subject
Replies
Started by
Last reply
Relative path
Hi, I'm making a new newsv2 list-template. In that template I'm including some javascript-files. However I can't set the relative path for it, and only by typing the absolute path is it possible to use the javascript files. So I need a bit of help to ...
Martin Kure
01/09/2014 09:33:43
Last post: 02/09/2014 12:22:48
Partial views
Hi all, I wonder if there is a way to use partial views with "Layouts & Design" approach and Razor in DW? Something like this:
@RenderPartial("_partialView.cshtml") Thank you in advance. ...
Denys Ubizskyy
18/08/2014 10:37:00
Last post: 01/09/2014 09:20:02
Sidemenu links
So ive done a bit of testing with a new sidemenu intended for our website, so far ive found out you can extract properties dynamicly and even turn these into links like this. <a href="<!--@Global:Page.Top.Name-->">For Science!</a> W ...
Morten Berendtsen
29/08/2014 09:34:29
Last post: 29/08/2014 09:59:59
Global:Paragraph.Content in e-mail template
Hi! I'm trying to use the Global:Paragraph.Content tag in my e-mail template, but it doesn't render anything.
I've tested the tag in a normal page template, which gives me the output, so I know the tag is working. Does this tag not work in e-mail tem ...
Martin Gammelholm
28/08/2014 08:39:41
Last post: 28/08/2014 10:03:57
Set user password, when creating user at the checkout
Hello DW guys, When in Cart-Information step, it is not possible to create new User at the checkout. in paragraph Cart module I have selected create new user at checkout. My question is, how can I assign a password for that user in Checkout informati ...
Dmitrij Jazel
20/02/2014 15:13:24
Last post: 20/08/2014 11:04:17
"If statements" not working in Variants
Hi, we are trying to use if statements in templates, but are not working or we are making wrong :) <!--@LoopStart(VariantCombinations)-->
<No<!--@EndIf">!--@If(Ecom:Product.SelectedVariantComboID=Ecom:Product.VariantID)-->active<!-- ...
George Nelzo Pereira
19/08/2014 13:13:14
Last post: 19/08/2014 15:19:14
Forms for datalists - two input fields with password - how to check?
I need to make a form, where two of the fields has to be "insert wanted password" and "repeat wanted password" - and of course I would like to check if these to inputs are the same. Can someone give me an example of the javascript which I have to use ...
Lise T. Pedersen
27/06/2014 10:28:02
Last post: 18/08/2014 14:39:22
Search module - and ecom etc
I am having an issue with the search module. I have ecom integrated, and need the URL to be dynamic, regarding where the link throws you in the search. For instance, If I have a category called "actors" - this is the URL: /actors?productID=PROD1 And ...
15/04/2011 10:05:03
Last post: 18/08/2014 13:47:02
Remote Http module global tags
Hi, I am using an the old Remote Http module. I assign the xslt perfectly and get it working, but how can I access info about the current page (tags) most importantly the authenticated user? If I can't, do you guys have a way to merge and xml with xs ...
Nuno Aguiar
12/08/2014 11:24:32
Last post: 12/08/2014 15:22:11
Razor code exposed
Hi, We are performing some security tests in Razor templates and would like to know if there's any way the Razor code is not exposed in case of error. In C# we can set the debug settings in web.config. Best Regards, Nuno ...
Nuno Aguiar
17/07/2014 11:06:20
Last post: 11/08/2014 12:15:01
Show Item Types in another Page
Hi can any one tell me why this dosnt work in a Razor template? @using System.Collections.Generic;
@using Dynamicweb.Content.Items;
@using Dynamicweb.Content.Items.Queries; @{ IEnumerable<Item> allItems = null; ItemManager.Initialize(); using ( ...
Kevin O''Driscoll
08/08/2014 10:30:54
Last post: 11/08/2014 12:12:19
Translate wish list
Hello, How is it intended to translate a sentence like this: "*Create_a_new_list" when creating a new list on a product with the new wish list functionality? The sentence is located in this tag: <!--@Ecom:CustomerCenter.List.Select--> Best rega ...
Anders Ebdrup
29/07/2014 10:39:42
Last post: 11/08/2014 10:07:58
Ecom dropdown menu
Hi! When building an dropdown menu based on eCom groups, sometimes we want to show group images in the dropdown. We really want to use images, with the same name as the group number, but the problem is, that group number is not being outputtet in the ...
Martin Gammelholm
07/08/2014 10:34:17
Last post: 08/08/2014 16:27:48
Detect statuscode 404 in template
Hi DW, I'm trying to detect whether a given page returned 404 statuscode or not.
I want to do this to send a different tracking code to Google Analytics when the page wasn't found. I'm doing this which works fine: <!--@If(Global:Request.Url<con ...
Martin Nielsen
23/07/2014 09:11:52
Last post: 08/08/2014 15:56:42
Loop OrderLineFields with Cart context
Hi, On the first step of a order context cart the OrderLineFields loop is always empty. Does anyone had the same problem? Ricardo Pereira ...
Ricardo Pedra
02/07/2014 16:53:34
Last post: 08/08/2014 15:29:59
eCom breadcrumb - why wont it work?
Hi! I have set up a breadcrumb for my shop, but it doesn't show the whole path, only the page name. I can see it's working on SolutionSet, and have copied the breadcrumb.xslt + the markup from master, but I must be missing a checkbox somewhere in the ...
Martin Gammelholm
05/08/2014 19:52:15
Last post: 06/08/2014 09:35:44
List items in navigation
Is there an easy way to list items in the navigation or am I forced to extend the NavigationProvider and implement the navigation with a custom module? ...
Kasper Skov
28/02/2014 01:13:01
Last post: 01/08/2014 14:48:04
Problem rendering mobile paragraphs on a computer
Hi there, I am trying to test a mobile layout on my desktop computer to see if the rendered code is correct. I have managed to change the layout of the page using ?LayoutTemplate=pathToDesign - but the problem occurs on paragraph level where I use Gl ...
Sonni Tost
01/08/2014 11:30:42
Last post: 01/08/2014 11:57:12
Make Visual Studio recognize DW methodes
Hi,
The only valid path to code in Razor if you want proper development features like intellisense I guess is to use Microsoft Visual Studio.
I am editing a .CSHTML template and look closely at the "Error list" area of VS, also on errors in ...
Sten Hougaard
23/10/2013 10:20:17
Last post: 30/07/2014 14:22:36
10
Subscribe
Razor SQL Injections
Hi, I've read Mikkel's answer on http://developer.dynamicweb-cms.com/forum/templates/razor-templates-connect-to-database.aspx and was wondering if the Dynamicweb.Database.SqlEscapeInjection() method was as effective as the SQL command. Sometimes we w ...
Nuno Aguiar
17/07/2014 13:07:33
Last post: 18/07/2014 12:47:45