Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
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
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
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
Delay in Item values being pulled from the database.
Hi, I have some items which have drop down fields which simply get their values from database tables. Now there is a section in the site where the users update these values. When I update them, they do not appear in the Item field. I have to go in th ...
Yasharth Tahiliani
07/07/2015 12:11:46
Last post: 13/07/2015 13:11:46
ItemCreator - itemlist
Hi, I have one item (item A) with an itemlist containing other items (item B). Is it somehow possible, via ItemCreator, to create new instances of Item B in the itemlist on Item A? ...
Rene Poulsen
07/07/2015 15:14:12
Last post: 07/07/2015 17:04:48
template.TagExists & template.LoopExists
Hi guys, I just upgraded a project to the latest core and now a huge performance issue occurred. We used some template extenders in which we used template.TagExists and template.LoopExists to add tags or call functionalitity only when it is desired.  ...
Peter Leleulya
06/07/2015 14:08:48
Last post: 06/07/2015 15:27:34
login attempt fail - error message
Hi all, I am trying to use Extranet login. For now, if someone types in wrong username or password nothing happens. Does DW has a possibility to show this error message or we have to think of some sort of work-around? //Regards ...
Espen Thorvaldsen
07/06/2013 15:24:20
Last post: 06/07/2015 15:03:02
Email marketing Template
Hi guys, I am playing arround with Email marketing templates. And I have 2 questions: 1) In the email, I am getting "click here to unsubscribe" link. But that is not setted up in my markup, it comes from somwhere else, was wondereng where that place  ...
Dmitrij Jazel
01/07/2015 15:35:03
Last post: 01/07/2015 16:17:36
Get Item Page URL.
Hi, How may I get the Page URL in a Razor template? I use @GetValue("DwPageName") to get the Page Name. Just need to access the Page URL. Thanks & Regards, Yash. ...
Yasharth Tahiliani
29/06/2015 18:34:28
Last post: 29/06/2015 20:56:22
Dynamically setting value of a text box in Razor.
Hi, I have a Forms For Editors Form and I output the form fields using the following Razor markup: <div class="form-input required textarea"> <label for="enquiry">@GetString("Form.Field.Yourenquirycomments.Name")</label> <div cla ...
Yasharth Tahiliani
26/06/2015 18:22:20
Last post: 29/06/2015 14:14:19