dotnetnuke - 2sxc - Toolbar - Edit permissions by DNN roles -


i'm having hard time trying figure out how permissions work. giving users security roles in dnn edit module/page able edit app data doesn't work me.

i need give users strict permissions add or edit data on view/content in app/module, cannot have edit permissions page or module (only data in it, fnl allows).

basically, content tool bars or list tool bars should visible select dnn users no security access (more social group).

2sxc designers group not possible. way many groups different accesses different apps.

custom toolbars not seem render... used

<ul class="sc-menu" toolbar='{"contenttype":"farm_ad","action":"new"}'></ul> 

and can see code in page source, button not rendered non admins.

i tried giving full permissions content , view (security level: view permissions , anonymous), buttons not show...

i'm trying code:

@dnn.user.isinrole("editores de fármacos")<br> @if (@dnn.user.isinrole("editores de fármacos") == true)     {     <div class="sc-element">     <h1>fármacos adulto</h1>     @edit.toolbar(listcontent)     </div>     <br>     <ul class="sc-menu" toolbar='{"contenttype":"farm_ad","action":"new"}'></ul>     <br>     } 

and can see if clause returns true (the h1 rendered), toolbar , buttons not show...

so start - recommend use 1 toolbar-api, keep things simple. you're using razor, recommend use that, because you'll errors when use incorrect syntax. best use @edit.toolbar(...)

there few questions ask, if toolbar doesn't appear:

  1. is there? - check in rendered html, if @edit.toolbar replaced . if not, guess there no listcontent object on template - template configuration. try @edit.toolbar() without parameters, minimal toolbar provides app/manage buttons no edit.
  2. is there js error renderering toolbar - not common, happen if wrong. check f12 see if appears.
  3. is correctly replaced? js picks simple tag , replaces complex ul/li list. check f12 see if did that.
  4. is invisible because of css? you'll have toolbar, won't see because of lying on top of it.

depending on core issue, you'll have different solutions.

  1. if it's not there, you're server code somehow wrong, , if or preventing output.
  2. if it's js error, should check values you're using
  3. if it's not being replaced, tag either wrong, or page isn't loading js required that. atm it's loaded if user has edit-right on module.
  4. if it's there not showing up, either create non-hovering solution, or tweak css work.

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -