Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
Test if multiple loops is defined
Hi Dw, Is it possible to test if one or more of multiple loops is defined? Say <div class="related-products row"> <!--@LoopStart(Related.AssociatedProducts)--> <!--@HeaderStart--> <div class="associated-products co ...
Anders Ebdrup
05/12/2013 22:10:08
Last post: 06/12/2013 12:46:36
Issue with multiple site same page URL
Hello Guys, I recently bumped into an issue some of you might had before. On one same DW instance, I have 2 websites, they both are using same culture, their domain names are different. So when Both of them have a page with the name "Nyheder&quo ...
Dmitrij Jazel
06/12/2013 09:44:48
Last post: 06/12/2013 10:07:03
if statement - compare dw-tag with customfield
Hi, I'd like to compare two variables - to see if Global:Extranet.Groups contains a custom-field value. Like this: <!--@If Not(Global:Extranet.Groups<contains>Ecom:Product:Field.HideForGroup.Value.Clean)--> Do not show for group 300. < ...
Filip Lundby
05/12/2013 15:38:11
Last post: 05/12/2013 16:28:53
Is it possible to count Paragraph inside a content area?
I need to be able to count the items in my bootstrap carousel so I can make the indicators. I reuse the soultionset so my slider items is made with items. Any suggestions? <ol class="carousel-indicators"> <li data-target="#car ...
Kim Søjborg Pedersen
05/12/2013 10:40:42
Last post: 05/12/2013 15:51:04
Getting item field data from top page on subpages?
Hi guys, I have extended my page properties with an item field: Item.Page.LongMenuText I would like to fill in this field on my top level pages, and access it on my subpages. I would like it inside my navigation UL, and has managed to move it there w ...
Jacob Storgaard Jensen
03/12/2013 18:08:03
Last post: 03/12/2013 18:55:44
Display file in browser
Hi guys, How do I display a file in the browser - e.g. <a href="/files/products/datasheet.pdf" target="_blank">datasheet</a> But still would like the tracking from the "/admin/public/Download.aspx"? If I am u ...
Anders Ebdrup
20/11/2013 20:56:38
Last post: 21/11/2013 10:25:34
FancyBox refuse to work if using /admin/public/Getimage.ashx?
Hej Guys, I just runned into a problem here, I am trying to use: /admin/public/GetImage.ashx? to render and display some ".tif" images located in the files. Normally if I call fancybox it runs with direct link to an .png image for example.. ...
Dmitrij Jazel
20/11/2013 15:20:59
Last post: 21/11/2013 10:18:56
After updating to 8.3.1.1 the logic for "If Not LoopDefined" stopped working
Hi DW, After update a solution to 8.3.1.1, the tags for testing if a loop is defined, stopped working. I have a template like this: <!--@If LoopDefined(ProductRelatedGroups)--> LOOP IS DEFINED <!--@EndIf(ProductRelatedGroups)--> <!--@I ...
Martin Nielsen
14/11/2013 10:34:01
Last post: 15/11/2013 08:49:33
Display products in menus
I've got a requirement to display products within my left navigation. The Nav should ideally look something like this: Product group 1 Sub group Product Product Sub group Product Product group 2 Sub group Product I know how to display the product gro ...
Alec Stubbs
17/04/2012 11:07:12
Last post: 14/11/2013 19:30:46
Cannot use razor template for "Search filters"
I can not use razor template for "Search filters"? It might already work but i can not select a cshtml template from the dropdown. ...
Remi Muller
13/11/2013 11:51:09
Last post: 14/11/2013 12:18:18
UserManagement list template LoopStart(AllUsers) with user groups
UserManagement list template LoopStart(AllUsers) with user groups. Can i iterate the related extranet groups the for each user in the list template? I do not see a template loop for this. It only works on the user detail template. ...
Remi Muller
06/11/2013 13:15:46
Last post: 11/11/2013 12:52:32
Include xslt/cshtml in item types
I have an item type that uses a html template to render its properties/fields. I need to include a xslt or razor template to render out fields of its child node which is also an item type. I'm using the Include statement to do this. <!--@Include(  ...
Tómas Thorvardarson
11/11/2013 12:31:53
Last post: 11/11/2013 12:40:55
Using DW tags in XSLT
How can I use DW tags in an XSLT, like <!--@DwTemplateTags--> Thanks ...
Ton Martens
01/11/2013 15:02:40
Last post: 01/11/2013 15:28:35
Information in the Item paragraph is not saved.
Hello guys, I have a problem here... I have yet basic paragraph item setup, and paragraph template. For some reason when I am trying to save something in new paragraph (created via paragraph item) the data is not being saved. No error message or noth ...
Dmitrij Jazel
30/10/2013 12:32:19
Last post: 31/10/2013 10:01:51
Ecom group number in XML
Hi, I want to display images in my menu based on the group number, but I can't seem to get the number out in my XSLT. Testing with: <textarea> <xsl:copy-of select="." /> </textarea> Any clues? Attaching the XSLT. BR Martin ...
Martin Gammelholm
28/10/2013 13:58:30
Last post: 29/10/2013 14:32:11
Number of paragraphs
Hi Does anybody know a way to either get or with razor calculate the number of paragraph or items in a dwcontent div? I would like to use the same template on all paragraphs whether there is 1, 2 or 3 in the section eg. if 3 paragraphs use span4, if  ...
Thomas Schroll
23/10/2013 09:57:57
Last post: 28/10/2013 16:50:20
Newslist with numbering
Is it possible to create a list of news and let the list-template generate an automatic numbering/counting of the news-items/rows in the list? It's not the single news-item, which has a number - only the items' actual number in the list, i am interes ...
Lise T. Pedersen
24/10/2013 16:09:45
Last post: 24/10/2013 20:46:36
Area Item and ItemPublisher
Hi I'm using the Area Items to show a footer on a solution (like solution set) and I'm trying to use the Item based news module. When I use Itempublisher to show the news item the area item fields are not available. Is there something I can do to als ...
Thomas Schroll
19/10/2013 12:10:55
Last post: 24/10/2013 12:44:11
Template tag translation bug
Is this a known bug? http://www.youtube.com/watch?v=PwSAOebJ4sk ...
Peter Munkholm
21/10/2013 16:14:33
Last post: 22/10/2013 10:25:53
template includes are not changing
Hello DW guys, I have 1 small annoying problem here, was thinking if there is anything I could do about it. I am using includes in the templates, html and razor ones... and the same problem appears in both. How it works now - After I change the inclu ...
Dmitrij Jazel
18/10/2013 15:04:27
Last post: 18/10/2013 15:57:11