Re: Inline Record Editor

4 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 1   (RSS)

By daniel - May 14

Hi Jeff,

This is a custom-built plugin so unfortunately there's a limit to the support we can provide for its general use. Having a quick look at the plugin it's unclear if there are missing setup steps, or possibly some incompatibility with your CMSB version. If you can locate any specific errors it's causing we may be able to provide some guidance to resolve those. Otherwise, if you'd like some more direct assistance getting the functionality working, feel free to send us an estimate request (https://www.interactivetools.com/estimate/) and we'd be happy to look into it.

Thanks!

Daniel
Technical Lead
interactivetools.com

By kitsguru - June 1

I realize there is limited support for this plugin. One thing I noticed is that fields that are admin only, still are editable by anyone. Could you point in in the right direction so I can modify the plugin so that only admin only fields are not editable by anyone else?

Jeff Shields

By daniel - June 1

Hi Jeff,

CMSB has an internal function called "userHasFieldAccess()" which can be passed a field's schema array and will check to see if the current user has access to it - this is where I would start. It looks like the plugin has access to $GLOBALS['schema'] for the current table, which should contain the field schema arrays. Alternatively, you could also potentially use "getSchemaFields()" which can be passed a table name to return all the schema fields. Once you are able to determine if a user can edit each particular field in the table, you should be able to then selectively execute the replacements in the plugin.

Hope that gets you pointed in the right direction! Let me know if you have any other questions.

Thanks,

Daniel
Technical Lead
interactivetools.com