2sxc

Imported data not display

懵懂的女人 提交于 2019-12-25 16:59:29
问题 Imported data not displays in repeated table. It's only shows demo data. below is my template. @{ <table class="table table-striped table-bordered"> <tbody> @foreach (var Content in AsDynamic(Data["Default"]).OrderBy(m => m.wcName)) { <tr> <td width="30%"><a href="@Content.link" target="_blank">@Content.wcName</a> </td> <td>@Html.Raw(@Content.wcPosition) @if (DotNetNuke.Common.Globals.IsEditMode()) { @Content.Toolbar } </td> </tr> } </tbody> </table> } 回答1: Your template only shows items

Copying Page with 2sxc content doesn't copy the modules

*爱你&永不变心* 提交于 2019-12-25 07:17:29
问题 I have a page with several 2sxc content modules. After copying the entire page (using the Page menu in DNN), the new page loses all of the content and even the module assignment (Data and View). This seems like a bug. Using the Export Page/Import Page method, the resulting page retains the module data/view assignment. However(!), the data referenced by these modules is pointing to the same data from the original page. You edit the data on the new page, the data on the old page changes. Can

Access additional DataPipeline from Razor view in 2sxc module

会有一股神秘感。 提交于 2019-12-24 05:57:31
问题 Is it posible to access another pipeline data from razor script already conected to custom or default data pipeline? (multiple pipelines in one razor view) eg: My custom data pipeline give me some values and base on this values I want to get some other custom pipeline and used its values/lists in conditional block of this razor script? 回答1: var list = App.Query["Query-Name"]["Stream-Name"].List; foreach(var item in AsDynamic(list)){ <div>@item.Title</div> } Also a good sample is: Using App

Toolbar item for delete - for 2sxc module

不想你离开。 提交于 2019-12-13 06:41:05
问题 I create 2sxc.org app for DNN and don't know how to allow a user to delete the content item? Is there some toolbar snippet like: @Edit.Toolbar(Content, actions: "edit,replace") But also to create delete button? If there is no such command, how can be manually created? Any guidance? 回答1: The full list of actions is listed here https://github.com/2sic/2sxc/blob/master/src/inpage/2sxc._actions.js So just use @Edit.Toolbar(Content, actions: "edit,replace,remove"); The reason is that delete is not

2sxc Permissions by Role

巧了我就是萌 提交于 2019-12-12 05:07:37
问题 Using 2sxc 8.8 for DNN Evoq Content 8.3, is it possible to setup a role that will allow a user to see the buttons, edit and change template / layout, but does not allow them to "Edit Template" and give them "Admin" access? 回答1: This is very simple to do, because once a special user-group exists called "2sxc Designers", only these users will see the advanced buttons. Check out http://swisschecklist.com/en/fwttmwjx/2sxc-Hide-advanced-features-from-Content-Editors-with-Designer-Security-Role 来源:

2sxc : Rename App Folder

谁说我不能喝 提交于 2019-12-12 04:37:15
问题 How to rename app folder the right way? For now, I try this way and don't know it this is OK export app edit content of the zip (rename folder / rename folder name in app.xml) delete app import changed app This is maybe OK for test and development but is there any way for doing this in live site? (without loosing old content?) 回答1: This is very simple :) Rename the folder in the 2sxc Update the folder name in the app-configuration (where you also have the app version etc.) That's actually it

2sxc | removing file path by trimming w/ Javascript method

孤人 提交于 2019-12-12 04:35:56
问题 I have the following file path displaying: And I want to display only file name 'Doc1' (minus path and extension). I have tried unsucessfully the following and would appreciate any further light you could share as to what I am doing wrong... @functions{ public static string SplitWord(string text, int length) { string str = text; int n = str.LastIndexOf("."); string str1=str.Substring(n,str.LastIndexOf("/")); str1=str1.Substring(1,str1.Length); return str1; } } <ol> @foreach (var q in

Intermittant Exceptions On Save

孤者浪人 提交于 2019-12-12 03:52:39
问题 We have been investing heavily in 2sxc for a client with a large site. We've built a number of custom apps and added quite a few content types to the default Content App. About a month ago we started seeing slowness when saving front end data and saving ContentTypes in the Content App (but only there). The site would take 20 - 30 seconds to save. Now it's gotten worse and started throwing exceptions intermittently. Save is no faster than 30 seconds. At other times it's 60 seconds.

2sxc Dnn.. Add existing content items to module

老子叫甜甜 提交于 2019-12-12 00:12:50
问题 I have a view of entities which are being displayed based on an entity type filter. I now need to reorder these and would like to use the built in 2sxc functionality to do this, so I have a created a new view of the data using the "module data source" so that the ordering will work. But how do I now make all of the existing entities of the same type (definition) appear in this new view? The view now displays one item by default and I can replace that one item. But how do I add multiple

Having some issues with 2sxc version 9.x: unable to select App/Content layout

北慕城南 提交于 2019-12-11 17:27:59
问题 I have upgraded to v. 9.1.3 and I still have the same issue that I found with previous 9.x versions, so I'm still forced to use v.8.12 . The problem is that I am unable to select the layout of any App/Content when I insert it to the page, after inserting I only see this button: and when I click on it , nothing happen , and two errors appear in the console: note1: the same error happen when I install 2sxc v.9.1.3 (or any older 9.x) on new and clean DNN v.9.1 website. note2: the same error