Developer forum
Subject
Replies
Started by
Last reply
Content only allowed to certain groups...
I have some products with some datasheets shown for each product. If you log in, you get acces to some more specific datasheets. And now to the problem. I now have two different groups, if logged in from one group, you may also see a pricelist (as pd ...
Lise T. Pedersen
16/03/2015 14:47:04
Last post: 17/03/2015 11:38:52
Get list of product categories in razor template
Hi How can I receive an array with all product categories in a razor template?
I need the product categories in the right order, and with category level - 1 for main category, 2 for subcategory etc... I just need the same output as displayed in the m ...
Kasper Birk Nielsen
06/01/2014 11:31:03
Last post: 16/03/2015 12:56:36
Global:Request.Host in Razor
Hi,
I do not seem to be able to find information about how to retrieve Global tags in Razor. So for now, could someone please share information about a way to retrieve general useful information perhaps using standard .NET code? I mean it should be p ...
Sten Hougaard
02/12/2013 14:31:16
Last post: 13/03/2015 19:21:26
Split test directly in template
Can't remember the notation for doing a split test directly in the template and can't find it by searching the forum, manual or template site... Looking for the IF where you can check if it's an original or variant session. Anyone that can help me ou ...
Asger Munkholm Højfeldt
12/03/2015 11:11:08
Last post: 12/03/2015 13:41:57
Translate
Hi all, I'm trying to use the translate method. I've added the translations.xml to my design-folder. In the translations.xml I'm using this part: <key name="NewsletterEmail"> <translation culture="de-DE"><![CDATA[E-mail]]></trans ...
Martin Kure
12/03/2015 11:43:03
Last post: 12/03/2015 12:16:19
Can you test if snippet is empty?
This way: @if( if snippet isn't empty ){ @RenderSnippet("snippet") } else { <p>Do something else</p> } ...
Gitte Simonsen
10/03/2015 14:55:19
Last post: 10/03/2015 15:56:04
XSLT navigation - parents, descendants, siblings
Hi guys. I am relatively new to XSLT, and I am trying to create a navigation that shows the next article in a menu (should traverse all items). I have the following site structure: Blog -- Video 01 -- Video 02 -- Video 03 -- Article 01 -- Article 02 ...
Bogdan Ciocsan
03/03/2015 10:06:31
Last post: 09/03/2015 14:54:45
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
10
Subscribe
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
10
Subscribe
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