Field Editor

24 posts by 2 authors in: Forums > CMS Builder
Last Post: December 27, 2007   (RSS)

Re: [Djulia] Field Editor

By Dave - December 27, 2007

Whew, I'm glad to hear that! :)

After we release the next version I think I might write up a tutorial on how to do this so it's easier! :)
Dave Edis - Senior Developer
interactivetools.com

By Djulia - December 27, 2007

Hi Dave,


I could add features to limit on a menu by menu basis if users are allowed to "add" or "remove" records, but it would affect all users and you'd need to turn it on and off when you want to add/remove records again.


I use this solution, to prevent, that the recordings are deleted by the user.

in /lib/menus/default/list.php

<?php $username = $CURRENT_USER['username']; ?>
<?php if ($username == 'admin'): ?>
<a href="javascript:confirmEraseRecord('<?php echo htmlspecialchars($menu) ?>','<?php echo $record{'num'} ?>');">erase</a>
<?php else: ?>
--
<?php endif ?>


But, it is not best solution, it would be better if it were possible to indicate only some recordings.

But, I am certain that you will find a solution for a future update. [;)]

Djulia

Re: [Djulia] Field Editor

By Dave - December 27, 2007

Yes there's a checkbox in the next version to disable erase for a section. So it's very easy to turn on and off. That's in the next version.

And further down the road we'll have more fine grained user access controls.
Dave Edis - Senior Developer
interactivetools.com