Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
Getting first page of this language
Hi, I'm editing a site for a customer. The customer has a lot of divisions and they have 10 sub websites. All these websites are linked from the main page. All websites run on the same domain. Each website has a banner which continues to be displayed ...
Martin Kure
24/11/2014 11:20:28
Last post: 24/11/2014 11:49:29
get discount unit price of product
Is it possible to get the discount price from <!--Ecom:Order:OrderLine.UnitPrice--> ? Never mind. :) ...
Jim Trebbien
20/11/2014 12:28:47
No replies yet
Translation mail notifications
Hello. Ive been trying to translate the user registrationmail for a while now, but it doesnt seem to take translate tags. Is it possible to add translationtags or in some way translate email notificationtemplates? Best regards Dan ...
Dan Lundgren
19/11/2014 08:23:10
No replies yet
assembly reference missing - upon using generics in Razor Templates
Hi All, I just stumpled upon a issue that might have been mentioned before, but couldn't locate it here on the forum. The issue is that suddenly the assembly im using (namespace) couldn't be found i my razor template, i have no idea what triggered it ...
Finn Frost
18/11/2014 11:47:38
Last post: 18/11/2014 14:55:49
DwTemplateTags resulting in error
Hi I have a very annoying problem, that is if i insert DwTemplateTags into a show product template, I get an error. And therefore i can get no data output. Here is an example http://wenzel.fo/Default.aspx?ID=415&ProductID=PROD1048 The problem was ...
Hans Ravnsfjall
18/11/2014 01:21:46
Last post: 18/11/2014 12:51:29
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
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
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
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 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
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
Render danish/foreign characters in template engine error
Both razor and old html template engine aren't rendering characters like ÆØÅ. <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" /> is set. Text from the database is rendered correctly. What am I doing wrong? ...
Kasper Skov
04/11/2014 10:37:00
Last post: 06/11/2014 12:02:40
Razor BOM
Hi people Using this: @{ foreach (var BOMConfigurator in GetLoop("BOMConfigurators")) { <div class="header">@BOMConfigurator.GetValue("Ecom:Product.Configurator.Name")</div> @BOMConfigurator.TemplateTags() foreach (var ConfiguratorProduct ...
Rune Skovbo
06/11/2014 10:52:23
Last post: 06/11/2014 11:03:52
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
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
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
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
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
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
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