Developer forum
Subject
Replies
Started by
Last reply
Razor Get items (paragraph) from a item page
Hi guys, I'm tring to get with the API all the paragraph items from a item page, using the GetByParentPageId from the Items.Queries.StorageManager but the "Count" it always give me 0. This method only retrive page items under that page or it should a ...
António Ramos
14/05/2015 17:41:06
No replies yet
Razor, how to check if loop is empty?
Hi guys, I have an item with an item list on it (Images). But when the item list is empty it still appears in Loops, so this: @if (Loops.Contains("Item.Images")) {
<div> foreach here...
</div>
} does not work to avoid my wrapping div beei ...
Jacob Storgaard Jensen
25/05/2015 21:10:50
Last post: 26/05/2015 10:53:52
Cookies in Razor C#?
Hi guys, Have a question, C# is backend, ahd HTML5 storage is client. Was wondering if there is any easy way to access HTML5 storage in Razor, C#? Have no possibility to pass this value to razor through Dynamicweb.Input.Request("value") Any ideas/sug ...
Dmitrij Jazel
22/05/2015 10:28:00
Last post: 22/05/2015 10:57:26
Razor Ecom Navigation
Here is an example of Razor Ecom Navigation as well.
Hopefully it is usefull for anyone else. ...
Martin Grønbekk Moen
19/05/2015 19:51:46
Last post: 21/05/2015 11:29:37
Razor Beta
With Dynamicweb 8.2.3 we released Razor based templates in Dynamicweb. This thread is for discussing these new features and ask questions to the first implementations. ...
Nicolai Høeg Pedersen
12/06/2013 15:47:00
Last post: 20/05/2015 15:18:34
45
Unsubscribe
Razor navigation peer review
I wanted to have Razor navigation, and I could not find any example code for it, so I created my own.
Would be nice to have some peer review on the code to see if this is a approach worth taking to razor navigation. Feel free to comment on the code. ...
Martin Grønbekk Moen
19/05/2015 00:03:03
Last post: 20/05/2015 09:13:21
Item Publisher Edit Form
Is it possible to change the code for this: <!--@ItemPublisher:Edit.Form--> I need to adjust the HTML of the edit form, but I cant find this code anywhere. ...
Martin Grønbekk Moen
16/05/2015 19:43:34
Last post: 19/05/2015 14:58:30
Parsing JSON in Razor
Hi guys, I'm new to all this Razor, and would appreciate any help on this problem i'm having: I would like to retrieve the thumnail_url value from this JSON string output by this URL (Or similar): https://vimeo.com/api/oembed.json?url=https%3A//vimeo ...
Jacob Storgaard Jensen
17/03/2015 09:18:17
Last post: 19/05/2015 08:33:26
10
Subscribe
Dynamicweb.Frontend.Page.get_Value()
Are there any lists of which keys that are available in Dynamicweb.Frontend.Page.get_Value()?
All I know is this one get_Value("pagemenutext") but there should be a list of all available keys. ...
Martin Grønbekk Moen
18/05/2015 22:42:05
Last post: 18/05/2015 23:28:49
RE: Forms for editors template example
Hi, Is there a razor file that contains a full and perfect example, of how a template can look with forms for editors? //jan ...
Jan Sangill
12/05/2015 09:00:38
Last post: 13/05/2015 15:11:57
Smart search inside ecom-groups
Hello, How can I display some "smart search"-groups together with regular ecom-groups? I have a page with ecom-navigation attached and on the same navigation level I need to display a link to a "smart search"-group. Best regards, Anders ...
Anders Ebdrup
11/05/2015 21:52:14
Last post: 12/05/2015 05:32:08
Newsletter templates - tags for online/mail versions?
Hey, in a newsletter template I have a link to the online version of the newsletter in question, ie. "view in browser". However, I don't want the online version to include certain elements - like the link to view the online version :) Are there any t ...
Martin Christensen
08/05/2015 15:43:09
Last post: 08/05/2015 16:08:23
Loop itemslist in website settings
Hi, I have an ItemList in my Website Settings item called "SocialaMedier". I am trying to loop through that itemlist in a module template. I'm trying with something like: @foreach (var sm in GetLoop("Item.Area.SocialaMedier")) { @sm.GetValue("Item.Ar ...
Aki Ruuskanen
04/05/2015 13:46:39
Last post: 04/05/2015 16:18:11
Paragraph templates issue after upgrade to 8.5.1.19
Hi DW, After upgrading to version 8.5.1.19 i have issues with templates for my paragraphs. The paragraphs which had template selected from global "/Paragraph" folder disapeared from list of templates after upgrade. Everything works fine until I make ...
Davor Zlotrg
30/04/2015 11:13:37
No replies yet
Shared / fallback design
Hi, We're planning to develop our own "wrap" and are searching for some best practices. We'd like to have a default template with the master page, content pages, paragraphs, item types, less/css, javascript, etc and the possibility to easily overrule ...
Roy
24/04/2015 15:10:23
Last post: 29/04/2015 09:42:35
User creation and ajax
Hi, does anyone have any experience with adding some asynchronous functionality to forms, ie. user creation? In the example below I attempt to make a form that allows visitors to sign up for a newsletter. They're simply added to a specific user group ...
Martin Christensen
28/04/2015 16:21:55
Last post: 28/04/2015 18:09:59
@RenderItemList and filtering
Hi On a website (http://www.vildmedand.dk/da-DK/Opskrifter.aspx) I have two page items - category and recipe.
Each recipe can belong in more then one category.
The categories a recipe belongs to is controlled by a checkbox list generated from the cat ...
Thomas Clausen
28/04/2015 10:18:30
Last post: 28/04/2015 12:54:33
Translate tags are not processed
Hello. I am using a template to create the body for an email, but unfortunately the translate tags are not being processed, so the email looks a bit rubish. This is what is being done: Area currentArea = Area.GetAreaById(areaId); var bodyTemplate = n ...
Marco Santos
22/04/2015 10:30:22
Last post: 23/04/2015 12:54:25
Itempublisher filter
Hi, I have an itempublisher, where I would like to filter the items. I create a rule based on { "Tags" is equal to VALUE}. However VALUE seems to be a string value, and I would like to use this filter: {"Tags" contains VALUE}. This filter doesn't exi ...
Martin Kure
21/04/2015 10:20:37
Last post: 22/04/2015 09:51:26
Itempublisher filter
Hi, I have an itempublisher, where I would like to filter the items. I create a rule based on { "Tags" is equal to VALUE}. However VALUE seems to be a string value, and I would like to use this filter: {"Tags" contains VALUE}. This filter doesn't exi ...
Martin Kure
21/04/2015 10:20:35
Last post: 22/04/2015 09:50:57