dotnetnuke

How can I detect the state of Content at View startup?

谁说我不能喝 提交于 2019-12-11 16:45:44
问题 Lets assume I have created my own custom view for a Link content type. When the user adds a 2sxc Content app to a Pane, then picks the Content Type (Link) then my custom View, when it first starts up, how can I detect that a) the View does not use a Demo item vs. b) the View uses a demo item and is showing the Demo item vs. c) its not the first time and there is a real user added Content (Entity) in place? I have done stuff like this for the a) case: var link = AsDynamic(Data["Default"])

How to add a Lightbox to a custom DotNetNuke module

扶醉桌前 提交于 2019-12-11 16:14:38
问题 I'm working on a custom DotNetNuke module which requires the use of Lightbox. What's the best way to add the javascript necessary for Lightbox to a DNN module? Nearly all the solutions I've seen involve adding the javascript references to the skin file. Is there another way to accomplish this? I'd hate to have those javascript files being loaded even for modules which don't need them. ===================================================================== Thanks to spinon's help, here's the

How to show a DNN module in a Fancybox pop up?

﹥>﹥吖頭↗ 提交于 2019-12-11 15:38:57
问题 I have a custom DNN registration and login module which I would like to pop up in a fancybox when someone clicks on the sign in to buy (Add to Cart) button. Firstly, it would show a login and registration button in the pop up. After someone has clicked on one of these buttons, the fancybox should stay open without any postbacks and show the custom DNN modules. Would I perhaps be able to achieve this with Knockout.js? Currently, the button would add the product to your cart and redirect you

http error 405 method not allowed error with web.API

[亡魂溺海] 提交于 2019-12-11 14:54:35
问题 I know I am not the first one to come across this, but I have tried all the suggested fixes and still can not get it to work. I want to use the DELETE and PUT verbs with my web.API services and DNN 7. Here is my code for the service: routeManager.MapHttpRoute(moduleName, "deleteproduct", "{controller}/{action}/{ID}", New String() {"Krisis.Modules.KrisisStore.Services.Controllers"}) ' DELETE: /deleteproduct/ <HttpDelete> _ <ActionName("deleteproduct")> _ <ValidateAntiForgeryToken> _ Public

How can I import an existing DNN module into a new module without copying the existing code?

白昼怎懂夜的黑 提交于 2019-12-11 10:46:33
问题 I would like to create a new module which will have two dropdown menu's in the settings whereby it will get the moduleID of two other modules that is already installed on DNN. How would I "import" these modules into a new module without having to copy the code? I would like to hide the view of these two modules until someone clicks on a button to show them in a pop-up. UPDATE This is the original question of what I would like to achieve: How to show a DNN module in a Fancybox pop up? 回答1:

How to get name & link of parent page in DNN

匆匆过客 提交于 2019-12-11 10:16:05
问题 I want to have a link on children pages that is not only the name of the parent page, but also links to the parent page in DNN. 回答1: Use this in your skin ascx file <a href="<%= ((DotNetNuke.Entities.Tabs.TabInfo)PortalSettings.ActiveTab.BreadCrumbs[ PortalSettings.ActiveTab.Level - 1 ]).FullUrl %>"> <%= ((DotNetNuke.Entities.Tabs.TabInfo)PortalSettings.ActiveTab.BreadCrumbs[ PortalSettings.ActiveTab.Level - 1 ]).TabName %> </a> Note: this is for a C# skin. 来源: https://stackoverflow.com

cant go to the root dirctory in ascx src

非 Y 不嫁゛ 提交于 2019-12-11 09:18:23
问题 I start to build DNN taskMagnager moduel and I need to use the controls in acsx page C:\inetpub\wwwroot\dnndev\controls the problem is that my project folder path is C:\inetpub\wwwroot\dnndev\DesktopModules\TaskManager" and when Im trying to go to path like this: <%@ Register TagPrefix="dnn" TagName="label" **Src="~/controls/lablecontrol.ascx"** %> the src cant be found! No matter what I do its always turns to C:\inetpub\wwwroot\dnndev\DesktopModules\TaskManager\="~/controls/lablecontrol.ascx

Different result in IIS express and IIS

大城市里の小女人 提交于 2019-12-11 08:27:34
问题 I recently installed webmatrix on a windows 2008 machine. I installed dotnetnuke using webmatrix, I visited the site using a browser on the server, finished installing the site, and everything works just fine. I than created a site in IIS, and pointed it at the folder where I installed dotnetnuke. When I visit the site using my domain name and on port 80 with a browser on my server, it takes me to the install page. When I visit the site using a remote computer, it says "This site is currently

DotNetNuke and custom development

女生的网名这么多〃 提交于 2019-12-11 06:22:39
问题 We are considering purchasing DotNetNuke (or Sitefinity) on pretty short notice and there are is a question I have that I am having trouble finding a quick answer to. (I have a separate but similar post with Sitefinity as the focus, if you can answer that better or in addition.) We are currently not using any CMS at all and we have some custom development that will not go away just because we go with a CMS for some or most of our site. Our custom development is c# ASPX with Site Master and

DotNetNuke Skinning

三世轮回 提交于 2019-12-11 04:37:42
问题 I was reading this tutorial from the DNN website http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/2675/DotNetNuke-Skinning-101-Part-2.aspx I found the tutorial to be very useful, however there was an issue when I tried to apply the CSS style. For example after adding the content pane in the initial index.html I have no idea where to place the CSS. If I add it to the head section then the parser will remove it. Where could I add or reference the css file on for the skin? thank you.