Change database record link to different view mode?
11 posts
• Page 1 of 1
Change database record link to different view mode?When I click on the database record it goes to a view mode page. Instead of going into a view mode page I want it to directly go into the edit mode page. How would I do this?
Re: Change database record link to different view mode?I put default_browse_action=edit in the very beginning of the conf.ini file and nothing happens. It still directs to the view page
Re: Change database record link to different view mode?This should work. It has been in there since version 0.6 and I'm successfully running this directive on dozens of installs. Double check to make sure you don't have a typo in the directive.
Re: Change database record link to different view mode?Okay i found out that one of the [_prefs] options was disabling this feature because when I took out all the lines under [_prefs] it worked. I just have to go line by line and find out which one.
Thank you
Re: Change database record link to different view mode?One more question, how do I hide the view tab itself?
Re: Change database record link to different view mode?Create an actions.ini file if you haven't already in the main app directory. Then override the "view" action and either set it's category to something else, change the condition to "0" of "false", or set the permission to something that your users dont have access to.
An example of doing it by setting the category is as follows:
Re: Change database record link to different view mode?Hi there, It seems I am having a similar problem to the one described in the previous post.
Using default_browse_action=edit in the config.ini does not seem to have any effect. However I do not have any [_prefs] in the config.ini
Also, I am not sure if this is related but in the tables actions.ini file, if I use
then it seems to remove BOTH the view and edit tabs. Clayton
Re: Change database record link to different view mode?Hi, I have a question on relative matter.
In list view, when selecting a record, instead of default 'detail' view, is it possible to make an URL to that particular entry but in a different table. In my case: I have a table 'defektai' where the fields are populated from other tables, such as 'asmuo' (people) . If i select a row with a particular persons name (under a column "Atsakingas asmuo"(responsible person)) and I press on the name, I need that it would go to another table and open that particular name details. It would be perfect to set up such thing in this table, for a couple of columns. I attach a screenshot (if its of any help): http ://dl.dropbox.com/u/13952207/ss_xataface.png Thanks! Tadas
Re: Change database record link to different view mode?You can always build a URL to go exactly where you want to go using Xataface URL conventions. E.g.
index.php?-table=people1&person_id=10 index.php?-table=people2&person_id=10 One would go to the record from table people1 where person_id is 10 and the other goes to table people2 where person_id is 10. There are also convenience functions for generating URLs for you. e.g. Dataface_Application::url() and Dataface_Record::getURL() e.g.
-Steve
11 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 26 guests |