The on_before_delete method could be used to check the relationship data and if it exists, set an error on the model which will prevent the deletion from happening.
public function on_before_delete($where)[ { if ($this->do_validation_check_me…
Do you want to just delete all the bio data first for the attorney before you begin the loop? Also you could add a hidden id field to your repeatable 'biodata' form field. What does your form_fields look like?
It looks like you are missing the parent_id for each $news_nav item. Also, the _variables/nav.php file is what is used by default for the fuel_nav function and you could try just adding to the existing $nav array that is there your categories:
$all_…
Just to make sure, have you cleared the cache in FUEL. Usually the fuel_nav stuff is in a layout and changing layout content requires there to be a cache cleared or you logged in (if logged in, it doesn't use the cache so you see the freshest change…
This is a bug. A newer version of the blog was released this week and a subsequent bug fix for this issue was pushed today. The update requires a few SQL updates which can be found in the install folder. Let me know if you run into any issues.
Sorry... after reading this again it sounds like you want the menu to start from the news area and all of it's children correct? If so, try adding the "parent" parameter to the fuel_nav function itself (not parent_id like for each menu item):
$vars[…
There was actually an issue if you don't use your own controller it would show a 404. I've pushed an additional fix for that:
https://github.com/daylightstudio/FUEL-CMS/commit/25432d13b03afbbfba8c5ec104f0542e6c631bf5
There is currently a bug in the master branch. I've pushed a fix in the develop branch which will be in the next release:
https://github.com/daylightstudio/FUEL-CMS/commit/558e86e1b274f0df3916a2870f35b3c79be5065b
Continue to use parent_id. Also try adding the "active" parameter to the to the 'news' nav item in your nav.php file:
$nav['news'] = array(.... 'active'=> ':children');
I think you are on the right track here. Try using 'news/'.$ac->slug for the key instead of $ac->name like this:
all_cats = fuel_model('categories', array('select' => 'slug, name')); foreach($all_cats as $ac){ $news_nav['news/'.$ac->s…
I think I see the issue. I've posted a fix for this in the develop branch:
https://github.com/daylightstudio/FUEL-CMS/commit/be271d5bfe2258426c8cd1192d6144ec92f22084
You would need to remove the .htaccess file if you don't want to use it. Is .htaccess with the mod_rewrite module even installed on the server? Also, are there certain things it doesn't like such as Options +FollowSymLinks or Options -Indexes ?
I believe there may be a fix for this in the develop branch:
https://github.com/daylightstudio/FUEL-CMS/commit/a20ecbe8890c4c917687180ff6cb4e631084d4d5
To create CKEditor plugins, you'll need to dig a little bit into the CKEditor documentation. The fuelimage and fuellink can be looked at as examples. Note that in the fuel/application/config/editors.php file it shows how they are both Added to the t…
If you instead create the form fields in the fuel/application/config/forms.php (as opposed to the cms), does that work? You may need to rename the one in the CMS or the config because the CMS one will be checked first. I'm trying to determine if it'…
So are you saying that that homepage::index method is getting called initially and within that index method you are using $this->fuel->pages-render and that is where the problem is (not that it's not hitting the controller but it's the renderi…
If you try a simple setup with a fresh version of 1.3.1 do you still have this issue. I tested it by creating a fuel/application/controllers/homepage.php controller and setting the $route['default_controller'] = 'homepage'; and it seemed to work OK …
I think there is something with your phpMyAdmin setup. I just downloaded the latest version of phpMyAdmin and had no issues. See this Stackoverflow potential solution:
http://stackoverflow.com/questions/24055394/1146-table-phpmyadmin-pma-tracking-do…
There is a demo website you can look at how to set this up:
https://github.com/daylightstudio/daylight-roasters
In particular, the MY_fuel_modules.php page
https://github.com/daylightstudio/daylight-roasters/blob/master/fuel/application/config/MY_f…
The news pages aren't created by default at that route for a simple module. You can implement post pages for the module though as explained here:
http://docs.getfuelcms.com/modules/simple#post_pages
Thanks for the report. I've posted a fix under the develop branch for you to try out. Let me know how it goes:
https://github.com/daylightstudio/FUEL-CMS/tree/develop
https://github.com/daylightstudio/FUEL-CMS/commit/14f29f7f9575f6e00e06f974cc81af84…
That looks like you'll need to modify the model's list_items method and include a join on the blog table:
public function list_items($limit = NULL, $offset = NULL, $col = 'id', $order = 'asc', $just_count = FALSE) { $this->db->join('blog', 'b…
I wonder if this is a bug. Roel, you mind replacing the get_module method in fuel/modules/fuel/models/base_module_model.php file (added FALSE as second parameter):
public function get_module() { return $this->fuel->modules->get(strtolower(…