Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
Query publisher - indexing item based pages - how can i render something other than MenuText
I am setting up. a search that uses the new index to index item based pages, along with itembased and regular pages with item based paragraphs on them. Using the querypublisher, i loop throug the search results using a freetext parameter, and I do ge ...
Hans Ravnsfjall
31/05/2017 20:24:06
Last post: 01/06/2017 15:38:08
TAG Global:Paragraph.Content
Hi... I have one structure like this: 1.Home 1.PageA 1._includes (Paragraph1, Paragraph2, Paragraph3) In the PageA I have one template with one include like this <!--@Global:Paragraph.Content(Paragraph1)--> Its working fine... But if I have ins ...
George Nelzo Pereira
30/05/2017 13:31:27
Last post: 31/05/2017 15:03:51
Add to Cart - Redirect=false
Hi, We are trying to add a product to cart through ajax, but the system normally redirects to the product page. I now we can set the Redirect parameter to redirect the user directly to the cart (for example), but we want to add to cart in AJAX, and u ...
Nuno Aguiar
25/07/2014 12:21:17
Last post: 31/05/2017 10:44:38
How to retrieve Metatags set on image
Hi DW. Like the title says, how do I retrieve Metatags set on images? I found a tag that I could use if I am on a Product page: @GetString("Ecom:Product.Imagepackshot.Metadata.Alt") - In my product catalog I am using alt. images where my prefix is pa ...
Christian Hansen Nørgaard
29/05/2017 11:03:54
Last post: 30/05/2017 12:01:04
Klarna "remember me" option, administered by Klarna
Hi Guys, Today customer contacted me, and asked if they can have this: https://www.screencast.com/t/NNchMA3hc They are saying it's part of "standard opset" but I am not sure if that is true or not? If it is, then I guess this shoiuld have been as par ...
Dimitrij Jazel
22/05/2017 10:32:37
Last post: 22/05/2017 10:54:47
CustomerCenter.ListTypes.Lists does not render lists
Hi, I have a bit of a strange problem with this tag: GetLoop("CustomerCenter.ListTypes.Lists") I am logged in with a user that has a number of favouritelists. But the tag does not contain any lists unless I also have "TemplateTags" in the tempate. Wi ...
Aki Ruuskanen
28/04/2017 09:34:25
Last post: 18/05/2017 16:16:14
WCAG 2.0 Templates
Has anyone out there developed a WCAG 2.0 compliant site? We have a potential customer that has these requirement and would like to know if there are templates that comply to WCAG 2.0. https://www.w3.org/WAI/WCAG20/quickref/ ...
Grant Menzies
18/05/2017 09:47:06
No replies yet
Get applied price ValidTo
Hi, I have a product with a discount campaign which has to end on a certain date. The discount is applied correctly but I would like my customer to see on the product page when the campaign ends. The loop Product.Prices contains this information on t ...
Gaëtan Di Caro
17/05/2017 11:04:41
No replies yet
Products added to cart
Hi, How can see what products have been added to the cart when posting with the "CartCmd:add" and "CartCmd:addmulti"? All I can find is some "LastAddedProduct"-tags, but those exists even if the product is not added to the cart (if not enough in stoc ...
Mikkel Ulstrup
07/05/2017 19:38:35
Last post: 10/05/2017 22:14:06
VariantCombinations loop v. 8.6.1.25 vs. 8.9.1.7
Hi, I'm working with eCom and variants on a v. 8.6.1.25 solution. On that one I can use the VariantCombinations loop to get the variants of the product. Inside it I can easily get the URL for the variant by using the Ecom:VariantCombination.Link.Clea ...
René Poulsen
10/05/2017 09:00:50
Last post: 10/05/2017 10:16:26
Get instagram images in Razor templates?
Hi guys, might be a stupid question... But has any of you managed to pull in images from a specific Instagram user into a Razor-template? I just need to pull in the 9 latest images from an Instagram account, but so much js-crap laying around online t ...
Jacob Storgaard Jensen
02/05/2017 09:32:32
Last post: 02/05/2017 20:49:56
Item publisher, List items of already ItemPublisher:Items.List listed item
Hej guys, I have a 3 level structure of Item pages in my site navigation Every Level page is it's own Item type. 1) News 2) Group 3) Article News News_Group1 Article1 Article2 Article3 News_Group2 Article1 Article2 When I am at News page, I want to h ...
Dmitrij Jazel
23/09/2014 15:31:47
Last post: 24/04/2017 21:11:17
PageTemplateExtender to use with "IF Statements"
Hi, I have one PageTemplateExtender with some Tags... this tags are printing normally. If I use in one template (DataList) is printing but if I use the "IF Statements" to check is not working... But If I use the "IF Statements" in Master template tha ...
George Nelzo Pereira
20/04/2017 15:36:16
Last post: 24/04/2017 16:56:47
eCommerce subgroup sorting (not navigation sorting)
Hi, I've got a pretty simple group structure in eCom, but making it work in frontend is quite hard... Group1 Subgroup1 Subgroup2 Group2 Subgroup3 Sugrroup4 Important! No groups will ever be present more that one place in this structure! In the fronte ...
Jacob Storgaard Jensen
03/04/2017 22:55:43
Last post: 07/04/2017 11:24:45
Any security issues using GetFiles(); on eCom product?
Hi guys, I'm planning on using this code to loop out product related files on a ecom product template - is there any security issues using GetFiles that way? @using System.Web; @using System.IO; @using System.Linq; @{ var productNumber = ""; productN ...
Jacob Storgaard Jensen
03/04/2017 10:37:59
Last post: 03/04/2017 22:01:41
update variant number
I have a custom code for inserting products/variants and I have issues when I want to edit variant information (in my case productnumber). This is what I tried and it didn’t work. var var = new VariantCombination(); var.ProductID = dwProduct.ID ...
Davor Zlotrg
20/03/2017 20:38:57
Last post: 23/03/2017 13:11:10
Add hash token to filepath of css/js files?
Hi, Is there a way to add a token/MD5 hash string to a css/js files path? I know that the ControlResourcesHandler.ashx does it if resource files are registered dynamically - no clue why it doesn't when they are just hardcoded in the filelist!?... ...
Jacob Storgaard Jensen
14/03/2017 15:33:53
Last post: 15/03/2017 14:22:43
Enhancing performance in cshtml
Hi all, As I was building a new site for one of our customers in Dynamicweb9 I experienced that the page was quite slow at loading the first time. I narrowed it down to the compilation of the cshtml file, so the performance was as expected when reloa ...
Søren Heide Larsen
14/03/2017 21:10:33
No replies yet
RenderParagraphContent with DW9 ViewModels
Starting to use the new ViewModels, and have some Page Templates where @RenderParagraphContent() is use. Is there something simular in the new PageViewModel in DW9? ...
Heine Virenfeldt Kristensen
03/03/2017 12:36:05
Last post: 12/03/2017 00:26:05
Razor template for a calendar
Hi guys I'm very new to Razor templates. I got a event booking site that needs an event calendar sorted by month. The events are made with items and display with the itempublisher (it's a DW9 solution). The hierarchy/loop would look like this (see im ...
Jens Mouritzen
06/03/2017 20:43:45
Last post: 09/03/2017 13:59:24