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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHow to add additional Module Action in Razor ScriptHow to add additional Module Action in Razor Script
Previous
 
Next
New Post
2/13/2018 3:47 AM
 
Hi there,
I'm trying to add Module Action in razor script module.
I can do it quite easily in web form module however as I'm trying to convert everything into Razor right now I would like to learn how to achieve this.

The razor script is created by the Module Creator and there is no backend cs file so if there is any method or script I can use in the front end cshtml in order to add the Module Action buttons?

Thank you for any help.
 
New Post
3/14/2018 9:08 AM
 
Still cannot find any way to create the pen icon next to the gear icon for module action so might be I have to use an alternative way...
Currently I'm adding the editurl link on top of the module when it detects the page is in Edit mode
So what I do is adding the editurl link within the code block below:

@if (Globals.IsEditMode()) {
//html code / link here...
}

At lease it works but still hope for a solution to add this link as a module action...
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHow to add additional Module Action in Razor ScriptHow to add additional Module Action in Razor Script


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out