Avatar

Howdy, Stranger!

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

Gumster

About

Username
Gumster
Joined
Visits
520
Last Active
Roles
Member

Comments

  • Nailed it I think - there was a config of "fuel" being autoloaded. It didn't cause a problem in Fuel v1.1 but it created mayhem in v1.4.3!!
  • I used the Git merge option from guide, but I think the manual option may be better. I'm using a MY_Controller for some, but not all, controllers. For regular CI controllers, more works than not, but referring to the Fuel object in MY_Controller (to…
  • Thanks both of you - I found out another way - using the 'displayonly' => TRUE parameter will also not show a select button! But admin's solution seems definitive, so I have used that.
  • OK, so this is a bit late, but I found a solution! In MY_fuel_layouts.php as you suggested: /** * For shop module */ $config['layouts']['shop_main'] = array( 'module' => SHOP_FOLDER ); then in the controll…
  • I was getting this specifically: Error Code: 1055. Expression #26 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'display_name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible wit…
  • I hadn't tried that, and I just now have. Logged out of the admin, the messages element shows 'Undefined' briefly, but the form does submit and return, with the expected "After submit text" message. Presumably the "undefined" text should have …
  • So I still have this problem with CMS defined forms when using 'javascript submit' = 'yes'. Clicking Submit shows an 'undefined' message (jQuery undefined) in the 'messages' element, before rendering nothing but the jquery migrate tag (whilst sub…
  • I anticipated that $this->fuel->pages->render('category', $this->data, array('view_module' => SHOP_FOLDER, 'layout' => 'shop_main')); would render the 'category' view inside the 'shop_main' layout from the SHOP_FOLDER module …
  • yes - that's much neater, plus handles the layout in the 3rd arg array('view_module' => SHOP_FOLDER, 'layout' => 'shop_main') Many thanks!
  • So looking back at previous advanced modules I've done, and I think sort of like the blog module, I've ended up doing this sort of thing: $output = $this->load->module_view(SHOP_FOLDER, '_layouts/products/category', $this->data, TRUE); …
  • I recalled that $this->data = $this->fuel->pagevars->retrieve(uri_segment(1));is one way of getting ANY vars, but the main layout doesn't get applied. Looking back at other advanced module layouts, I have repeated the main layout inside …
  • Well for example: $this->load->module_view(SHOP_FOLDER, 'category', $this->data);
  • I had this working back in March, but now I've come back to it there are issues! When I submit a form (which renders OK) all I get now is a page with nothing but a script tag /fuel/modules/fuel/assets/js/jquery/plugins/jquery-migrate-1.1.1.js?c=…
  • I managed to get what I wanted without ajax: using on_after_post() I read in the sorting input array string, turned it into an array, and, based on the (key) order of the ids, saved them as precedence values. Much easier than I anticipated, thanks t…
  • Yep, that fixes it!
  • OK, I will try that out today, thanks for that!
  • To get the form into the block, you should just need the form helper - it calls on Form_builder class to render the form as HTML (and populate with any posted values too).
  • Ouch. If you don't need or care about the user / admin being able to define custom forms, then be aware there are other ways of providing contact forms. Generally I would create my own controller, use Form_builder class to create a form from a conf…
  • I got what I wanted by extending Fuel_forms(), and adding a new Fuel_form() function render_divs() I can then inject Bootstrap styles into the form fields (row_class=form-group, class=form-control) - Sass extensions only get you so far.
  • Re environment settings & email you could do something like: $email_cfgs = [ 'development' => [ 'protocol' = 'sendmail', 'mailpath' = '/usr/sbin/sendmail', 'charset' = 'iso-8859-1', 'wordwrap' = TRUE, ], 'production' =…
  • Hi Sigal, I recently began putting Fuel CMS sites onto PHP 7 servers, and it would be easier to use Fuel v1.4 (which includes CI v3.1.3). You need to ensure that libraries, models and controllers have filenames that match their class names exactly e…
  • Front end I always prefer divs - conceptually it's easier to extend Bootstrap sass to divs than table elements. Although, having written that, I don't think I've ever tried...! Client would like to use Form module in CMS pages, so it is there, in f…
  • The multi field sorting order in the right hand list doesn't seem to be related to the precedence column. What i would like to be able to do is sort right hand side (selected) items, and then save the precedence value back to the source table (eithe…
    in sortable Comment by Gumster March 2018
  • That works for me, thanks!
  • What seems to be happening is that some $found[1] values, whilst strings, do not evaluate as string properties of Fuel_forms class? eg one value that trips the error is 'javascript_submit'. Could the value $this->javascript_submit itself be an ar…
  • Line 1771 is return is_true_val($this->$found[1]); It's the master branch from Github, from last week.
  • I got exactly what I wanted with the multi field type - FuelCMS still has it!
  • Yes you got that right. I think I need to use the multi type definition in form_fields(), and test for edit mode, as the multi field filter won't be applicable until the record is saved. That also means an on_after routine to save the array.
  • I solved it. The permission key in each modules config was simply the name of the model, not the parent module + model! eg 'media_type' not 'education/media_types'. Thanks for your advice!
  • OK I've done that (thought I had already!) and now there is a tree of permissions as expected. But even if users have all these enabled, when logged in as them, the module is not visible in the left menu?