Page 1 of 1

PostPosted: Wed May 23, 2007 12:51 am
by cbovio
hello,

i need to hide new 0.7 buttons : copy, update, import and "with selected" buttons section.

for import, i've added in actions.ini

[import]
condition = "1==0"

it's OK. But for others, i tried with copy_replace, it's hide first copy button but not the one in selected section. And for others, tried "selected_result_actions", "selected_related_result_actions" but no way.

Last, i work in french language (great traduction, thanks Jean Carfantan) but some texts are not translated :

- "with selected"
- "logged in as"
- 'search' at top screen
- messages when records are created, updated

thanks for this new version.

PostPosted: Wed May 23, 2007 1:16 am
by shannah

Hi,

Thanks for the feedback.

These buttons are easy to remove, by adding the following to your actions.ini.Ê (That is add an actions.ini file to your application directory - don't change the one in the dataface directory).
[copy_selected]
[remove_selected]
[update_selected]
[update_selected_related]
[remove_selected_related]
[import]
[copy_replace]
[update_set]
Basically what this does is it replaces the actions of the same name in the dataface actions.ini file with empty actions.Ê Empty actions will not show up.
Now if you just wanted to change one of the attributes of the action, and not the whole thing, you could do something like:
[update_set > update_set]
permission=mypermission
This would override the update_set action but only change the specified parameters.Ê In this example we are changing the permission to access this action to "mypermission"
Thanks for pointing out the missing text to be translated.Ê Jean also has mentioned this to me... he is waiting for me to extract these strings into the en.ini file so that he can translate them.Ê That will happen shortly.
Best regards
Steve