Delete "ADD MORE ACTIONS"

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
pasbonte
Veteran Member
Posts: 162
Joined: 2013-02-06 09:49

Delete "ADD MORE ACTIONS"

Post by pasbonte » 2015-02-13 08:56

Good Morning
How to remove choices in the windows "_view.php" eg delete "ADD MORE ACTIONS"?
thank you

User avatar
shasta59
AppGini Super Hero
AppGini Super Hero
Posts: 231
Joined: 2013-01-08 19:40
Location: Calgary, Alberta, Canada

Re: Delete "ADD MORE ACTIONS"

Post by shasta59 » 2015-02-15 13:29

Easy just look for the following in datalist.php

Code: Select all

/* if user is admin, add 'Change owner' action to 'More' menu */
			/* also, add help link for adding more actions */
			if($mi['admin']){
				$selected_records_more[] = array(
					'function' => 'mass_change_owner',
					'title' => $Translation['Change owner'],
					'icon' => 'user'
				);
				$selected_records_more[] = array(
					'function' => 'add_more_actions_link',
					'title' => $Translation['Add more actions'],
					'icon' => 'question-sign',
					'class' => 'text-info'
				);
			}
Modify the if statement to eliminate the second part where you see the 'add_more_actions_link'

It should then be gone.

Alan
Calgary, Alberta, Canada - Using Appgini 5.50 -

Post Reply