Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
Product image in xlst menu
Is it possible to get productimages or product kategori images in a xlst script so they can be shown in a menu? ...
Jim Trebbien
25/09/2014 14:26:45
Last post: 25/09/2014 15:34:47
Userfriendly URL and items
Hi, I would like to know how to get userfriendly URL in an item based website. For instance I have the URL: http://wall.martin.com/da-DK/Wall-Of-Dedication.aspx?open=68 Which I would like to become: http://wall.martin.com/da-DK/Wall-Of-Dedication/Lou ...
Sten Hougaard
19/09/2014 08:24:49
Last post: 06/11/2014 08:50:10
Images in razor master template
Has created an item for website propeties, works fine execpt images/files. Getting the image with GetString: <img src="@GetString("Item.Area.NORRIQ_Logo")" width="156" height="58" alt="NORRIQ - Your business simplified" /> This gives me this, w ...
Heine Virenfeldt Kristensen
02/09/2014 12:42:47
Last post: 02/09/2014 13:35:42
Create mailreceipt in the old form module
We have a customer with a lot of old forms in the old form module, is it posible to create a custom template from the form data? It looks like !--@FormOutput-- just dumps af table, with all field of the form. And the customer would like to specify wh ...
Michael Houmark
02/09/2014 12:40:14
Last post: 02/09/2014 22:33:09
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
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
Maps filter button dont work
Hi, I am trying to setup a map filter and I am using the default maps templates for the maps module. I have 2 groups attached (afdelinger, steder - both of these have subgroups with geolocations applied.) and they are being shown perfectly as buttons ...
Mikkel Toustrup Olsen
20/08/2014 11:34:29
Last post: 02/09/2014 13:32:35
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
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
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
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
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
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
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
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
RE: new content type pages with Razor issue
Hey dynamicweb, I upgraded to version 8.4.1.6 because I want to be able to output javascript from razor template but I have an issue. I created a new page and set the content-type to be text/javascript. The template looks like this: <!--@If(1 = 2) ...
Davor Zlotrg
14/07/2014 16:12:52
Last post: 15/07/2014 08:50:29
Testing abandoned cart
Hi, I am implementing an abandoned cart function on a website, and the only way to test it is to add products to a cart, leave the site and wait for 1/2 hour. Not perfect. Is there a way of testing the abandoned cart function in a one-click way? Perh ...
Sten Hougaard
09/07/2014 15:53:07
Last post: 09/07/2014 16:18:49
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
Search filters
Hi, In search filters, i need to only show filters that have products assigned with. Eg. Do not show color "Black" if there are no products with the color "Black". How can I do this? ...
Ricardo Pedra
02/07/2014 13:04:52
Last post: 03/07/2014 10:34:10