Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
Is there a way to render a breadcrumb using the navigation viewmodel?
Is there a way to render a breadcrumb using the navigation viewmodel as described in https://doc.dynamicweb.com/template-tags/introduction/concept/viewmodels#sideNavTitle1-5 ? I noticed an expandmode "PathOnly" is available in the NavigationSettings, ...
Peter Leleulya
06/05/2020 08:42:22
Last post: 06/05/2020 10:10:53
Content search Page Properties
Hello, Is it possible to do a content search on custom page property item field? We have page property where you choose a top image for a given page and our client wants to be able to search that image and for it to be visible in the search list. Rig ...
Roop K. Rusbjerg
29/04/2020 10:14:48
Last post: 30/04/2020 09:38:05
GetImage ashx and html
Hello, Has anyone experienced issues with the GetImage.ashx in html files? It seems work better with cshtml. Or is there another trick for it to work? I'm having issues with images not showing in safari on iphones, when using GetImage.ashx in html fi ...
Roop K. Rusbjerg
20/04/2020 10:57:27
Last post: 20/04/2020 14:46:21
Implementering VIsual Editor on a Mac Development environment
Hi I am developing on a Mac running Mac OS. I mostly use VS Code, but also Visual Studio for Mac. As far as i know, it is not possible to develop using ViewModels in Dynamicweb on a Mac Environment as of yet? Does this mean that I won´t be able to im ...
Hans Ravnsfjall
16/04/2020 10:39:49
Last post: 16/04/2020 12:12:13
TemplateTag Ecom:Order.Customer.Name
According to doc-site I can retrieve Customer name from the template tag Ecom:Order.Customer.Name, and in the same way retrieve Ecom:Order.Customer.Email to get the email address from the order. Email is fine, but I cannot make Name work (ref https:/ ...
Siv-Renate Hansen
01/04/2020 17:08:58
Last post: 02/04/2020 09:02:33
Custom product attributes, productgroups
I'm trying to learn how to implement product group fields in a product. I understand how to create the fields, but when I want to output them, I haven't found a way (yet). In the documentation, this is what I find about Product.Productgroups https:// ...
Siv-Renate Hansen
26/03/2020 11:07:41
Last post: 26/03/2020 15:25:54
Cookie details
Hello, Is it possible to show what type of cookies are used and why, in the ModalDialogWarning_Categories.html template (DW9)? I have tried looking at the API and other similar questions in other forums, but without examples it's a bit difficult to u ...
Roop K. Rusbjerg
16/03/2020 09:51:41
Last post: 18/03/2020 10:57:11
Is there a way to tell what placeholder a paragraph is in, in a paragraph-template?
Hi On a page, you can have multiple placeholders (<div id="place1" class="dwconent" title="place1"></div> <div id="place2" class="dwconent" title="place2"></div> etc) Now, is it possible to tell from a pragraphtemplate what pl ...
Hans Ravnsfjall
15/03/2020 11:56:20
Last post: 16/03/2020 10:42:27
ItemPublisher: Getting folder names in pagetree
Hi guys Can we somehow, in an ItemPublisher template, get the items parent page/folder in the loop? ...
Jens Mouritzen
09/03/2020 12:41:21
Last post: 09/03/2020 13:15:52
RenderItemList probs.
Hello, I'm using Itempublisher as a news modul and feeding it with paragraph item from it's subpage: News - the itempublisher is here AllNews - all the news feed is here in different item paragraphs What I want is to show latest news section at the b ...
Roop K. Rusbjerg
27/02/2020 15:20:25
Last post: 27/02/2020 15:23:58
Error in cookies template
Hi After we enable cookie manager and set it ot use Template based warnings - ModalWarning.cshtml we get following error on page: Error compiling template "CookieWarning/ModalWarning.cshtml" Line 80: The name 'Render' does not exist in the current co ...
Ivan Marijanović
25/02/2020 09:16:47
Last post: 25/02/2020 10:00:14
Form files as links instead of text
I found this thread, https://doc.dynamicweb.com/forum/templates/templates/forms-for-editors-how-to-link-files-in-the-email-template, where it states that I could check for input type and then create a link-tag to surround this. So I did, but no link  ...
Siv-Renate Hansen
11/02/2020 10:55:56
Last post: 11/02/2020 17:59:02
Getting colours from image
Hi guys I need some guidance on how to retrieve colors from an image, one or more. E.g. we want to make an overlay color for an image based on the colors of the image. Anyone having a good approach on how to do this? ...
Jens Mouritzen
06/01/2020 22:05:17
Last post: 08/01/2020 09:25:24
Filepublisher using first image as thumbnail
Hi guys We got a customer, who wants to use the first image in the filefolder as the thumbnail, using the FilePublisher module. How can we achive this? The folders loop (Razor) dows not give a list of files. Thanks :) ...
Jens Mouritzen
15/12/2019 18:28:14
Last post: 17/12/2019 19:00:13
constant problem with Facebook share (images not valid content)
Hi As you see here, I have problem with facebook not accepting the image content type https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fwww.apotek.fo%2Fvi%25C3%25B0kvom-tarmey%25C3%25B0kenni-leyst-liv-og-trekur-magi I Have tried ur ...
Hans Ravnsfjall
03/12/2019 17:45:35
Last post: 03/12/2019 18:55:09
Cannot install DynamicwebTemplatesDW9VS2019.vsix
Alright so here I am again. On my way to study for the C3 certification I am setting up my environment for the T3 training module. One of the prerequisites for this module is to "Download and install the Visual Studio template set for Dynamicweb 9".  ...
Ronnie Poulsen
03/12/2019 12:47:34
Last post: 04/12/2019 10:11:33
Alternative images in product catalog
Is it possible to loop through the alternative images/links in a product catalog paragraph? I'm using a product catalog paragraph to create an XML product feed, i do see the small, medium and large images but i don't see a template tag or loop to dis ...
John Broers
02/12/2019 16:49:31
Last post: 02/12/2019 17:12:35
How do i fetch and display json data, using razor?
I know how to do it for fetching and displaying XML, and tought it would be easy to convert this code to fetch json instead, but I can´t get it to work. Here is what I have for XML, and this works perfectly. Pardon the clumsy code, but this is just a ...
Hans Ravnsfjall
29/11/2019 17:34:35
Last post: 04/12/2019 09:49:05
Search and replace template filename on Page table?
Hi, I have to change template (from html to Razor) on 2000+ pages on a site. I want to know if it's enough to do a search and replace on the PageLayout column on the Page table? Or is there anything else to think about? ...
Jacob Storgaard Jensen
30/10/2019 16:43:02
Last post: 30/10/2019 23:06:05
Is it possible to set unwrap:true on PageViewModel's @Model.Placeholder(...)
Hi, Running version 9.7.2, it will generate a div for each paragraph, when rendering them with @Model.Placeholder(...). Is it possible to set unwrap:true in some way? It would have made sense if it could be included as part of the settings parameter  ...
Roald Haahr Jensen
25/10/2019 13:33:33
Last post: 25/10/2019 15:03:51