|
Question Hacker 1: want to make it easy for users to add members to a particular group, without seeing all of the available groups (administrators, members, everyone). To do this I need a way to forward the initial groups management ajax page to the panel for adding members to that one group. Solution Hacker 2: try putting this in the top of the javascript in /views/groups/ index.ajax: (where it says the_group_id, substitute the integer 'id' field for that group. I got this by looking in the table with Navicat)
redirect_to( "<?php url_for( array( 'resource'=>'groups', 'action'=>'entry.json', 'id'=>'the_group_id' ) ); ?>" ); |