That's always been something that's bugged me too so I just made that change. The reason why it was like that is because the year, month, day values were never in the query results when generating the preview_path. I've added those values to the blo…
I believe that issue is fixed in the 1.0 beta. You could try upgrading to the 1.0 beta or simply try replacing the Menu class:
https://github.com/daylightstudio/FUEL-CMS/blob/1.0/fuel/modules/fuel/libraries/Menu.php
1.0 documentation:
http://docs.g…
The sort order should have been the following:
next_post: post_date asc, id asc
prev_post: post_date desc, id desc
It was missing the "asc" and "desc" after post_date.
Ah yes. _common_query will work for all find_{method}s and retrieving the data to edit for a record in the CMS uses the find_all_array method by default.
Nice... thanks for sharing. As an FYI, I just posted a fix earlier today to the blog module to fix the next_post and prev_post:
https://github.com/daylightstudio/FUEL-CMS-Blog-Module/commit/187e897d23c966d38d7fb4c6bd4531722088714e
Normally this is handled by having an "add / edit" button next to the field. This can be done in .93 by doing the following:
$fields['my_field']['class'] = 'add_edit my_module';
In 1.0, there is actually an "inline_edit" field type (http://docs.getf…
Is that assets/images/resources folder writable? Folders that aren't writable won't show up.
Also, if you are using the FUEL 1.0 beta, there is a "folder" parameter you can set with Form_builder that will allow you to just display images from that …
It's a magic method due to the has_many associations made near the top of the model. More can be read here:
http://docs.getfuelcms.com/general/models#relationships
Sure. I just added that as well:
blog/archives/{category}
You'll need to pull down from the latest FUEL-CMS-Blog-Module git repo:
https://github.com/daylightstudio/FUEL-CMS-Blog-Module
I just posted a change to the blog module for the separated out blog module that is compatible with 1.0. This allows the following URL structures:
blog/categories/my_category/2013
blog/categories/my_category/2013/04
blog/categories/my_category/2013/…
I'm wondering if it has to do with the 0777 permissions that are explicitly set in the MY_Parser.php file around line 93 and 94. Perhaps those should be changed to the "DIR_WRITE_MODE" constant set in the constants.php file.
Have you tried clearing the Page Cache in FUEL under the Manage area after making the change? Uploading and saving under the Blocks module in the CMS should be the same as just editing the view field contents. It will first look for a block in the C…
But is there an actual page in the CMS created with a location value of "travel/cruises" (under the Pages module)? Alternatively, if you change the render_mode parameter from "cms" to "views", you could have a view file located at fuel/application/v…
It could be because you need to set it up so that that page is recognized as being able to have segments passed to it. In your MY_fuel.php file, you can do something like the following which will allow 2 segments to be passed to the page sweepstakes…
You can customize the left hand menu to nest things under one area and it doesn't require it to be an advanced module. The default navigation menu setting is found in the fuel/modules/fuel/config/fuel.php file and can be overwritten in your fuel/app…
My mistake on the synax. Try the following instead:
$fields['__FORM_BUILDER__']= array('hidden' => array()); $fields['whoID']= array('type' => '', 'displayonly' => TRUE);
What if you try replacing that line with something like the following:
//e modifier is deprecated if (version_compare(PHP_VERSION, '5.5', '>=')) { $url = preg_replace_callback('#^(.*)\{(.+)\}(.*)$#', function($match) use ($fields) { if (!…
Yeah. The array('location' => 'my_page'...) should be substituted with your actual page and the $vars variable should have any additional variables that you need to pass to the page. The 'render_mode' => 'cms' is crucial for pulling the inform…
I'd first initialize the $images variable before doing $images[] above the foreach loop.
$images = array(); Then I'd check to see if $this->scratch_images_model->find_one_by_id($img_id); returns any value.
1. The ID field is hidden by default for the List view and is needed for the links used on the far right. You could try something like the following:
function list_items($limit = NULL, $offset = NULL, $col = 'post_date', $order = 'desc') { $this-&g…
Not yet. The e modifier is used in a few spots and those areas need to be updated to use the callback instead. We will have this before the 1.0 release but until then you'll have to either use 5.4 or implement the fix. If you do the latter, let us k…
By body field, I meant the contents of what was in the field labeled body in the CMS when creating the page and not the "body" tag.
When creating a page in the CMS, and clicking view, it will use the fuel/modules/fuel/controllers/page_router.php co…
A few questions:
1. In your fuel/application/config/MY_fuel.php file is the fuel_mode set to "auto"?
$config['fuel_mode'] = 'auto';
2. Do you have a "body" field in your layout and when imported, did the view contents display in that field?
3. If yo…