relationships ..disabling the "add_existing_record" tab

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

relationships ..disabling the "add_existing_record" tab

Postby Martin Pruss » Tue Feb 23, 2010 7:29 am

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
Martin Pruss
 
Posts: 61
Joined: Tue Oct 23, 2007 2:22 pm
Location: Berlin

Re: relationships ..disabling the "add_existing_record" tab

Postby shannah » Tue Feb 23, 2010 9:14 am

In the relationship definition (in relationships.ini file) just set the actions:addexisting directive to 0. E.g.:
Code: Select all
actions:addexisting=0
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: relationships ..disabling the "add_existing_record" tab

Postby Martin Pruss » Wed Feb 24, 2010 12:38 am

thanks .. Steve..
have a nice time
Martin
Martin Pruss
 
Posts: 61
Joined: Tue Oct 23, 2007 2:22 pm
Location: Berlin


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 44 guests

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