Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
Autologin
I have this lame question about a feature that I thought would be absolutely simple to implement. However, it didn't work out as I hoped. :-/ I have created a login form in a Razor-template. The login submits the username and the password to a custom ...
Peter Terkildsen
04/03/2015 08:30:55
Last post: 05/03/2015 07:30:46
Item.RenderList - ListSourceType: CurrentArea?
Hi guys, When using the Item.RenderList - is it possible to select items only on the current Area? Like ListSourceType: CurrentArea? It only shows these possible values (on http://templates.dynamicweb.com/TemplateTags/Dynamicweb-template-tags/Module- ...
Jacob Storgaard Jensen
04/03/2015 10:40:57
Last post: 04/03/2015 14:21:01
Loop through paragraphs
I have a page with some global elements. Is it possible to loop through the paragraphs and add them to a page? Instead of adding them seperatly with <!--@Global:Paragraph.Content(16086)--> ...
Jim Trebbien
03/09/2014 10:10:00
Last post: 25/02/2015 11:07:07
Getting translation from other language in Razor template
Hi guys We are having an issue where we want to be able to swap some parts of the website from Danish to English for instance. We are not able to simply use different Areas as it has to be that specific content connected with the Danish Area, just wi ...
Kasper Vesth
18/02/2015 13:39:27
Last post: 24/02/2015 09:15:45
Email Marketing - custom user fields
Is it possible to render values from custom user fields in an email? How? /Morten ...
Morten Bengtson
19/02/2015 13:44:47
Last post: 20/02/2015 09:27:39
Response or pageview as CSV download
Hi all, I would like to dynamicly create a downloadable .csv file when visiting a page. But it seems that no matter what i do, it seems my encoding is wrong, or at least i think it is the encoding that is the problem. This is my code in the pagetempl ...
Finn Frost
12/02/2015 12:33:41
Last post: 13/02/2015 10:29:27
Includes in Razor
Hi everyone, Wanted to ask, how do I make includes in Razor? http://templates.dynamicweb-cms.com/TemplateTags/Dynamicweb-template-tags/General-tags/Include([Path]).aspx ...
Dmitrij Jazel
16/07/2013 13:28:57
Last post: 12/02/2015 08:06:16
Get Item-Paragraph field values in paragraph module
Hello, I am looking to get some values from my paragraph-item with a module attached, in the module template - is this possible, and could you give me an example? Kind Regards Daniel Williams ...
Daniel Williams
11/02/2015 08:46:20
Last post: 11/02/2015 09:09:44
Razor: Filtering list based on parameter
Hi all This is really a question on best practices Problem: I have an itemtype: Contact As one of the fields in this itemtype is a checkboxlist (called Areas) by which you can assign a contact to one or more company areas. Now on one page of the site ...
Thomas Overgaard Nielsen
09/02/2015 10:13:18
Last post: 11/02/2015 08:49:41
File Item property in image-tag
Hello, I have this wierd bug, that if i output @GetString("Item.Image") i get the path to the file, But if i output the same code inside a <img>-tag, i get a different path, and a wierd tag close. - I also tried with an item, called Item.PageIm ...
Daniel Williams
09/02/2015 11:51:00
Last post: 11/02/2015 08:43:49
Razor syntax help - pageview.area.item loop
Hi I wanna loop through an area.itemlist on a productpage. Im thinking something like: @foreach (var function in GetLoop("Pageview.Area.Item['Item.Area.Funktioner']")){ @function.TemplateTags(); } But its not working. If I want a "non-looped" value,  ...
Rune Skovbo
06/02/2015 12:42:20
Last post: 10/02/2015 15:44:39
RE: Reference Page item File-field to image src
Hej Guys, Recently I created fresh site, and created a Page type item. I added Type "File" field with name Image. Strange thing is happening, whenever get the value from that field, and I just define: <text>@GetString("Item.Image")</text> ...
Dmitrij Jazel
10/02/2015 10:52:05
Last post: 10/02/2015 13:04:58
Menu items to pages who are an internal link
Hi, I notices when a page is rendered in a navigation tag and that page is actually an internal link to another page there is no field in the navigation xml containing the ID of the linked page. This then alway results in a redirect to the actual pag ...
Ben Doorn
07/02/2015 11:44:45
Last post: 09/02/2015 19:20:44
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