BlogSphere - Feature Request: Upgrade Admin Block from static to dynamic
We have changed the D6AdminBlock subform from hard coded links to dynamic links. IN addition (through adding a second role) we also made it so you can specify if the link should show up to a Full Blog Administrator or a User Blog Administrator. We would like to submit this for review, but we need to submit the forms and views, please contact me if you are interested. below is a look at how the form itself is changed.
Thanks,
Mike Smelser & Judy Hessler
Rumpke Consolidated Companies
mike.smelser@rumpke.com
Code
----------------------
The subform "D6AdminBlock" should be changed to the following:
Add hidden CFD field "itemLinks" that evaluates to:
-----------------------
uAccess := @If(@IsMember("[BlogAdmin]";@UserRoles);"Blog Administrator"; @IsMember("[BlogUserAdmin]";@UserRoles);"User Administrator"; "");
dbLook := @DbLookup( "" : "NoCache" ; "" ; "adminItems" ; uAccess ; 5);
@If( @IsError( dbLook ); ""; dbLook )
<div id="Block_Admin" class="BlockOutline">
<div class="BlockTitle">
BlogSphere Administration
</div>
<div class="BlockContents">
<ul>
<Computed Value> (where <computed Value> = @Implode(itemLinks))
</ul>
</div>
</div>
<div class="BlockSpacer"></div>
Taken Actions by OwnersNo actions have been taken yet.