|
|
|
|
|
|
1 Replies and 293 Views and 1 Subscribers
Inject html tag via hard code (C)
293
1
1
Started by Mahmoud Nouraei
Hi,
I want to create a provider that injects code into the page.
How to inject html code in all pages using a provider
For Example:
<html>
<head>
inject code (<link href=&39;www.site.com/home&39; Rel=&39;canonical&39; />)
</head>
</body>
......
</body>
</html>
|
|
|
|
1 |
293 |
1 |
|
|
1 Replies and 297 Views and 1 Subscribers
Error GetRouteData
297
1
1
Started by devildog67
We&39;re using DNN version 8.0.4.
I&39;m getting the error below when my app routes to this URL when I&39;m trying to debug my module locally:
404 the resource cannot be found
https://dnndev.me/Home/Compare-Your...1679932804|
The error in the event viewer is:
Object reference not set to an instance of an object.
at DotNetNuke.Web.Mvc.Routing.StandardModuleRoutingProvider.GetRouteData
I&39;ve confirmed that the controller rates and method index exist in the app...in...
|
|
|
|
1 |
297 |
1 |
|
|
2 Replies and 291 Views and 1 Subscribers
Role conflict - permissions to view pages (DNN 5.4)
291
2
1
Started by Seek
HI,
configured on a user, I have a role that allow to view a page, and another that deny it.
And in a utopian world, that would violate Kiri-kin-tha&39;s First Law of Metaphysics: "Nothing unreal exists".
In the DotNetNuke.Security.Permissions.PermissionProvider class, it clearly reads (permissionKey=&39;VIEW&39;):
private bool HasPagePermission(TabInfo tab, string permissionKey)
{
return (
PortalSecurity.IsInRoles(tab.TabPermissions.ToStr...
|
|
|
|
2 |
291 |
1 |
by Seek 3/28/2023 3:30 AM |
|
21 Replies and 11207 Views and 2 Subscribers
NavigationManager
11207
21
2
Started by Michael Tobisch
Hi all,
I got a problem when replacing the Globals.NavigateURL() function with the new INavigationManager. What I have done:
namespace myNamespace
{
public partial class myControl : PortalModuleBase, IActionable
{
&91;...&93;
protected INavigationManager NavigationManager { get; }
&91;...&93;
region IActionable
public ModuleActionCollection ModuleActions
{
get
{
ModuleActionCollection actions = new ModuleA...
|
|
|
|
21 |
11207 |
2 |
|
|
2 Replies and 402 Views and 1 Subscribers
DnnWebViewPage and @Html.DevExtreme() helper
402
2
1
Started by pzejer
I want to use DevExtreme control in DotNetNuke MVC module.
View in DNN MVC module inherits from DotNetNuke.Web.Mvc.Framework.DnnWebViewPage<someModel>
To use DevExtreme I comment this inheritance and gave: using DevExtreme.AspNet.Mvc to make a proper ref to Html.DevExtreme().
Problem is that without DnnWebViewPage any Url.Action() to proper controller action url is damaged.
Is it possible and how to make a DnnWebViewPage inheritance and even helpers with DevExtreme helper objects ...
|
|
|
|
2 |
402 |
1 |
|
|
5 Replies and 481 Views and 2 Subscribers
How to test DNN manifest
481
5
2
Started by Seek
Hello developers,
how do you test the DNN manifest before releasing a new version of your modules
|
|
|
|
5 |
481 |
2 |
by Seek 3/14/2023 7:56 AM |
|
5 Replies and 934 Views and 2 Subscribers
Problem modifying logout
934
5
2
Started by Joshua Rose
Creating an auth provider and I&39;ve had some success with login
But now that I&39;m working on logoff I can&39;t even seem to hit the breakpoint in the authentication provider I put together.
I see logoffHandler in web.config
<add name="LogoffHandler*" path="Logoff.aspx" verb="*" type="DotNetNuke.Services.Authentication.LogOffHandler, DotNetNuke" preCondition="integratedMode"/>
Not sure if it&39;s related. Maybe I need...
|
|
|
|
5 |
934 |
2 |
|
|
5 Replies and 642 Views and 2 Subscribers
How to use licensed Telerik?
642
5
2
Started by Ana_Dana
I recently upgraded to DNN 9.11.0, and the install couldn&39;t remove Telerik as we have quite a few custom modules which use Telerik. I see that the Telerik version that is installed with DNN has security vulnerabilities. I have a developer license for Telerik. I want to to use the latest version of Telerik in my custom modules. Luckily, we used Telerik Controls directly. I see the notes and steps from this link: https://docs.dnncommunity.org/content/getting-started/setup/telerik-removal/...
|
|
|
|
5 |
642 |
2 |
|
|
2 Replies and 443 Views and 3 Subscribers
Can parms be passed to custom scheduled job?
443
2
3
Started by Matthew
I have created a custom job class by following this blog. Is it possible to pass values as parameters into the code or is there another approach to providing data
|
|
|
|
2 |
443 |
3 |
|
|
6 Replies and 566 Views and 1 Subscribers
Extending Globals class
566
6
1
Started by Seek
Hello,
I need to extend the sealed class Globals.
My former colleagues have modified the class directly, but honestly I do not consider the best way...
I need to add properties and the practice would be for me to create an Adapter class. Then I have to add some methods and redefine others and in this case I have to write an Extension class.
The question is: what is the best way to achieve the 2 things possibly using only one class
Thanks
S.
|
|
|
|
6 |
566 |
1 |
|