dotnetnuke-module

Sort 2sxc adam files

℡╲_俬逩灬. 提交于 2020-01-16 07:49:09
问题 I can get images that way: foreach (var pic in AsAdam(Content, "Images").Files) 1.What is the right way to sort images by name or upload date? 2.How to custom reorder images? 回答1: The "folder" itself doesn't provide ordering. I have two suggestions Either do something where the files have a leading number - which is not shown in the output. This is what I do on the app-catalog so each file has a "31 output editing" - with this I can pre-sort them in my local system before batch uploading them

Lost session/cookie when login as another user

試著忘記壹切 提交于 2020-01-04 02:55:08
问题 I am building dnn module which allow logged in user to log in as another user. But I have some wired issue here. This is how I log out current user and login as another user: UserInfo userInfo = UserController.GetUserById(portalId, userId); if (userInfo != null) { DataCache.ClearUserCache(this.PortalSettings.PortalId, Context.User.Identity.Name); if (Session["super_userId"] == null) { Session["super_userId"] = this.UserId; Session["super_username"] = this.UserInfo.Username; } HttpCookie

How to set the skin of a DotNetNuke page through code?

a 夏天 提交于 2020-01-03 02:01:07
问题 I'm working on a DNN module that creates DNN pages (tabs) and places DNN modules on them through code. So, far that's working very well. However, I'd like it to also be able to programmatically set the page's skin and place the modules in the appropriate pane. Does anyone know how to do this using code? Solution: I set SkinSrc and ContainerSrc as mika suggested. Here's my source, if you're interested. This is where I set SkinSrc . ''' <summary>Create new DNN tab/page.</summary> Private

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

DNN - Allow users to edit content but not settings

╄→尐↘猪︶ㄣ 提交于 2019-12-23 15:58:58
问题 I'd like "Content Managers" of my DNN website to edit just the content of a particular HTML module instance, but not its settings. How do I achieve this? If I allow this role to "Edit" the module, they are able to access and change the module settings as well. Thanks in advance for your inputs. 回答1: This can be achieved with DotNetNuke Professional edition using the extended granular permissions. 回答2: Or by using Oliver Hine's Enhanced Permission Provider for DotNetNuke. 回答3: you can achive

Module Localization in DNN

落花浮王杯 提交于 2019-12-22 07:08:57
问题 I don't know much about the localization process in DNN. The question is that how can you localize a new module? Is it possible to include localization files with every module separately? What solutions can you come up with? 回答1: Localization of a module is pretty easy thanks to DotNetNuke. Wherever your .ascx (View) file is, the App_LocalResources folder should always accompany it, on the same level. There should also be a corresponding .ascx.resx file in that folder. view.ascx App

Templateless Module Development

独自空忆成欢 提交于 2019-12-14 04:01:35
问题 Throughout the internet documentation for DotNetNuke is far and wide, this in itself is quite useful. However one hurdle exist and I can't appear to solve it. How do you do DotNetNuke Module development without Chris Hammond's Template? This template has become so widely accepted and utilizes that no other documentation exists. I've already accomplished the following: Configured SQL Server Database Configured Internet Information System (Bindings) Modified the System32 Host File (For local IP

dnn 7+ search is not indexing custom module items

允我心安 提交于 2019-12-13 21:30:15
问题 I have a dnn 7.2.2 development site running under dnndev.me on my local machine. I have created a simple product catalogue module and am trying to integrate the new search for dnn 7. Here is the implementation of ModuleSearchBase in my feature/business controller Imports DotNetNuke.Entities.Modules Imports DotNetNuke.Services.Exceptions Imports DotNetNuke.Services.Search Imports DotNetNuke.Common.Globals Namespace Components Public Class FeatureController Inherits ModuleSearchBase Implements

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

Easiest way to develop DNN modules? [closed]

坚强是说给别人听的谎言 提交于 2019-12-13 03:57:55
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . What is the easiest way to develop dot net nuke modules ? I tried VS starter kit, but you have to copy modules to the web server and