Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage PacksModule Actions Menu QuestionModule Actions Menu Question
Previous
 
Next
New Post
9/12/2005 11:24 PM
 

I'm attempting to use the localizations features for the first time and I'm struggling with the module actions menu.

I got this part fine -

Actions.Add(GetNextActionID, Localization.GetString(Entities.Modules.Actions.ModuleActionType.AddContent, LocalResourceFile), Entities.Modules.Actions.ModuleActionType.ContentOptions, "", "", EditUrl(), False, DotNetNuke.Security.SecurityAccessLevel.Edit, True, False)

I also got the AddContent.Action and value = "Edit Page Name" no porblems

What I'm struggling with is adding additional edit controls to the same view module. All I can get is the same control title duplicated if I add additional items to the .resx file and make another call to actions.add .

What I want is a menu that says something like:

Add Items
Edit Item Categories

Module Settings

What I can get it

Add Items
Add Items
Module Settings

I'm not understanding what all name/value pairs are possible in the .resx file (that apply to the menu - I understand the general localization naming). Documentation doesn't seem to have much on it in the DNN Book or the DNN Project documentation. They both kinda breeze through these without really explaining it.

Many thanks.


Will Ballard
Ingen Systems
 
New Post
9/13/2005 2:52 AM
 

The trick is on this call:

Localization.GetString(Entities.Modules.Actions.ModuleActionType.AddContent, LocalResourceFile)

This is to get the actual text from the resource file using a key. Here the key is Entities.Modules.Actions.ModuleActionType.AddContent. If you find this value on the dnn core you will see it is "AddContent.Action". This resolves on the resource file to a value of "Add Items", for instance.

If you want another text first you define it in resource with a different key ("EditCateg.Action" in you case) and the correct value ("Edit Item Categories"). Then use that key in the call to getString:

Localization.GetString("EditCateg.Action", LocalResourceFile)


Vicenç Masanas
Banyoles, Girona - Spain

Disgrafic.com    PSD to DNN
 
New Post
9/14/2005 4:01 PM
 

Many thanks for this reply. It was exactly what I needed. I had the menu working in 10 minutes of work after reading this.

Thanks for you DNN Jungle templates as well. It sure beats doing Parameter based queries like DNN 2.0.


Will Ballard
Ingen Systems
 
New Post
3/11/2010 5:36 AM
 

Hi ,

I would Like to hide the import /Export content option to administrator role

how to hide the default menuaction items for administrator

Thanx in Advance

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage PacksModule Actions Menu QuestionModule Actions Menu Question


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out