Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
Topmenu navigation only works for active menu item
I am building a simple menu for a site: link The problem is with the menu. I need the menu to build a list of subpages for each page. This only works for the page with the ecommererce module. On the page "Om Exodraft" the list of subpages is only bui ...
Jim Trebbien
25/09/2014 13:37:57
Last post: 25/09/2014 14:24:32
Getimage in Dynamicweb 8.5 bug
Hi, I had hoped that the getimage handler in Dynamicweb 8.5 was fixed so that browsers can start caching images, but no - not fixed yet :-( Take a look at this "matrix": The two coloums each show response headers after requesting an image twice. That ...
Sten Hougaard
24/09/2014 13:38:39
Last post: 24/09/2014 16:27:36
Define amount of letters in text
Hi and sorry for spamming you with questions, while working with items and newsletter templates I have a question: Is there a tag to determing how many letters you wanna display from them the item/list. Example: I'm using an item for people to add co ...
Martin Kure
15/09/2014 11:52:35
Last post: 24/09/2014 14:17:41
Values from page item settings
Hello, How do I get values from my page item settings? I have tried with: Pageview.Page.Item and Pageview.Item But "Item" also seems to be null. I am using v.8.4.1.3 Best regards, Anders ...
Anders Ebdrup
24/09/2014 12:28:41
Last post: 24/09/2014 12:41:29
Cache old cookiewarnings
Hi, I have a problem building cookiewarnings in old DwStylesheets. I wrap external plugins, that add cookies in this conditional: <!--@If(Global:CookieOptInLevel = "All")--> ...Content... <!--@EndIf--> So these plugins are only displayed, ...
Martin Kure
19/09/2014 10:48:36
Last post: 22/09/2014 09:10:16
Global:CookieOptInLevel
Hi, I'm trying to set a cookie warning using the standard cookiewarningSEOsafe.html. However I'm only using the acceptAll button and not divide it into functional and tracking cookies. This part works fine. But in my template i'm not only using dynam ...
Martin Kure
15/09/2014 10:14:48
Last post: 17/09/2014 08:06:20
Razor:@Translate in 8.4.1.15
Hi, I have issues with @Translate tag when used inside a Razor block of code. Consider this: In translations.xml in root of "Templates" i have defined a key: mykey = 1 @{ // Using old fashion translate int anInt = <!--@Translate(mykey, "mykeyNotTr ...
Sten Hougaard
03/09/2014 12:54:32
Last post: 12/09/2014 13:31:33
Nested loops - Item Types
Hi all, I need to know if there is any way to list first level of items and inside that loop to list second level of items just by using the template associated to the Item List (in Item publisher). Basically it is very similar with building a menu b ...
Adrian Ursu
28/10/2013 13:14:55
Last post: 12/09/2014 12:40:11
Reuse dwcontent on same page
Hi, I have a question regarding dwcontent. I'm using this div-element with the dwcontent class: <div class="dwcontent hidden-xs" id="LeftColoumn" title="Venstre kolonne" data-settings="sort:4;"></div> And I want to reuse it on the same te ...
Martin Kure
04/09/2014 12:28:24
Last post: 04/09/2014 14:19:15
Add custom classes to dwnavigation
Hi, I'm creating a navigation using dwnavigation. I've added bootstrap to the site, so I wanna add some bootstrap classes to the <ul> within the navigation. However no classes are being added to the site: I have this code in my master.html: < ...
Martin Kure
02/09/2014 11:04:22
Last post: 03/09/2014 11:17:37
Create mailreceipt in the old form module
We have a customer with a lot of old forms in the old form module, is it posible to create a custom template from the form data? It looks like !--@FormOutput-- just dumps af table, with all field of the form. And the customer would like to specify wh ...
Michael Houmark
02/09/2014 12:40:14
Last post: 02/09/2014 22:33:09
Images in razor master template
Has created an item for website propeties, works fine execpt images/files. Getting the image with GetString: <img src="@GetString("Item.Area.NORRIQ_Logo")" width="156" height="58" alt="NORRIQ - Your business simplified" /> This gives me this, w ...
Heine Virenfeldt Kristensen
02/09/2014 12:42:47
Last post: 02/09/2014 13:35:42
Maps filter button dont work
Hi, I am trying to setup a map filter and I am using the default maps templates for the maps module. I have 2 groups attached (afdelinger, steder - both of these have subgroups with geolocations applied.) and they are being shown perfectly as buttons ...
Mikkel Toustrup Olsen
20/08/2014 11:34:29
Last post: 02/09/2014 13:32:35
Relative path
Hi, I'm making a new newsv2 list-template. In that template I'm including some javascript-files. However I can't set the relative path for it, and only by typing the absolute path is it possible to use the javascript files. So I need a bit of help to ...
Martin Kure
01/09/2014 09:33:43
Last post: 02/09/2014 12:22:48
Partial views
Hi all, I wonder if there is a way to use partial views with "Layouts & Design" approach and Razor in DW? Something like this: @RenderPartial("_partialView.cshtml") Thank you in advance. ...
Denys Ubizskyy
18/08/2014 10:37:00
Last post: 01/09/2014 09:20:02
Sidemenu links
So ive done a bit of testing with a new sidemenu intended for our website, so far ive found out you can extract properties dynamicly and even turn these into links like this. <a href="<!--@Global:Page.Top.Name-->">For Science!</a> W ...
Morten Berendtsen
29/08/2014 09:34:29
Last post: 29/08/2014 09:59:59
Global:Paragraph.Content in e-mail template
Hi! I'm trying to use the Global:Paragraph.Content tag in my e-mail template, but it doesn't render anything. I've tested the tag in a normal page template, which gives me the output, so I know the tag is working. Does this tag not work in e-mail tem ...
Martin Gammelholm
28/08/2014 08:39:41
Last post: 28/08/2014 10:03:57
Set user password, when creating user at the checkout
Hello DW guys, When in Cart-Information step, it is not possible to create new User at the checkout. in paragraph Cart module I have selected create new user at checkout. My question is, how can I assign a password for that user in Checkout informati ...
Dmitrij Jazel
20/02/2014 15:13:24
Last post: 20/08/2014 11:04:17
"If statements" not working in Variants
Hi, we are trying to use if statements in templates, but are not working or we are making wrong :) <!--@LoopStart(VariantCombinations)--> <No<!--@EndIf">!--@If(Ecom:Product.SelectedVariantComboID=Ecom:Product.VariantID)-->active<!-- ...
George Nelzo Pereira
19/08/2014 13:13:14
Last post: 19/08/2014 15:19:14
Forms for datalists - two input fields with password - how to check?
I need to make a form, where two of the fields has to be "insert wanted password" and "repeat wanted password" - and of course I would like to check if these to inputs are the same. Can someone give me an example of the javascript which I have to use ...
Lise T. Pedersen
27/06/2014 10:28:02
Last post: 18/08/2014 14:39:22