Developer forum
Subject
Replies
Started by
Last reply
Query String in Razor
Hi, Is there a way to get the query string value within a Dynamic Web Razor template? I am trying the following : @{ string brochureName = @Request.QueryString["brochureName"];
} but it isn't working. ...
Yasharth Tahiliani
26/06/2015 17:56:57
Last post: 26/06/2015 18:19:12
Form Template Loop through fields.
Hi, I am trying to create a generic template for User generated forms using the forms for editors module within Dynamic Web. I want to be able to loop through each field within the form and attach some div elements around it. <div class="row"> ...
Yasharth Tahiliani
24/06/2015 14:01:03
Last post: 24/06/2015 14:07:14
Page Item Type ID
Hi, I have these pages in my website that are items of a particular type. Now, is there a way in the Razor template to get the ID of the Item Type of these pages. I am using Dynamicweb.Frontend.PageView.Current().Page.get_Value("PageId").ToString(); ...
Yasharth Tahiliani
22/06/2015 10:44:09
Last post: 22/06/2015 10:51:52
Razor grouping
Hi guys, I've tried to search the forums to find a way to group items, but with no luck... so here it goes: I've got a bunch of Items (Paragraph items) which are employees at a company. I would like to group these by department, which is a field set ...
Jacob Storgaard Jensen
16/06/2015 18:16:55
Last post: 22/06/2015 08:58:47
10
Subscribe
[Razor] Using a concatenated variable with GetString
Hello, I have several group fields which are numbered, so to avoid writing 20 times the same html code, I wanted to do a for loop : @for (int i = 1; i <= 10; i++)
{ tagName = "Ecom:Group:Field.Picture" + i.ToString() + ".Value.Clean"; if (!string. ...
Gaetan Di Caro
17/06/2015 15:00:37
Last post: 18/06/2015 10:58:33
Check if paragraph is active
I currently use the code below to count the number of paragraphs in a certain area (in this case my "suppliers" area). int adverts = Paragraph.GetParagraphsByPageID(PageView.Current().Page.ID).FindAll(par => "suppliers".Equals(par.Container) & ...
Michael Nielsen
15/06/2015 15:55:51
Last post: 15/06/2015 16:00:02
Navigation: When reached endlevel - show currentlevel pages
Hi.. I have a sitemap looking like this: Page A - Subpage A1 - Sub-subpage A1 - Sub-subpage A2 - Subpage A2
Page B - Etc. Now I have a left sidebar navigation that only show the current page's children. For example when I'm in Page A - I only get "Su ...
Lars Pham
04/05/2015 11:13:07
Last post: 12/06/2015 11:09:40
Gallery pdf flipbook templates with turn.js?
Is there anyone in this forum, who has implemented for example the turn.js (http://www.turnjs.com) script with the gallery templates, in order to show a pdf without flash? Other templates/solutions with another free-licensed pageturn-function is also ...
Lise T. Pedersen
10/06/2015 14:11:00
No replies yet
Page item in xslt navigation
Hi. How would i use page item attributes in a XSLT template? Lets say i have a page-item called link, with basic functionality like: Href, Target, Alt and text. How would i get those properties in the XSLT? Ive tried stuff like: select="@Link.Link" s ...
Jonas Mersholm
08/06/2015 15:47:03
Last post: 10/06/2015 05:18:50
Geolocation in User Management
I cannot see that the GeoiLocation information is available in the Extranet/Intranet module for a user? Can this be solved in some way? Regards / Aki ...
Aki Ruuskanen
02/06/2015 09:02:24
Last post: 08/06/2015 13:58:55
Sort in rss-feed depending on news category
Hi, I have a page with the news-module, and the rss-function checked. The newsmodule takes news from all existing categories. I would like to link the rss-feed-page in a way, where I can sort in the categories displayed. Is there a way to add a param ...
Martin Kure
03/06/2015 14:29:26
Last post: 08/06/2015 13:58:01
Item types in navigation
Hi We are using quite a lot of item types for a client. One of them is setup for the client to use to build mega-dropdown-menus with multiple columns. The idea is, that the client can select to have up to 3 columns in a dropdownmenu instead of a trad ...
Bo Dudek
24/03/2015 11:47:32
Last post: 08/06/2015 09:52:54
Loop through checkbox list
In my website settings I've created an item field with type Checkbox List. But I haven't been able to output the value of each checkbox nor find anything in the manual describing this. Nothing relevant shows up with DwTemplateTags, I can just see the ...
Martin Christensen
29/05/2015 16:29:06
Last post: 01/06/2015 14:14:37
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