You will need to create your own template to do this. In the fuel/application/config/forms.php config file, you can specify the:
'form_display' => 'block', 'block_view' => 'application_form',
Similar to the example found in the link below whic…
You will need to change the "key" value of the $fields array of one of them to prevent it from being overwritten. Perhaps something like this:
$fields2 = $CI->stu_images_model->form_fields(); $fields2['same_name'] = $fields2['name']; unset($f…
That sounds like a prime candidate for creating a custom field type. There are a couple blog posts about that:
http://docs.getfuelcms.com/general/forms#association_parameters
http://www.getfuelcms.com/blog/2013/12/17/creating-a-color-picker-custom-f…
The options_list by default will try and find the first non "_id" field to use as the label if it's not specified in the method call. The has_many method uses that method without the parameters passed to it (so the default behavior).
If you change line 199 (as of 1.3 release) in the fuel/modules/fuel/controllers/module.php to the following, does it work:
if (( ! empty($languages) AND (is_string($first_option) OR (is_array($first_option)) AND count($first_option) > 1)) AND emp…
You'll need to modify your list_items method on your model. You could use the MySQL DATE_FORMAT function, however, that will mess up sorting because d.m.Y is a format that would be sorting on months first. The recommended way would be to loop throug…
The column fields for submit_value_text is only set to 50 characters so you'll need to up it for the html version.
For a manually created form using HTML, you'll want to include 2 additional hidden fields (if you view source on a generated one, you…
To overwrite the filter try using 'language_equal' instead of 'language' for the filter array key. The reason why it's filtering automatically is because you need to add a 'first_option' => 'Select a language' to the language filter which has an …
You can overwrite the model's list_items method and add your own additional select that will contain a sub select statement to get the count which looks at the fuel_relationships table... below is a really rough example to help explain (have not tes…
There are a few ways to do this:
1. Use the "after_html" parameter on the field to create the additional HTML for the second field.
$value = (isset($values['field2'])) ? $values['field2'] : ''; $fields['my_field']['after_html'] = '';
2. Crea…
I noticed the Undefined offset error yesterday and posted a fix.
https://github.com/daylightstudio/FUEL-CMS/commit/1a2da448437c1c1d8f6cc48a5a4162da520dc18a
If you inspect the language select element in your browser, is the "selected" property set o…
Sorry... the code snippet should have been the following (was missing the "render" part):
$this->fuel->pages->render("aktuelles/presse", array(), array('render_mode' => 'cms'));
Regarding your Form question, I'm not quite sure I understa…
So the situation I was seeing was that I would change language, hit save, then hit the back button, and it would still select the language that I was just at. However, in doing an inspection on the element, the "selected" property wasn't set on it f…
Could you confirm that the "selected" value on the option is set correctly? This seems to be something the browser is doing with remembering your last selection. I've pushed a small change to better help indicate what language you are in above where…
This appears to be a bug. I've implemented a fix in the develop branch which will have the next round of updates:
https://github.com/daylightstudio/FUEL-CMS/commit/3027b34d96ae4b6207bcf69fad544c55831d3499
The Fuel_blog module has a get_next_post and get_prev_post which you may want to look at. The difference being that it is using a date to determine the next and previous and you probably aren't.
https://github.com/daylightstudio/FUEL-CMS-Blog-Module…
For the page not rendering in the controller, is their a view file at the same path? If so, try try adding the "render_mode" property like so:
$this->fuel->pages->render("aktuelles/presse", array(), array('render_mode' => 'cms'));
That unlocking does seem to be a bit tricky and knowing when a user has actually left the page (or has just left it open in their hidden browser window). It seems like there would need to be some more complicated Session handling to constantly monit…
To prevent confusion between the javascript and the templating delimiters, it automatically inserts the space when it is inside a script block.
Perhaps another way would be to create an "iconsPath" variable in your layout (not in the page) and then…
Is it hitting the index method on the controller at all? I'd perhaps add an exit('test'); before $this->fuel->pages->render("aktuelles/presse"); to test if it outputs "test" to the browser.
Form_builder has a property of "other_actions" property that you can leverage to create a button right next to your save button near the bottom of your form. This can be implemented in your model's form_fields method by using the special key of __FO…
Is the above content being inputted through the CMS or is it set in a static view/layout file? If the latter, just use normal PHP code <?=assets_path("icons"....)?>
You could, for example, create a page in the backend with a location value of "contact" that has all the information you want to display the page. Then in your controller, you can call $this->fuel->pages->render('contact') to display the pa…