Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
Razor global paragraph tag
Hi, I have converted html page template to Razor and got problems with global paragraph tags. Previously it looked like: <!--@Global:Paragraph.Content(12345)--> but Razor changed it to: @GetValue("Global:Paragraph.Content(12345)") and ...
Denys Ubizskyy
04/07/2013 12:32:14
Last post: 09/04/2015 15:01:51
More than one language - Translate
Hi, Iit's possible to have a specific translate in one page? I'm mean to have a website with two or more languages, but in one specific page should have a different translate over the website? Like we have one website where the client can choose the  ...
George Nelzo Pereira
07/04/2015 13:06:51
Last post: 08/04/2015 14:33:50
WRAP for Dynamicweb: Error when loading website settings
After setting up a local copy of the wrap demo solution, I get this error straight away, when I try to edit website settings: http://screencast.com/t/57u1Pzgf8 How can I fix this? ...
Bjarne Rosendal
30/03/2015 11:54:34
Last post: 31/03/2015 11:26:57
Standard templates for the new Forms module?
Hello Dynamicweb Is it possible to obtain some standard form/email templates for the new Forms for Editors module? As I understand, the module is now out of the beta stage with the 8.6.1 release, but there where no templates included in this distribu ...
Bjarne Rosendal
30/03/2015 11:12:00
Last post: 31/03/2015 11:22:32
Access to Ecom properties from a paragraph
Hi all, I have a site running with a shop. In the master.html of the site, I've included a global.paragraph written in razor. The paragraph is just an extra cart of sort, displaying product price etc. I have included the paragraph, because it's writt ...
Martin Kure
27/03/2015 10:21:22
Last post: 30/03/2015 14:36:52
using dynamicweb html-tags within attributes
Hi, I'm using a dynamicweb html-tag within an attribute, but it seems to be rendered as part of the string, which means I'm not getting any data: <ul class="dwnavigation nav navbar-nav navbar-right" id="navbar" settings="startlevel:1;endlevel:7;te ...
Martin Kure
30/03/2015 12:49:42
Last post: 30/03/2015 14:34:03
If statements in product detail
Hi, I have two groups of users each one with some users... Like: GroupA - 260 - UserA GroupB - 261 - UserB Then I have a product details to show the prices just for people are in this user group 260, should be not show for anonymous and for others gr ...
George Nelzo Pereira
27/03/2015 12:57:35
Last post: 27/03/2015 15:15:00
News:Manchet AND News:FirstXChar in the same template - at the same time
As standard, you can choose to show either the manchet or the first xx characters in a newslist (News V2) - is there an easy way to force the template to show BOTH the manchet and the først eg. 100 characters, no matter which preferences has been cho ...
Lise T. Pedersen
24/03/2015 12:07:44
Last post: 27/03/2015 14:49:10
Cookie manager templates
Hi, Did I made a mistake or is it true that the cookie manager is not using the templates from the design folder ? It seems it is only watching the /Template/CookieManager and not /Templates/Designs/{DesignName}/CookieManager. Kind regards, Ben ...
Ben Doorn
26/03/2015 14:07:01
Last post: 26/03/2015 15:02:32
combining razor and dynamicweb html tags
Hi all, I have an old html-file, that contains several html-dynamicweb-tags like: <!--@ContentPlaceholder--> , <!--@Include()-->, etc. Recently I wanted to add some razor-code to that file. I don't know if it's possible, but have checked, ...
Martin Kure
26/03/2015 11:16:11
Last post: 26/03/2015 12:07:29
Item creator with item list
Hi there We need to build a returns form for our customer, and I was thinking of using an item creator for it. Besides normal customer information, we also need to post product details for x amount of products. Therefor I was thinking of using an ite ...
Rune Skovbo
25/03/2015 10:02:08
Last post: 25/03/2015 10:45:30
Overriding meta data on certain pages
Hi, how would we work around changing the meta data on only certain pages? Ive tried data-settings="disableparsing:true" and then using a snippet, but the problem is that i cannot set a default that way, therefor we have to set the datas in every lay ...
Jonas Mersholm
18/03/2015 15:49:21
Last post: 19/03/2015 12:56:55
Razor image metadata title
When working with a gallery, you can use this tag <!--@Gallery.Image.Metadata.title--> to retrieve the metadata, added to the image. But is there a way you can retrieve the same data from an item, that loops through the content of a folder. I w ...
Martin Kure
17/03/2015 10:36:01
Last post: 17/03/2015 14:09:48
Content only allowed to certain groups...
I have some products with some datasheets shown for each product. If you log in, you get acces to some more specific datasheets. And now to the problem. I now have two different groups, if logged in from one group, you may also see a pricelist (as pd ...
Lise T. Pedersen
16/03/2015 14:47:04
Last post: 17/03/2015 11:38:52
Get list of product categories in razor template
Hi How can I receive an array with all product categories in a razor template? I need the product categories in the right order, and with category level - 1 for main category, 2 for subcategory etc... I just need the same output as displayed in the m ...
Kasper Birk Nielsen
06/01/2014 11:31:03
Last post: 16/03/2015 12:56:36
Global:Request.Host in Razor
Hi, I do not seem to be able to find information about how to retrieve Global tags in Razor. So for now, could someone please share information about a way to retrieve general useful information perhaps using standard .NET code? I mean it should be p ...
Sten Hougaard
02/12/2013 14:31:16
Last post: 13/03/2015 19:21:26
Split test directly in template
Can't remember the notation for doing a split test directly in the template and can't find it by searching the forum, manual or template site... Looking for the IF where you can check if it's an original or variant session. Anyone that can help me ou ...
Asger Munkholm Højfeldt
12/03/2015 11:11:08
Last post: 12/03/2015 13:41:57
Translate
Hi all, I'm trying to use the translate method. I've added the translations.xml to my design-folder. In the translations.xml I'm using this part: <key name="NewsletterEmail"> <translation culture="de-DE"><![CDATA[E-mail]]></trans ...
Martin Kure
12/03/2015 11:43:03
Last post: 12/03/2015 12:16:19
Can you test if snippet is empty?
This way: @if( if snippet isn't empty ){ @RenderSnippet("snippet") } else { <p>Do something else</p> } ...
Gitte Simonsen
10/03/2015 14:55:19
Last post: 10/03/2015 15:56:04
XSLT navigation - parents, descendants, siblings
Hi guys. I am relatively new to XSLT, and I am trying to create a navigation that shows the next article in a menu (should traverse all items). I have the following site structure: Blog -- Video 01 -- Video 02 -- Video 03 -- Article 01 -- Article 02  ...
Bogdan Ciocsan
03/03/2015 10:06:31
Last post: 09/03/2015 14:54:45