Passing variables to model list view

edited July 2012 in Modules
Hey guys. I've created a simple model called 'Guestlists' that will display attendees of an event(facebook event). Is there a way so when you visit 'fuel/guestlists/{fb_event_id}' in the admin page, it will use the fb_event_id to retrieve the list of members attending the event and display them using Data table.

Thanks in advanced,
skeen

Comments

  • edited 5:23PM
    It sounds like you are maybe wanting a filter on the list view that's perhaps a dropdown of all the events that you can select and filter the list by, correct? If so, are you using the 1.0 beta branch or the current master branch? The 1.0 beta branch makes this easier because you can specify a filter in your simple modules config in MY_fuel_modules with a model and method parameter (the default is to use the list_options method). An example is below:
    'filters' => array('group_id' => array('default' => 1, 'label' => lang('form_label_navigation_group'), 'type' => 'select', 'model' => 'navigation_groups_model')),
    https://github.com/daylightstudio/FUEL-CMS/tree/1.0
Sign In or Register to comment.