Page 1 of 1

relationships ..disabling the "add_existing_record" tab

PostPosted: Tue Feb 23, 2010 7:29 am
by Martin Pruss
Hi Steve
To simplyfy the "user experience" i 'd like to switch off the add_existing_record tab in my related records table because i don't need it.
I tried to override the [existing_related_record]
in the actions ini of that relationship table as well as in the parent table by adding just that above statement , without parameters.
I even tried commenting out the whole thing
in the main actions.ini like this:
Code: Select all
[existing_related_record]
;;mode = browse
;;template = Dataface_Add_Existing_Related_Record.html
;;permission = add existing related record
;;category = relationship_actions


no luck...
dataface version 0.7.1
are there other ways to switch this off (without changing something in the Xataface Core)?
regards
Martin













i

Re: relationships ..disabling the "add_existing_record" tab

PostPosted: Tue Feb 23, 2010 9:14 am
by shannah
In the relationship definition (in relationships.ini file) just set the actions:addexisting directive to 0. E.g.:
Code: Select all
actions:addexisting=0

Re: relationships ..disabling the "add_existing_record" tab

PostPosted: Wed Feb 24, 2010 12:38 am
by Martin Pruss
thanks .. Steve..
have a nice time
Martin