DNN - Allow users to edit content but not settings - dotnetnuke

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.

This can be achieved with DotNetNuke Professional edition using the extended granular permissions.

Or by using Oliver Hine's Enhanced Permission Provider for DotNetNuke.

you can achive this by adding your own its called "custom permission" to a module. (I can show you how you will achive this if you are interrested)
If you do this you will see in the settings of the module after the "edit" column of the permission section your custom created permission.
In your code you can then check if the current logged in user has got this permission and react making grids editable or not for example.
//get the moduleconfiguration
ModuleInfo conf = this.ModuleConfiguration;
ModulePermissionCollection myPermissionCollection = ModuleConfiguration.ModulePermissions;
//read out the custom data editright of the global constant
bool bCustomEditDataRights = ModulePermissionController.HasModulePermission(myPermissionCollection, "MyCustomPermission");
Hope this helps.
best regards, noone

Related

How to add a custom checkbox component to JIRA comments?

I need to add a checkbox item in the JIRA comments, so i could specify a permissions to view this comment for different groups of users.
Is it possible?
If yes, could anyone give me an advice how i can do this?
You need to configure comment visibility in general settings, this can be either project roles or project roles and groups.
Then you can set visibility settings individually for each comment (choose project role or group).
More information:
https://confluence.atlassian.com/jira/commenting-on-an-issue-185729604.html
https://confluence.atlassian.com/jira/configuring-jira-options-185729544.html

How to get Custom Profile Property to show in Edit Profile

We need to add some custom profile properties to user accounts. So we have gone through Site Settings and added the Custom Profile Properties and made sure they are visible to all. What expect is that now a user can go to Edit Profile and those new custom profile properties can be set. It doesnt happen. What are we missing?
Depending on your version of DNN there are a few things that could be happening.
Be sure to clear the cache, and/or restart the application to ensure that the list is current
Check to see if your site is using anything for a custom profile module. (Either customized registration form via Admin -> Site Settings -> User Accounts or possibly using Dynamic Registration or otherwise.) If using a custom form you will need to update it as well

How to create new Custom Login Popup in Dotnetnuke 7?

Hi,
My Questions are :
I just want to create Login Popup in DNN 7 according to my requirements and CSS.
Please suggest way for it .
also Which is better way ...to Customize existing Login & Forgot Password Pages or to Create New Pages for these.
Is there any Free utility or service to make DNN development Easy
(Searched for Nucleus but could not find helpful info)
Please Suggest and provide useful Links also ..Thanks !
So Stackoverflow is great for 1 question at a time, I will start with #1 and ask you to break it up into other questions for the rest.
Does it need to be a popup? If not, try just creating a custom Login page and put the Account Login module on that, then Skin it as you wish.
If it needs to be a custom popup, you can look at the popupskin.ascx file in your SKIN, you can customize the way the popups look by changing your Popup Skin. My free DNN skin has an example of that file https://multifunction.codeplex.com/SourceControl/latest#popupskin.ascx

Dotnetnuke - Dynamically change logo on Portal dependant on user or security role

I am fairly new to dotnetnuke and csharp, an was wondering what the easiest way to basically dynamically change the default logo dependant on the user or security role.
Any help would be greatly appreciated
Thanks
Alec
The default DNN setting (Admin-> Site settings) allows you to set one logo for your site.
You would need to write some code, probably modify the skin, to achieve what you want

Re-Enable Landing page in DotNetNuke

I am new to DotNetNuke and Mistakenly have disabled the landing page of the my site built in DotNetNuke and now i am neither allowed to access my site nor am i able to login to my site.
How can i re-enable the disabled landing page.
Any suggestion will be highly appreciated.
Thanking you in advance
http://www.yoursite.com?ctl=login
This will allow you to login aa then you can update the settings.
You will likely need to get into the database and edit the PortalSettings table's content.
What setting did you actually change on your website? One of the "pages" drop downs from the Admin/Site Settings?
Look in the portalsettings table and find the columns for Login Home Splash page, etc, and set those to Null.
Though if you didn't change that, perhaps you mean you changed the "default" page in IIS? IF that is the case try going to www.yourwebsite.com/default.aspx?ctl=login to login

Resources