Developer forum
Subject
Replies
Started by
Last reply
Razor version of Template:DesignBaseUrl?
Hi Dynamicweb, What is the razor version of this tag: @Template:DesignBaseUrl introduced in 8.5? Best regards, Anders ...
Anders Ebdrup
09/12/2014 20:26:29
Last post: 10/12/2014 09:46:48
Out commented TemplateTags in Razor
Hi Dw, When have out commented TemplateTags like: @* @TemplateTags() *@ I a razor template, it seems like the TemplateTags are parsed anyway on the server side (tested on 8.5.1.x) and are causing longer load time. It would be nice that the out commen ...
Anders Ebdrup
08/12/2014 20:04:15
Last post: 09/12/2014 09:13:46
Form validator
The form validator used in user management seems to always check for password. Is there a way to remove the password check in the validator. I currently have email newsletter subscribe form, that doesn't have a password field, still it's being valida ...
Martin Kure
01/12/2014 08:40:13
No replies yet
Show produtcs with discount
Hi, Would it be possible in DW Ecom to get a list of all products that has a discount attatched to it? I was thinking, to avoid going through all products, that you could e.g. list the products within the "Discounts". But is this possible? ...
13/01/2011 15:17:04
Last post: 27/11/2014 17:13:24
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
Global:Area.ID in xslt
Hi, I'm making a breadcrumb in my xslt - so far so good. Within the xslt a have a list-tag, which should alway link to the front page of the current language layer. So far I've tried this, but without any luck. "<li><a href="Default.aspx?ID= ...
Martin Kure
22/10/2014 14:26:41
Last post: 25/11/2014 23:47:14
Extranet logout
Hi! How can you make a logout link/button that after a click logs out the user? Is it possible with a global template tag or do you have to use a module? Best regards,
Per ...
Per Ljung
19/05/2011 09:56:40
Last post: 25/11/2014 09:55:36
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