Avatar

Howdy, Stranger!

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

almostcompletely

About

Username
almostcompletely
Joined
Visits
380
Last Active
Roles
Member

Comments

  • That's helpful, thanks. My module also has another situation that is slightly more complicated however. I have some "copy" fields which are created manually in the module: $str = '
    /*my manually created content*/
    in Inline editing of foreign keys Comment by almostcompletely July 2014
  • Cool. Thanks. I manually pulled in the fuel.css and fuel.min.css rather than pull from git and I wanted to stick with the production version (to match my live server). I needed fuel.min.css too to get the profiling in the actual page view
  • I think I've cracked it. Fingers crossed. Thanks for your input.
  • So I've now created a module view "personnel_index/all". It's not referenced on the site itself but you can navigate to it directly. This page lists all "personnel_index/detail/XXX" links. By manually adding "personnel_index/all" to the search list…
  • Also, the module records are only exposed through the module. eg ./personnel_index/detail/J_DOE. A list of people is available via ./personnel_index/mylist. But I can't add the module to the search box... mylist exists on the main menu but not the …
  • In some cases, yes. The data is exposed on the result of a search. There's not a page with massive list of links to personnel records - perhaps I should have one/
  • I think you've confirmed what I've been suspicious of for some time - the search module cannot explicitly index the contents of tables populated by home-rolled simple modules. It seems that if module content happens to be referenced elsewhere on a n…
  • >> The search module has a search sub module (simple module) in it that has a preview_path value of 'location' => '{location}' Can't seem to find that in any of the search module code
  • Now, by truncating my fuel_search table on development, the personnel module content is missing from the reindex selector... Setting the preview_path seems to have no effect on populating this list. I can't think of anything specific I did on popula…
  • This is doing my head in My development server has this working perfectly, having duplicated the configuration to my production server, I still get no modules listed. Both systems are v1.06 ./application/config/search.php $config['search']['inde…
  • Interestingly, I didn't have a preview_path set. But indexing all records includes the module's URLs (because the links were within existing pages?) I've now added a preview_path and I have a list of module pages - excellent - this will allow the a…
  • Ha! thanks for that fix. I was wondering why it kept using the tmp table when my config had it switched off. I now have it incrementally adding to the index if I select a few pages from the list at a time. I think this will be acceptable to the adm…
  • Got it. Now the whole module makes sense (maybe the docs could do with an extra line or two to point this out - for the thickies like me?). I'm still having trouble indexing though. I've got some 4000+ pages to do. If I select a few from the reinde…
  • My repo at https://github.com/croaker000/ckf_assets now supports a CKFinder image picker.
  • oooh. Good idea. Should have thought of that myself...
  • I think I need a little help here to get started on over-riding the select dialog. It looks like I need to make changes to ./fuel/modules/fuel/controllers/assets.php Is it possible to tell fuel to ignore that file and use mine instead via a configu…
  • Well, now the easy one of the jobs is done. This plugin swaps out the native Site->Assets manager and uses CKFinder instead. https://github.com/croaker000/ckf_assets The problem of selecting an asset from a page's rich text editor still exists…
  • That seems to be ./applications/config/MY_fuel_layouts.php 'fields' => array('body' => array('label' => lang('layout_field_body'), 'type' => 'textarea', 'description' => lang('layout_field_body_description'), 'rows'=>'40')) 'styl…
  • So. If I want to customise the height of my body field in Pages (#vars--body), is there something in ./application/config/ I can edit to set along the lines of: $fields['bio']['style'] = 'height: 300px';
  • Fixed it! This is probably worth adding to the repo. In ./fuel/modules/fuel/assets/js/fuel/custom_fields.js add around line 132: // add custom configs config = $.extend(config, $(elem).data()); var hasCKEditorImagePlugin = (config.extraPlugi…
  • Thanks. Your suggestion is certainly viable for designing a new site. Unfortunately, the site in question is a migration from a static HTML based one and no previous thought had been put into organising the assets sensibly. I have other potential s…
  • Both combinations successfully adjust the underlying but the cke editor still appears at the same height. It must be a cke thing. I'll investigate and report back...
  • Cheers. I kind-of worked that out after playing. There are a few Fuel CMS reviews on the 'net that sort of implies otherwise and the Fuel CMS docs don't categorically debunk that assertion. It would be a very cool feature to have though
  • Makes sense now. Thanks. I pulled your changes into my 1.05 install (not the whole development branch) but still get the file type error - and the codeigniter upload function fails. If I edit your code and change "php|html|txt" to "*", the codeigni…
  • Ah. OK. So which bit of this is buggy? The fact I can't upload HTML or the (incorrect) error message? Should I expect to be able to import my HTML or should start planning on writing something? Cheers
  • Marvelous! Your Forum code block prettifying has given me the clue the "@rank"s are at fault. Weird that the query renders correctly for ::last_query() and so works when input outside Fuel. I guess I would have found this quicker with some query d…
  • Indeed. I use such queries in vanilla CodeIgniter all the time. In fact, the simple SELECT query in the example works in Fuel. In practice, using my complex query, adding $this->db->last_query() gives me the query I submitted ($q) and running…
  • with $page_init = array('location'=>'usedb','render_mode'=>'view'); $this->fuel->pages->render('usedb', $vars, $page_init); and a test "usedb.php" view, I have had some success - my test view appears with the "main" view's header &…
  • have implemented the .fuel/modules/fuel/controllers/module.php code and it works great. thanks.
  • groovy. works a treat, thanks. I'll come back to setting this up to work as a modal - will post my code when it works...