hide new buttons on 0.7

A place for users and developers of the Xataface to discuss and receive support.

Postby cbovio » Wed May 23, 2007 12:51 am

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.
cbovio
 
Posts: 25
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Wed May 23, 2007 1:16 am

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
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 28 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved