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

  • I'd recommend downloading the "demo" branch which is kept up to date: https://github.com/daylightstudio/FUEL-CMS/commits/demo
  • That looks like a bug. I've posted a fix for that. It had to do with the models default_date property being set to '0000-00-00' which is seen as "not empty". It was changed to 0 and it now should work. https://github.com/daylightstudio/FUEL-CMS/comm…
  • ok... thanks for the heads up. I'll see if I can replicate on my end as well.
  • I agree... I'm pushing a fix for that very soon as well as an issue with the editor being used in inline editing showing a javascript error (so you may want to do a git pull).
  • Unfortunately there isn't an easy way to do this at the moment. You could set up your bootstrap to point to a single codeigniter folder (e.g. fuel/codeigniter) and then point it to a different application directory for your sites. The problem is tha…
  • I think I may see your issue. In fuel/modules/fuel/libraries/Fuel_page.php file, in the _assign_location() method around line 90, it grabs the segments directly from the URI and it ignores what is in the location value if you are pulling from the da…
  • A couple questions: 1. Is the change_password view file located at fuel/application/views/members/change_password? Or are the view files in a different module's view folder (e.g. fuel/modules/members/views)? 2. What is showing up right now?... anyth…
  • The URL that your AJAX can call would be /cities/ajax_method where "ajax_method" is the controller method you created to handle the request on cities.php.
  • I'd use one of the model hooks like on_before_save() or on_before_validate() on your model: http://www.getfuelcms.com/user_guide/libraries/my_model (at the bottom of the page).
  • The left menu items get a CSS class assigned to them based on their name in the menu. If you are using an advanced module (one that is a subfolder in the fuel/modules folder, then you can add a CSS file at fuel/modules/my_module/assets/css/my_module…
    in model icon Comment by admin May 2011
  • The Pages module is a good example to look at in fuel/modules/fuel/config/fuel_modules.php. You create permissions with the name of the module and then an underscore and the type of the permission (e.g. publish, edit, delete). 'permission' => arr…
  • Where does the cities.php controller exist? In the fuel/models or fuel/controllers folder?
  • You can add the CSS class 'multiple' to the form field and it will allow you to upload more then one image. You may need to use one of the model hooks like on_after_post() to do any processing of the images. // in your models form_fields() method $f…
  • For inserting new records, you can use 'create' instead of the $article->id for the first parameter. I'll update that graphic to show the use of the dwoo syntax (that was a screenshot of a test page we used for an older templating syntax.
  • I forgot to mention, that if you want to edit from site, you can use the fuel_edit() function: {$articles = fuel_model('articles')} ?> {foreach($articles article)} {fuel_edit($article->id, 'Edit Article', 'articles')} {$article->title} {/fo…
  • If it is a page editable in the admin, then you can use the Dwoo templating syntax: http://www.getfuelcms.com/user_guide/parsing/ http://www.dwoo.org/ {$articles = fuel_model('articles')} ?> {foreach($articles article)} {$article->title} {/for…
  • Sorry for the delay in getting back to you... I missed your response. I'm not able to replicate the issue at the moment. Could you email me your model and any table SQL (info at getfuelcms.com) so I can give it a shot on my end. Also, make sure that…
  • That looks like a bug which I've posted a fix for so you can get a proper 404 error. It happens if you are using a controller that doesn't have a method or in your case you may need to use _remap. https://github.com/daylightstudio/FUEL-CMS/commit/b9…
    in Pagination Comment by admin May 2011
  • Thanks for the clarifications above for others. I'd also add that looking at the fuel/modules/config/fuel_routes.php file may help understand the routes some more because it contains the basic routing logic (comments in file should help explain).
  • For the blog, the FUEL admin controller is called blog_module (for that reason in that I didn't want /blog/ to go to the FUEL admin). With regards to the right side of the routes, if you create a 'simple' module, meaning one that is declared in yo…
  • I would look at the blog as an example, in particular the fuel/blog/config/blog_routes.php file which maps the blog_module controller to the FUEL admin (note that it inherits the Fuel_base_controller) and the other controller do not.
  • That's correct in that it will be orphaned. FUEL doesn't have a built in way at the moment to automatically update children. However, I could see that being a nice feature for both the pages and navigation model. To implement that, I would probably …
  • That looks like the correct asset path to me. Line 12 and 15 in the .htaccess are used to block access to all folders in fuel except asset files. What happens if you comment those out for now to test?
  • A couple questions? 1. What is the path for the broken assets? 2. What happens if you change the uri_protocol in the config to one of the other options? 3. What kind of dev environment (MAMP, WAMP, etc)? The pagination issue looks like it was a re…
  • You probably don't want to have it spider anything in the fuel/* directory although, the only links that should be visible from the robot are the links to module asset files.
    in robots.txt Comment by admin May 2011
  • Good to know.
  • Is your record class named correctly? I ask because it says stdClass instead of a Data_record class and stdClass won't have that method.
  • That's exactly how to do it. Glad it worked!
  • Possibly. There is an autoSort parameter that gets passed to that multi select plugin that will automatically sort the right hand values and by default it is set to true. See around line 370 in the fuel/modules/fuel/assets/js/fuel/controller/BaseFue…
  • That is a bug. I've posted an update for that: https://github.com/daylightstudio/FUEL-CMS/commit/92edd838fdca5ad2150a0f8707d700f1e3309303