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

  • It does need to be added so that the ajax request will work. You can manually set what appears in the left menu by configuring the fuel nav property $config['nav']['modules'] in fuel/application/config/MY_fuel.php (you'll need to add it). The defau…
    in Add Edit Comment by admin June 2011
  • It should be the key value used in your MY_fuel_modules (not the model name). If that still doesn't work, does Firebug give you any insight as to what the error is? It should be Ajaxing in the content.
    in Add Edit Comment by admin June 2011
  • If you do a print_r() on the global $_SERVER variable, what do you see? With regards to the PHP Error message, are there any more specifics about the error that can be seen? That module uses DOMDocument and xpath to query elements of the page and ma…
  • That is for the inline editing on the page and they should be removed upon proper execution of the page rendering. However, sometimes if there is a PHP error on the page that stops the execution of the script, they can sometimes appear. If there are…
  • Try adding the name of the module after add_edit. 'type' => 'add_edit product_features',
    in Add Edit Comment by admin June 2011
  • Try adding "precedence" to the fields returned by the list_items method. This can be done one of two ways: 1. By add the following to your MY_fuel_modules config file to the appropriate module (where the array is the columns you want to display, but…
  • Set your display_field value for your module in your MY_fuel_modules.php file to 'text'. Additionally, you can add "filters" field names to your model. The fuel/modules/blog/models/blog_posts_model.php file has an example: http://www.getfuelcms.com…
    in Searching Comment by admin June 2011
  • You should put it in the table your module is using.
  • The profiling should be outputted automatically if you set the 'enable_profiler' value in MY_config. CI's Output class takes care of the output and isn't something specific to FUEL. FUEL has just set up a convenient post_controller hook in fuel/appl…
  • Where are you seeing this problem? If you view source, do you see the code (it may be hidden by how the CSS is setup)?
  • 'precedence' is the default field name. This blog posts talks about it a little more (in particular the "precedence_col" module parameter: http://www.getfuelcms.com/blog/2011/03/14/fuel-cms-0.9.3-released
  • I believe the page_id stays the same and gets passed to the fuel_page_variables table with the different lang_id, however, the unique index found on the fuel_page_variables table needs to be changed to be page_id, name and lang_id (otherwise it will…
  • For the pencil to show up within your controller, you may need to set the render_mode value on Fuel_page to 'cms' like so (I'm using the page contact which would have a form): $page_init = array('location' => 'contact', 'render_mode' => 'cms')…
  • Are you adding the function call to a page variable field within the admin? If so, that may be a Dwoo parsing error. If you look at the fuel/application/config/parser.php file you'll see a "parser_allowed_php_functions" configuration parameter which…
  • Yeah... you can use any helper and load it just like you would in a normal CI app (autoload, controller, view file etc). Alternatively, FUEL comes with a Form and Form_builder library class (along with it's own Validator class).
  • Noted.
  • Thanks for sharing Webcam. Does your solution have location/slug support?
  • Are you saying you are having issues viewing the output in the admin? $this->_render in Fuel_base_controller uses $this->load->view to render as well, it just loads the fuel_header and fuel_footer files as well.
  • That should work too... and like you mentioned, you can always use a normal CI controller if you want to.
  • I've added this to the repo. Thanks for the contribution.
  • NeoArc is correct. FUEL only looks one URI segment (the controller segment level) deep for the _variables files and does not look in subdirectories. However, in your _variables/view.php file you can add a $pages variable right below your $vars varia…
  • Thanks for the suggestion. We'll look into that. Another option is to change the $config['fuel_assets_output'] value. You will need to make every fuel/modules/{module}/assets/cache folder writable. The options are as follows: * FALSE - no optimation…
  • Yes... you are right... I've edited above to correct.
  • Sure. You could put logic in the layout, and then select that layout for the page. The block is another alternative as mentioned above, but it does require one line in the body of {fuel_block('my_partner_block')}
  • This happens because of around line 140-141 in fuel/application/core/MY_Model.php, we clone the DB object onto the model instead of just using the CI->db object. The reason for this was to prevent active record query issues across models. However…
  • So it sounds like you are wanting to merge in module information into your page controlled by the CMS correct? If so, you will need to use the Dwoo templating syntax OR you could import that view file and it should translate most of PHP code of your…
  • The user model and corresponding controller is located in the fuel/modules/fuel folder.
  • That's a bug. I've pushed a fix for that. Thanks for the report. https://github.com/daylightstudio/FUEL-CMS/commit/f241e9da872059b91240d5dc0e6be246fe6a0b52
  • There are several areas you will need to change to get this to work (please chime in webcam if you have any input). I'll take a stab at the pages area as to one possible way to approach it (bear in mind that this is theoretical and I haven't actuall…
  • That sounds like something that a site variable should be able to do for you. If you need to update the value of a site variable outside of the admin, then you could load and use the sitevariables_model to do updates (in a view or controller): // in…