Advanced Module Toolbar (Fuel CMS 1.0)

edited December 2013 in Modules
What's an easy way to create a tool bar in my advanced modules?

Like this:
www.jbwebservices.com/fuel_adv_module_toolbar.jpg

Comments

  • edited 6:21PM
    There is a module property of "list_actions" you can set in your MY_fuel_modules.php file with the key being the action (relative to the fuel path e.g. my_module/export_data), and the value being the label. This will add the buttons before the "create" button.
  • Well, I've also figured out that I can just do this:
    $vars['actions'] = "html to display";

    Now, the problem I'm having is I have a file in the advanced module's '_blocks' folder and I can't load the data into the array. (FUEL CMS 1.0)

    $vars['actions'] =$this->load->module_view(GALLERYMANAGER_PATH, '_blocks/list_actions');

    I get "Unable to locate the file: _blocks/list_actions.php"
  • edited 6:21PM
    Do you want GALLERYMANAGER_FOLDER instead of GALLERYMANAGER_PATH (should be the name of the folder for the advanced module).
  • WOW! That worked!!! :)

    What's the best way to reference URLs in ad advanced module???

    I use this one the front end: <?php echo base_url(); ?>

    What's something equivalent for the backend???
  • edited 6:21PM
    There is a fuel_url function that can be used found in the fuel_helpers.php file.
Sign In or Register to comment.