Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
Code in Master.cshtml Razor file affects /Admin
Hi guys, In my rescent example I tryed to run here, was HttpContext.Current.Session.Abandon() method I wanted to run in Master.cshtml in particular case. By default if no url parameter present, it must run this. Long story short, when I am requesting ...
Dmitrij Jazel
09/02/2016 11:06:02
Last post: 09/02/2016 14:26:35
RE: Check on Div tag, If Placeholder Empty, Razor
Hi The if statement is working fine I do not get any errors but It dosen’t do what it supposed to. It dosen’t out put anything even if the placeholder contains the paragraph ? any thoughts why that might be ? Thanks. @if (!string.IsNullOrEmpty(GetStr ...
Aditya Bante
01/02/2016 09:00:46
Last post: 08/02/2016 15:47:56
Tag does not work : EmailMarketing:Email.UnsubscribeLink
Hi, Within e-mail marketing, the tag "EmailMarketing:Email.UnsubscribeLink" does not get rendered. It shows "as is" in the resulting html. DwTemplateTags does not show any EmailMarketing-tags. So, how can users unsubscribe from a newsletter? Is there ...
Ton Martens
04/02/2016 14:18:35
Last post: 05/02/2016 15:13:01
Content only available when TemplateTag is present
Hi I have a weird problem in my product template. I'm trying to output the value of all custom fields by doing this: @foreach (var CustomFieldElement in GetLoop("CustomFieldList")) { string loopname = CustomFieldElement.GetString("Ecom:CustomField.Sy ...
Thomas Schroll
05/02/2016 09:51:16
Last post: 05/02/2016 12:03:42
Empty fields in razor template
Hello, I am trying to use the 'context order renderer' module inside an email to test abandoned shopping cart functionality. The module uses a razor template based on printorder like you would use to confirm an order by mail. However, when using the  ...
Alexander van Dijk
18/12/2015 10:45:47
Last post: 28/01/2016 14:22:34
File publishing a list of items
I need to create a sort of gallery, based on a folder of pdf-files, which has to be shown as pictures. Therefore, I can't use the ordinary gallery, but need to build it with items. But I don't really understand how to get it working :-) I have create ...
Lise T. Pedersen
11/01/2016 10:51:06
Last post: 26/01/2016 10:52:07
If Defined in Razor
Hi Probably a really simple solution to this question, but how can i use the if defined functions from the old templates, in Razor How would i wrap this in an If Defined? <img src='@GetValue("Item.Mynd.Value")' alt='@GetValue("Item.Yvirskrift.Valu ...
Hans Ravnsfjall
14/01/2016 15:36:28
Last post: 26/01/2016 08:41:37
RE: individual Shipping Fee for each product
Hi, I have a question I hope you can help me figuring out, at least if it is possible. The request: We need to have a specific shipping fee/price for each product in eCommerce. The product specific shipping fee/price should be automatically selected  ...
Jens Jakob Vedel Kristensen
08/01/2016 14:58:39
Last post: 18/01/2016 15:53:06
Ecommerce groups and assortments
Im trying to get all ecommerce groups using Razor, and it is working just fine, I get all my groups. The problem is that I get groups that should not been visible due to assortment rules. This is how I get my GroupCollection. groupCollection = new Dy ...
Martin Grønbekk Moen
15/01/2016 06:51:29
Last post: 18/01/2016 15:46:51
Language Switcher on Frontend
Hi there, i am fairly new to DynamicWeb so the way i am doing this might be totally wrong so sorry for that. But basically what i want is to add a language switcher on my master template, i got the links to the 2 different home pages and it looks lik ...
Casper Andersen
13/01/2016 09:30:19
Last post: 15/01/2016 16:55:12
slideshow nav in xslt
I need to output a "button menu" for a slideshow with various number of slides - guess I have to create a variation of a navigation XSLT template for this - and hopes anyone can point me in the right direction? The code below is the original programm ...
Lise T. Pedersen
13/01/2016 16:00:02
Last post: 15/01/2016 13:47:19
Looping form fields (Forms module)
I want to loop through all options in a select field. I am trying the following: @{ var form = GetLoop("Fields"); } @foreach(var field in form){ <select class="form-control"> @foreach(var option in field.GetLoop("Fields")){ <option value=""& ...
Søren Mastrup
08/01/2016 15:15:14
Last post: 08/01/2016 15:31:12
Current product in breadcrumb
I have a product page with an XSLT breadcrumb, which works fine when you travel down the eCom structure. For example: Home » Products » Doomsday weapons However, as soon as I go to a specific product, it stops, and instead I simply get th ...
Nikki Strømsnes
15/10/2012 11:47:08
Last post: 04/01/2016 22:26:14
Adding query string parameters in navigation template
I would like to transfer the q parameter from the url to the links generated in the navigation template Url: /Default.aspx?ID=1&q=Test should result in the following links <a href=”/Default.aspxID=2&q=Test”>Page 2</a> <a href=” ...
Thomas Larsen
11/12/2015 16:27:12
Last post: 16/12/2015 10:11:35
Access to Product tags from Razor template
I an razor page template I would like to access product tage on varius products. I know I can get some of the information directly from the product class How can I do that? <div> @{ foreach (var ProductID in ProductIDs) { var Product = Dynamicw ...
Thomas Larsen
01/12/2015 23:42:18
Last post: 10/12/2015 11:18:29
TemplateTags in Razor
Hi, I noticed that you now write out ""TemplateTags() in code ({0}). Remove before going live...". You do it no matter if its commented out or not - and I'm not able to print out the tags as I've been able to earlier. I'm on a 8.7.1.4. Is there some  ...
René Poulsen
20/11/2015 13:43:34
Last post: 04/12/2015 14:59:44
Item Based Image Gallery
Has anyone by chance created an item based image gallery, that is somewhat similar to the old module image gallery, and cares to share the item template? I am looking for the part that does the trick of looping the files in a folder, once you have se ...
Hans Ravnsfjall
26/11/2015 07:50:10
Last post: 30/11/2015 15:05:42
Shipping Providers
Hi Guys I would like to use the new Shipping Providers, but i cannot find any dokumentation or standard templates any where. Does anyone know what webservices are available for searching PostDanmark ServicePoint or GLS, and maybe even how to use them ...
Jesper Holm Damgaard
20/05/2015 12:53:47
Last post: 27/11/2015 16:36:10
XHTML end tag omitted and cannot validate with W3
Hi I'm having trouble W3 validating pages with our custom templates. Some have the response is transformed so the end tags gets removed.It does not effect the default meta-tags from the CMS like the Generator-tag or the Canonical-tag. In the module ' ...
Kenneth Christensen
26/11/2015 09:55:19
Last post: 26/11/2015 13:22:45
Generated key in Form.Start - onsubmit
Hey When you under management center - > Web and HTTP -> Security enable "Activate antispam funcitonality" the Form.Start in forms add a key in the onsubmit function - which I assume is used for something :) - Is there an easy way to get this k ...
Claus Kølbæk
19/11/2015 13:19:31
Last post: 20/11/2015 09:47:32