Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
Razor: Include file from ancestor folder
Hi DW, I'm trying to nest includes in a Razor file, but i cannot get it to work properly. My desired include order: eCom/Products/product.cshtml Include: "eCom/Products/includes/product-related-products.cshtml", Tag: @Include("includes/product-relate ...
Martin Nielsen
05/12/2014 13:01:06
Last post: 03/09/2015 11:10:50
Extension for Adobe Brackets editor for finding Dynamicweb Tags
For a long time I have been thinking about how to get intellisence on Dynamicweb Template Tags. The other day I did a NodeJS app which stripped templates.dynamicweb.dk for template tags, generating an array of JSON template information. This data now ...
Sten Hougaard
25/11/2014 22:51:29
Last post: 26/11/2014 07:44:55
Produkt Variants
I have som products with product variants. Now, I want to use a product variant as a related product to another product. Is this possible? ...
Jim Trebbien
19/11/2014 14:01:12
Last post: 23/12/2014 14:04:19
Er det ikke en bug? IF tags
Hej, Der er noget som har plaget mig noget på det seneste. En SEO ekspert bemærkede store mængder af linieskift i HTML sourcen, og han påstod at det påvirkede SEO negativt. Årsag viste sig at være en Dynamicweb IF sætning. Problemet opstår hvis man ( ...
Sten Hougaard
18/11/2014 09:28:35
Last post: 18/11/2014 10:15:33
Problem with accessing tags in razor template
Hello I have a problem with a razor email template. I would like to set tags from the backend, because i want to avoid using httpcontext. Template example: <head> </head> @{ var customer = GetCustomer(GetValue("CustomerId")); <body> ...
Lasse Pedersen
17/11/2014 16:17:49
Last post: 18/11/2014 08:51:21
If condition is ignored
There is a productfield on the products in ecommerce. The product is a textfield (Long text). What I need to do is check if the field contains any text. If it does it should be displayed, if not, it should display something else. This is the template ...
Jim Trebbien
14/11/2014 10:16:32
Last post: 18/11/2014 09:56:21
Razor global helpers and functions
Is there a way to great globally accessible functions and helpers in razor? I've started an issue on your razor repo https://github.com/dynamicweb/razor/issues/3 ...
Frej Raahede Nielsen
12/11/2014 16:08:09
Last post: 12/11/2014 16:17:38
troubles with Usermanagement.Group cache
I have a razor template on which I loop through a list of UserManagement Users. I keep getting cached data here. I've set the page properties to no cache.I've put Dynamicweb.Modules.UserManagement.Group.ClearCache() and Dynamicweb.Content.Page.Update ...
Peter Leleulya
10/11/2014 14:11:25
Last post: 17/11/2014 09:01:42
Razor If/else on variable
Hi.. I have this code. @{ var groupID = "GROUP1"; var groupIDz = "<!--@Snippet(groupID)-->".ToString(); } <span>@groupID</span> <span>@groupIDz</span> @{ if (groupID == groupIDz){ <text>Ens</text> } else{ < ...
Lars Pham
10/11/2014 12:23:39
Last post: 10/11/2014 13:24:07
RAZOR eCom groups
Hi people So I have ventured into the wolrd of Razor... I need to loop through my eCom groups and have done so like this: <ul class="productNav"> @{ var groups = GetLoop("Groups"); foreach (var group in groups) { <li> <a href='@group.G ...
Rune Skovbo
31/10/2014 14:17:49
Last post: 04/11/2014 08:58:21
Has item publisher been improved on preformance in 8.5 (1) ?
Hi, I did a Razor/SQL based publishing of items as the item publisher in 8.4 was too slow. Using item publisher it took 7 seconds to retrieve 12 items from a list of about 1500 items. I changed it to Razor/SQL based retriaval and went to 300 ms. I a  ...
Sten Hougaard
31/10/2014 10:39:01
Last post: 04/11/2014 14:25:02
Add multiple products to cart from CustomerCenter
Hi, I am trying to add functionality to the wishlist so that the user can add all the products from a list to the cart. I am trying to do it the same way as you would do it in a regular productlist but it does not seem to work. Any suggestions? Regar ...
Aki Ruuskanen
27/10/2014 14:22:36
Last post: 27/10/2014 17:24:55
Check if product have quantity discount
How is it possible to see if a product have more than one price defined? (if any prices are defined in the "prices" tab on the product) [edit] I am aware of the <!--@Ecom:Product.PriceCount--> tag, but this seems to give a value of 0 or 1. It s ...
Jim Trebbien
24/10/2014 13:06:26
Last post: 26/01/2015 01:56:20
Dynamicweb.Rendering.RazorTemplateBase.Translate(string, string, object)' is obsolete
It seems that your new translation methodes in 8.5 have also made the pre 8.5 razor tag outdated. Please tell me how I then should insert translations in Razor? Med venlig hilsen/Best regards, Sten Hougaard Webudvikler ...
Sten Hougaard
22/10/2014 16:30:57
Last post: 03/11/2014 11:03:54
Ecom Navigation, wrong country code
Hi, On this site http://maximatecc-cn-live.softgear.se/zh-CN/Products.aspx i have a eCom navigation. The XML for the eCom nav outputs "en-US" in the "FriendlyHref" instead of "zh-CN" in the links for product groups. The regular navigation works as it ...
Aki Ruuskanen
22/10/2014 10:20:58
Last post: 23/10/2014 15:37:21
Is DwLegend working in Design and Layouts?
My breadcrumbs seem to be not working in DW8 with Designs and Lay-outs - can this tag not be used any more? (Works fine in old DW Stylesheet templates....) ...
Per Søgaard
21/10/2014 16:19:45
Last post: 22/10/2014 08:15:00
get list of Default Related groups of a group
I have a product category with some related groups defined in the "Default Related groups" tab. Now in the frontend I would like to get a list of these groups. I have tried with a <!--@LoopStart(ProductRelatedGroups)--> loop, but that only give ...
Jim Trebbien
21/10/2014 11:43:34
Last post: 22/10/2014 09:49:10
Multiple website languages - count is still 0
Hello, I am currently working on a project in which I have a bunch of websites which need to have multiple languages. Though the same content, of course just translated to the respective culture. Untill today I have always worked on single websites i ...
Mikkel Toustrup Olsen
06/10/2014 15:29:06
Last post: 06/10/2014 18:09:34
Search weighted
Hi! We are building a new project, where we need to devide search results in to different groups. See Screen attached. Fx. the searchresults should show groups of items as Pages and News. You get the point, when looking at the screen.. Is that possib ...
Martin Gammelholm
01/10/2014 10:25:31
Last post: 01/10/2014 10:36:50
ItemPublisher sorting not working correctly?
Hello, I am working on a 8.4.1.12 solution on which I have multiple items and therefore multipleItemPublishers. I have stumpled upon a very annoying issue. My Items are sorted in the backend (by dragging and dropping them in the right order) -> ev ...
Mikkel Toustrup Olsen
29/09/2014 15:53:42
Last post: 29/09/2014 20:06:46