Developer forum
Subject
Replies
Started by
Last reply
Getting data from parent page
Lets say I have a structure looking like this. Main website Subsite 1 Subpage 1 Subpage 2 Subpage 3 Subsite 2 Subpage 1 Subpage 2 Subpage 3 Subsite 3 Subpage 1 Subpage 2 Subpage 3 How do I, on each Subpage, get some data from their parent Subsite ? L ...
Sebastian Dammark
02/01/2015 01:35:45
Last post: 03/02/2015 23:07:27
Get page view by page ID
If you are having problems with the GetPageviewByPageID method (Dynamicweb.Frontend.PageView.GetPageviewByPageID( somepageid ).Output() it's because the <head> tag conflics with the excisting <head> on the current page. So how can we extr ...
Jakob Westhausen
29/01/2015 13:04:30
Last post: 03/02/2015 19:52:41
Maps reset button
Hi, Our customer Gram would like a reset button on their dealer map:
http://gram.dk/Default.aspx?ID=127
(Remember to login to admin) Would it be possible to reset the map also to it's original zoom level?
Right now, it just resets the input field. BR ...
Martin Gammelholm
29/01/2015 11:49:34
Last post: 03/02/2015 09:13:01
Product AddToFavorites Question
Hej guys, In product catalog, when you are listing all products, you fo through loop, of products "var p" so you can generate "Add ToFavorites" url by calling this: string addToFavorites = p.GetString("Ecom:Product.AddToFavorites") Now, what if you a ...
Dmitrij Jazel
30/01/2015 14:55:19
Last post: 02/02/2015 10:36:38
looping through a folder using razor
Hi, I'm trying to build a gallery using items and razor. I have created an item, which so far only contains one field of the type "folder". The idea is to grab the folder-name and then somehow loop through the images within the specified folder. The ...
Martin Kure
27/01/2015 15:23:28
Last post: 28/01/2015 13:13:03
Check if product have quantity discount
How is it possible to see if a product have more than one price defined? (if any prices are defined in the "prices" tab on the product) [edit] I am aware of the <!--@Ecom:Product.PriceCount--> tag, but this seems to give a value of 0 or 1. It s ...
Jim Trebbien
24/10/2014 13:06:26
Last post: 26/01/2015 01:56:20
Razor Redirect Frindly URL
Hi, Creating a redirect in razor, how could we generate/get the FriendlyURL for a given page? Nuno ...
Nuno Aguiar
22/04/2014 13:41:29
Last post: 20/01/2015 16:35:21
CategoryField template tag Razor
How do i utilize the CategoryField template tag in Razor templates? Serializing the product loopitem shows me that it does not exist in the variable scope - although it is availabe per. the documentation ( http://templates.dynamicweb.com/eCommerce/Dy ...
Jonas Mersholm
16/01/2015 13:38:57
Last post: 19/01/2015 08:38:14
Usermanagement - Get Subgroups
Hello all, I have a contact form on my frontpage where the user is able to search for a specific employee. I have a main group(places) and below that x amount of subgroups(departments) which contains their respective employees. However, on my search ...
Mikkel Toustrup Olsen
06/01/2015 12:34:15
Last post: 16/01/2015 15:38:08
Razor - check if image exists
Hi Whats the best way to check if an image exists on a given path with razor? /Rune ...
Rune Skovbo
16/01/2015 14:51:11
Last post: 16/01/2015 15:34:51
Razor removes quotes
Hi DW, I have an issue with a custom modules containing a rich text editor. The value are set on the template in the module with: template.SetTag("AbArticle2", Properties.Values["AbArticle2"].ToString()); And I am outputting the values in my template ...
Anders Ebdrup
14/01/2015 12:31:12
Last post: 14/01/2015 14:15:45
Tag suggestions
Would these tags be a good addition to the template tags: Ancestor(Item.WhateverName) AncestorOrSelf(Item.WhateverName) Descendant(Item.WhateverName) DescendantOrSelf(Item.WhateverName) Parent(Item.WhateverName) // Sebastian ...
Sebastian Dammark
09/01/2015 19:46:47
Last post: 14/01/2015 12:08:33
DW forms: ID of entry in email receipt
Hi How do I get the ID of an entry in the forms module into the email receipt? Every entry is of course assigned a unique id, but as far as I can see it is not available in the template. What I need is a tag like this: <!--@Form.Fields.myForm_ID.V ...
Martin Orvad
11/10/2011 11:07:31
Last post: 13/01/2015 13:50:42
16
Unsubscribe
Maps module - multiple locations on same address
Hello all, I am using the maps module to show different locations on my map and I am also using the cluster settings in order for the user to see clustered locations when zoomed out. However I have multiple companies on the same location - therefore ...
Mikkel Toustrup Olsen
07/01/2015 16:54:02
Last post: 13/01/2015 13:45:01
Razor generate encrypted user password
Hi, How can we generate an MD5 encrypted password to update a password in Razor? I now we need to append "DwSecret" to the password, right? Nuno ...
Nuno Aguiar
22/04/2014 15:06:19
Last post: 05/01/2015 11:54:18
Server:Request.ajax: in Razor
Hej Guys, I was wondering how do you do something like this in Razor? <!--@If Defined(Server:Request.ajax)--> <xml>XML content here</xml> <!--@EndIf(Server:Request.ajax)--> <!--@If Not Defined(Server:Request.ajax)--> < ...
Dmitrij Jazel
02/01/2015 14:53:30
Last post: 05/01/2015 09:33:08
Produkt Variants
I have som products with product variants. Now, I want to use a product variant as a related product to another product. Is this possible? ...
Jim Trebbien
19/11/2014 14:01:12
Last post: 23/12/2014 14:04:19
Razor paragraph item loop
Hi all I don't know if this is a stupid question of if it is even possible. I have searched the forums, looked at the documentation and looked at the examplefiles on GitHub, but can't seem to find anything about it. What I want to do is to loop throu ...
Michael Nielsen
18/12/2014 13:24:28
Last post: 19/12/2014 12:47:36
Global page content - Missing layout
How come when I use <!--@Global:Page.Content([ID])--> or @RenderPageContent([ID]) only the paragraphs is outputtet and the page template mark-up is missing? ...
Jakob Westhausen
09/12/2014 08:51:08
Last post: 12/12/2014 14:16:31
17
Unsubscribe
GetString from string with concat variable
Hi guys, There is any limitation to get a field with GetValue/GetString from a variable? e.g: for(var i = 1; i <= 10; i++){ string test = "Ecom:Product.Image."+@i+".Clean"; @GetString(test) } I also tried: @GetString(string.Format("Ecom:Product.Im ...
António Ramos
09/12/2014 17:03:58
Last post: 10/12/2014 11:06:06