A few more questions:
1. Are you using the normal markItUp! editor for editing the body copy of your home page?
2. Do you see {img_path('sme1.png')} in the "body" field of your home page in the CMS?
3. In your fuel/application/views/_layouts/home.ph…
The search page just needs a "q" query string parameter attached to it.
search?q=test
You can create a form with a "GET" action and an input name of "q" to submit to that page.
To get results though, you must first build your index up which require…
This has not been implemented. If you have 2 options, you can specify a boolean property on your model to have the toggle feature in the list view:
public $boolean_fields = array('my_prop');
1. For the variables file you created, you only need to have the first option:$vars['layout'] = 'home'; The $pages['home'] option is if you are in a variables file other then the home one (which you aren't in this case), and the fuel_set_var option …
I take it that this pre_process isn't working correctly? Is there a function of readable_boolean that has been created and if so where does it exist and how is it loaded? Also, what are you seeing instead?
Remove it from the _common_query() method in your model would be my guess. If you generated the model, it is there by default and will need to be removed.
1. Use the "code" html tags
2. Are you on an older version of FUEL? The reason I ask is because it should be redirecting to start instead of index to prevent some issues we found on certain environment setups.
Have you tried moving your routes to after the included fuel routes? Or have you tried the process of elimination to figure out which route is causing the problem?
For the pencil icons to show up, you need to either use the fuel_edit() function or the fuel_var() function to embed variables in your layout. Those functions do the extra work of writing the inline editing code which allows the pencil icons to appe…
There is a valid_email function in the validator_helper file. The last part of the regex has:
[a-z]{2,6}
If you change it to something like [a-z]{2,10}, does it then work for you?
If you look at your browser console, in particular the AJAX request to that URL you posted above, what is the error/content that is being returned from that request?
I would recommend using something like block layouts which you can think of as smaller smaller set of block specific variables that can be used across multiple layouts:
http://docs.getfuelcms.com/general/layouts#layouts_block_layouts
Did you specify which view to use for the detail page. Here is some more information on how to do that:
http://docs.getfuelcms.com/general/pages-variables#specifying_a_view
I was missing a crucial part in the "my_find_one_array" method above where you have to loop through the data to transform it then return that data. Try that.
Normally, if there is a lot of PHP logic in a view file, say for example, you are grabbing images from the module to include in your slideshow and looping through their information to display, it's best to put that logic in a block file (e.g. fuel/a…
Setting the 'value' property that way won't work because it gets overwritten by what is saved in the database. There are 2 ways you can try to fix this. The first is to either overwrite the find_one_array method on your model or create a new method …
Try changing the following configuration parameters:
$config['language_default_option'] = 'es';
And changing the language folder name to "es":
$config['language'] = 'es';
Regarding the translation, that would be great. Just let me know how I can h…
You'll need to be more specific in your problem.
1. What are the URI paths of the pages you are talking about?
2. Did you create these pages in the CMS or as static view files?
3. Do you have multiple language settings set for the site:
http://docs.…
A few questions:
1. Did you alter the .htaccess file at all?
2. Is there an error message if you go the root index.php file (e.g. www.mysite.com/index.php)
3. Is there a .htaccess file further up the folder structure that may be preventing you from…
Since the model uses Active Record, you can do further where restrictions on a query like so:
$CI =& get_instance(); $CI->load->module_model(FUEL_FOLDER, 'search_model'); $CI->search_model->db()->where(array('location' => $my_…
1. You can use the Fuel_language class to detect the language of a page. I'll usually add the following to the fuel/application/views/_variables/global.php file so the $language variable is available on every page$varrs['language'] = $CI->fuel-&g…