Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

admin

About

Username
admin
Joined
Visits
8,800
Last Active
Roles
Administrator

Comments

  • There should be a 5th parameter called $just_count (unless you are on a pre-1.0 version of FUEL), that should fix your problem. Try this: function list_items($limit = 10, $offset = NULL, $col = 'title', $order = 'ASC', $just_count = FALSE) { …
  • I'm sorry but I just don't quite understand the question. Perhaps an image or URL to reference what you are wanting? It looks like you are pulling in the header file as a $vars variable: $vars['header'] = $this->load->view('_blocks/header',$va…
  • There was periodic bug with MY_Model::options_list() method on the develop branch earlier this week, that would have both the keys and values be equal in a dropdown list (which could be used for filtering the data). Is that what you may be experienc…
  • What view is this error happening on? The list view? If so, what does your module model's list_items method look like (if you added one)?
  • What kind of "header" file are you needing? To do this, you would probably need to create your own module that inherits from the Fuel_base_controller and call the parent::__construct() to validate the user, then create your own view file that render…
  • There is a "filter_join" model property that can be used. By default it is set to "or". It can be changed to "and". Alternatively, you can use a key/val array to say how to join which fields: public $filter_join = array('col1' => 'or', 'col2' =&g…
  • That's a valid issue. The last_modified_by field shouldn't change if you have it limited to just a single user. So something like the following should work: public function on_before_save($values) { $CI = get_instance(); $this->_editable_by_us…
  • If you add _equal to the filter key, that should do an exact match. If you look at the base_module_model.php file, there is a "_list_items_query" method that looks for different fields names (e.g. {field}_equal, {field}_from, {field}_fromequal...). …
  • The generated controller at fuel/modules/backlog/controllers/backlog.php has an issue where the last line that calls the admin render method should be: $this->fuel->admin->render('_admin/{module}', $vars, '', BACKLOG_FOLDER); A fix for this…
  • I've pushed an update to MY_Model to automatically append the table name if it doesn't exist for the options_list method. Also the CKEditor configuration issue should be fixed now in the develop branch as of this morning.
  • No issues that I know of.
  • I would use GIT and pull from the master branch and resolve any conflicts that may happen in your application folder files. Normally when we start projects we pull from the master branch: https://github.com/daylightstudio/FUEL-CMS.git There will al…
  • It sounds like you will need some extra javascript assistance for the dropdown to pass something the prefix as a URI segment or query string parameter to your controller upon select. To do this, I'd recommend creating your own javascript controller …
  • Is each product category record tied to a "site_id" foreign key value to a sites_model or something similar? If so, you could add a filter in you module configuration in fuel/application/config/MY_fuel_modules like the following which will create a …
  • I've made some updates to the base_module_model in the development branch to allow you to limit the results based on the user that created the page. The changes will only work for pages since they have a last_modified_by field to query on. The fuel_…
  • Sorry... I thought I replied to this but just noticed that it never got submitted. FUEL doesn't have a multi-website mode and in your case, it would require you to have 4 different FUEL installations.
  • I'm not sure at this point and probably won't get to digging into and fixing the problem for a while. So if anyone else has the time to dive in, I'd be happy to assist. Here are a few links to get started down the right track. https://developers.goo…
  • If you are wanting to create a user record in the database, you can do that from the fuel_users_model. Below is some example code. $model = $CI->fuel->users->model(); $user = $model->create(); $user->first_name = 'First Name'; $user-…
  • Each model has a copy of the $CI->db object attached to it (to avoid conflicts with other model's active record). Because of this, you won't have the same db object across models. To hopefully help with this, in the develop branch I've extracted …
  • You mind updating to the develop branch (you can merge it in via GIT). The tag category showing up should be fixed in the develop branch already and will include the changes for the next release: https://github.com/daylightstudio/FUEL-CMS/tree/devel…
  • Try changing the has_many to the following: public $has_many = array('tags' => array(FUEL_FOLDER => 'fuel_tags_model'));
  • A few questions to help debug the issue: 1. What does your has_many property look like? In particular, is there a "where" condition in the has_many property? 2. Do you see any relationships in the fuel_relationships table for the tags and your model…
  • When you use a block, you have to put in the HTML for the form tags and requires a little more manual work. The submission when using auto, goes to forms/process/{form_name}. There are also to hidden fields that get created that you may want to add:…
  • You can redefine the value by passing 'max' => {yourvalue} in your form_fields model method: function form_fields($values = array(), $related_values = array()) { $fields = parent::form_fields($values, $related_values); $fields['my_field…
  • This seems to be a bug with IE. I've posted a fix in the develop branch which will include all the changes for the next release: https://github.com/daylightstudio/FUEL-CMS/commit/ec42591ea48986e055abe216e03850b4da8fdf43
  • Do you have some example code to try and replicate the problem. Also, are you needing your own relationships tables or can you just use the default fuel_relationships table?
  • FUEL has a built in relationships table that it uses for it's has_many and belongs_to relationships. This means you won't need a products_to_categories table. However, you can set your model to save to a different table (which requires 5 fields, one…
  • It depends on what your server supports: http://stackoverflow.com/questions/4279904/codeigniter-and-its-uri-protocol
  • You should just be able to place those folders in the fuel/modules/{module} name. You will need to rename the folder most likely from what is downloaded to the module name (e.g. user_guide, backup, etc). Tools is just a grouping in the navigation an…
  • Looks like you are right (although you could also create a folder at fuel/cron and make it writable to work). I can make an update to the repo with the following: $config['cronjobs']['crons_folder'] = CRONJOBS_PATH.'crons/';