Developer forum
Subject
                    Replies
                    Started by
                    Last reply
                
                                                        Paragraph template @GetItemObject(
                                  
                                        
                                            
                                        
                                
                            
                        Hi guys, I am trying to get an instance of my item that is saved as "item type" property on paragraph item. While I am in the paragraph template, you can call methods like @GetString("Item.stringvalue") or @GetInteger("item.intvalue") etc... But if I ...
                        
                            Dmitrij Jazel
                            
                        
                        23/09/2015 09:33:04
                        
                                    Last post: 25/09/2015 17:26:08
                                
                        
                                
                                    
                                
                                                        Output Custom Field
                                  
                                        
                                            
                                        
                                
                            
                        Hi,
In the User Management I have added a Custom Field named Test and as type Text.
In my Maps module I would like to output the value of that field. Assume I have added the values:
Name: John
Test: Testvalue The code: @foreach (LoopItem i in GetLoop ...
                        
                            Morten Lund
                            
                        
                        01/09/2015 10:50:41
                        
                                    Last post: 23/09/2015 03:37:59
                                
                        
                                                        Dynamicweb.Content.Paragraph - Get itemlist
                                  
                                        
                                            
                                        
                                
                            
                        Hi guys, am a bit surprised, but it's a bit tricky. What I have so far is a paragraph object: var p_list= Dynamicweb.Content.Paragraph.GetParagraphsByPageID(123); foreach(var p in p_list ){ <p>@p.ID</p> // add snipet here } What I needt t ...
                        
                            Dmitrij Jazel
                            
                        
                        08/09/2015 14:52:10
                        
                                    Last post: 18/09/2015 16:01:34
                                
                        
                                
                                    
                                
                                                        HTML Template : if startswith space
                                  
                                        
                                            
                                        
                                
                            
                        Hello, At some point in my code I must test for the content of a custom user field. This field comes directly from the data integration and contains either a real value, or just spaces. I haven't found a way to trim it on import in the job. However i ...
                        
                            Gaetan Di Caro
                            
                        
                        18/09/2015 12:28:47
                        
                                    Last post: 18/09/2015 13:56:56
                                
                        
                                
                                    
                                
                                                        Multi-step forms
                                  
                                        
                                            
                                        
                                
                            
                        Is it possible to make multi-step or wizard-like forms using "Forms for Editors" or do I have to make my own hard-coded? ...
                        
                            Kurt Moskjær Andersen
                            
                        
                        13/09/2015 15:19:46
                        
                                    Last post: 15/09/2015 16:03:26
                                
                        
                                
                                    
                                
                                                        Forms for editors and itemlists
                                  
                                        
                                            
                                        
                                
                            
                        Is it possible to use itemlists in forms for editors, in order to let the customer select an item from a populated list? ...
                        
                            Kurt Moskjær Andersen
                            
                        
                        10/09/2015 10:44:22
                        
                                    Last post: 10/09/2015 13:10:52
                                
                        
                                
                                    
                                
                                                        @Include svg
                                  
                                        
                                            
                                        
                                
                            
                        Hi, I've created an item where I have to choose an icon. The icon is a svg file and instead of just using it in an img tag, I want to have the svg inline. I tried using like this: @{ string icon = GetString("Item.Icon") } @Include("@icon"). This is n ...
                        
                            René Poulsen
                            
                        
                        31/08/2015 11:33:40
                        
                                    Last post: 04/09/2015 11:31:42
                                
                        
                                                        Items - how to output selected checkboxes
                                  
                                        
                                            
                                        
                                
                            
                        Haven't worked much with items yet, and have a question: I have some products, created as items. Each product is available in different colours, which has to be shown with both the name and an icon. At first I created a Checkbox List with ALL colours ...
                        
                            Lise T. Pedersen
                            
                        
                        03/09/2015 11:18:08
                        
                                    Last post: 03/09/2015 13:32:26
                                
                        
                                
                                    
                                
                                                        DW autologin with Ajax-Json 
                                  
                                        
                                            
                                        
                                
                            
                        Hi guys, I have a login form, that works great. And there I am using this line: <input name="DWExtranetUsernameRemember" type="hidden" value="True"> <input name="DWExtranetPasswordRemember" type="hidden" value="True"> <input name="Auto ...
                        
                            Dmitrij Jazel
                            
                        
                        27/08/2015 14:27:47
                        
                                    Last post: 03/09/2015 12:10:37
                                
                         13
                                    
                                         Unsubscribe
                                    
                        
                                                        Razor: Include file from ancestor folder
                                  
                                        
                                            
                                        
                                
                            
                        Hi DW, I'm trying to nest includes in a Razor file, but i cannot get it to work properly. My desired include order: eCom/Products/product.cshtml Include: "eCom/Products/includes/product-related-products.cshtml", Tag: @Include("includes/product-relate ...
                        
                            Martin Nielsen
                            
                        
                        05/12/2014 13:01:06
                        
                                    Last post: 03/09/2015 11:10:50
                                
                         22
                                    
                                         Unsubscribe
                                    
                        
                                                        Using Tag Extension Replace
                                  
                                        
                                            
                                        
                                
                            
                        Hi, Someone know how to use the tag extension href tag ?
Like in this code below the first (href) is not working... the second (div) is working... <a class="EcomProductLink" href="/Default.aspx?ID=<!--@Item.Area.HupxSetup_ProductDetail_PageID-- ...
                        
                            George Nelzo Pereira
                            
                        
                        01/09/2015 19:10:08
                        
                                    No replies yet
                                
                        
                                                        Getting label of Item type generated list
                                  
                                        
                                            
                                        
                                
                            
                        I have created an item type, with a item type generated list as one of its fields. I have selected the fields to be used for label and value in the list, but I cannot output the label in my template, when I use @item.GetValue("ItemPublisher:Item.Forh ...
                        
                            Kurt Moskjær Andersen
                            
                        
                        28/08/2015 11:10:00
                        
                                    Last post: 01/09/2015 14:01:58
                                
                        
                                                        Timezone of Order datetime
                                  
                                        
                                            
                                        
                                
                            
                        HI, As requested by the users, I've added this line @GetValue("Ecom:Order.Date") in notification email template and order datetime is displayed in the email. Users are now requesting the datetime to be sent in (-6hrs CET) timezone. Kindly help me how ...
                        
                            Thaw Htun Lynn
                            
                        
                        21/08/2015 05:23:45
                        
                                    Last post: 21/08/2015 12:03:08
                                
                        
                                                        Generate random unique identifier (max 5 chars)
                                  
                                        
                                            
                                        
                                
                            
                        Hey guys, Is there a way to generate a random unique identifier of a max of 5 chars (maybe 6), similar to a voucher code, by using some built in DW functionality? Strings and ints or just strings or just ints it really doesn't matter Thanks! ...
                        
                            Adrian Ursu
                            
                        
                        18/08/2015 16:28:19
                        
                                    Last post: 19/08/2015 10:17:40
                                
                        
                                
                                    
                                
                                                        Showing active variants
                                  
                                        
                                            
                                        
                                
                            
                        Hi I've run into a bit of a problem. I can only get ALL variants to show, even though, i've deactivated some of them in the backend. Not all products will have the same variant options. <!--@LoopStart(VariantGroups)--> <select id="SelectVari ...
                        
                            Dennis Jacobsen
                            
                        
                        26/06/2014 09:14:01
                        
                                    Last post: 13/08/2015 10:22:31
                                
                        
                                                        SearchFriendlyUrl for hreflang
                                  
                                        
                                            
                                        
                                
                            
                        Hi, We've got a website with several different language versions. In the header I would like to create "hreflangs" for each language version of the current page. Let's say i have a page on the english site with this URL: http://mynewbikeshop.com/bike ...
                        
                            René Poulsen
                            
                        
                        11/08/2015 08:44:53
                        
                                    Last post: 12/08/2015 14:09:22
                                
                        
                                                        Navigation from another Area
                                  
                                        
                                            
                                        
                                
                            
                        Hello guys, Is there any way to list the navigation from another Area than the current one? For example, I am in Area2 and I want to list also the navigation from Area1. I am ok with any option: razor or xslt. Thanks, Adrian ...
                        
                            Adrian Ursu
                            
                        
                        11/08/2015 15:56:47
                        
                                    Last post: 11/08/2015 16:27:46
                                
                        
                                                        Validation of date-field
                                  
                                        
                                            
                                        
                                
                            
                        Again, i'm struggling with validation for a form, using Forms for Datalists... I have this form with a "date from" and "date to" field. But how do I validate, that the dates is changed to something else than todays' date, before the form can be submi ...
                        
                            Lise T. Pedersen
                            
                        
                        06/08/2015 13:11:38
                        
                                    Last post: 10/08/2015 13:49:56
                                
                        
                                
                                    
                                
                                                        Razor: Global:Pageview.Url.Raw.JSEncoded()
                                  
                                        
                                            
                                        
                                
                            
                        Hi, In the old html templates, we had this tag <!--@Global:Pageview.Url.Raw.JSEncoded()-->. How do I access this in razor? - Or anything that gives a similar value. Thanks! - Mikkel ...
                        
                            Mikkel Ulstrup
                            
                        
                        04/08/2015 09:08:11
                        
                                    Last post: 06/08/2015 16:24:50
                                
                        
                                                        Global:Paragraph.Content([ID]) not working in Confirmation template 
                                  
                                        
                                            
                                        
                                
                            
                        Hi, I have one datalist in one paragraph then I'm trying using the tag: Global:Paragraph.Content([ID]) to include the paragraph in one Form Confirmation Template, but is not bringing anything... Someone know if this tag Global:Paragraph.Content([ID]) ...
                        
                            George Nelzo Pereira
                            
                        
                        22/07/2015 18:47:33
                        
                                    Last post: 06/08/2015 11:32:59