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:
- 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. - is there js error renderering toolbar - not common, happen if wrong. check f12 see if appears.
- is correctly replaced? js picks simple tag , replaces complex ul/li list. check f12 see if did that.
- 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.
- if it's not there, you're server code somehow wrong, ,
if
or preventing output. - if it's js error, should check values you're using
- 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.
- if it's there not showing up, either create non-hovering solution, or tweak css work.
Comments
Post a Comment