Custom stylesheet for CMS module
I've added a custom js file to one of my modules in fuel/Application/config/MY_fuel_modules.php like so...
'js' => array('filename')
Is there a way to add a custom stylesheet for the CMS as well? Something in the MY_fuel_modules.php config like...
'css' => array('filename')
Would be great!
Comments
So I went into the user permissions area of the CMS as admin and checked the box 'Manage Players' but in the hierarchy just beneath it I have deselected Players Delete, Players Edit and Players Publish. The Edit and Delete text links still show up in the list view and the delete link as well as the multiple delete function even work for this user!
So, I must be understanding permissions setting wrong. Is there a way out of the box to allow a user to see the list but not be able to edit or delete any of the records?
Also included in that is a new feature Jonathan here at Daylight created which allows you to login as a someone else and quickly switch back. To do this, you must be a super admin and you'll see an extra action link in the list view of the users module that says LOGIN AS next to there name. Simply click that and you are logged in as that person. To switch back click the "Restore original user" link at the top next to your logged in user name.
There have been some pretty major changes over the last couple of months. Noticed several db tables have changed and much of the structure has as well. Is there an easy path to update to the latest version? For example, fuel_users password salt is gone and of course old passwords won't successfully copy over to the new table.
Also, I now get several errors calling the $CI instance, etc. Would probably take a LONG time to sort through all this because I have created several MY_ files based on some old fuel files. For example, I have a my_assets_model.php file in the applications/models/ dir copied from the old fuel/modules/fuel/models/assets_model.php file.
https://github.com/daylightstudio/FUEL-CMS/commit/12d822f1885500a0fa8375b406b960a07a48f54d
With regards to updating, it's tough to say what would be easiest based on if you made any changes to the FUEL core that may need to be replicated. In general 1.0 has removed as much as it could from the application directory and put it in the fuel/modules/fuel directory to make updating the FUEL module core easier going forward. Also, another structural change is that all extra modules are now in their own development repos (https://github.com/daylightstudio?tab=repositories) and would need to be downloaded and installed. In particular, I'd install the user_guide module which has a lot of new documentation around 1.0 and some of the updates as well as a new advanced module installer command to install the proper permissions automatically for an advanced module. It also covers the new "fuel" object in which many things are attached.
Here is what I would recommend on how to update:
1. Create a new project folder and checkout the latest 1.0 branch from GitHub and leave it as a remote repo so you can easily pull in 1.0 updates while it's still in beta
2. Go through the install directions for 1.0 beta
3. Copy over from your old version to the new the following files:
- fuel/application/config/MY_fuel.php
- fuel/application/config/MY_fuel_modules.php
- fuel/application/config/MY_fuel_layouts.php
4. Copy over in models, controllers, views and custom helpers (not those that are part of the fuel core because they are now in the fuel/modules/fuel/helpers/ folder).
I'd start there and see how it goes.
Ok, so what I want is to give a user access to a simple module's list view only (players_model) AND be able to export that list as csv. I created the following permissions in the CMS - players, players/create, players/delete, players/edit, players/export
I pulled up the CMS user and edited their permissions by ticking the players box and the export box. When I use 'Log in as" (cool feature btw!) for that user I am able to see the EDIT link out beside each of the records and I don't see the export button across the top. If I click the edit link it of course takes me to an ugly page that says 'you don't have permission...'
Would make more sense to not have the EDIT link there if that user has no edit permissions. Also, what do I do to get the Export button to show up for that user?
Thanks in advance!