Fuel CMS is mostly Codeigniter. It might help to think "how would I achieve this in Codeigniter" and proceed from there, because 95% of the task will be solved by typical Codeigniter methods (Models, Views, Controllers). Once you have something work…
Absolutely possible for all 3 requirements.
Tank auth or Ion auth could be used for your front end users, you can create admin users with granular permissions in the CMS.
You can create "simple" modules as per Codeigniter, using the application d…
Thanks - I used the 2nd suggestion, in a fashion. I deconstructed the _render() method from Blog_base_controller and used it to my own ends, which seems the right way to do it - build up the layout inside out and then display.
Should have resigned …
What sort of works (albeit with __FUEL_MARKER__ comments aplenty) is loading the view with
$this->load->module_view(SPHIDER_FOLDER, 'themes/default/index',$data);
and then adding the template blocks individually to the view as a sandwich:
…
Using
$this->load->module_view(SPHIDER_FOLDER, 'themes/default/index',$data);
allows variables ($data) to be passed and rendered, whereas
$page_init = array('location' => 'search/index'); $this->load->module_library(FUEL_FOLDER, '…
Further to the above, I have moved all the libraries, controllers, views and so forth into my advanced module, configured the routing and it's all working except... I'm not sure how to configure the view location.
I have this in /fuel/modules/sphid…
Sorry that didn't help.
Actually, the correct (Fuel) way to achieve what I want is to incorporate the front-end views in the Fuel module I've created - that will complete the DRY refactoring I'm after, although having a working Third Party folder w…
Yup I did some debugging and the update() method was insisting on using SET `id` = '', and since there was no id being explicitly set, it found the right record, and overwrote the id with 0. Why it persisted in this I don't understand. I wonder if -…
I worked out a more satisfactory way of getting Active Record to do what I wanted:
function _update_thumb_field($pk, $thm) { if(is_numeric($pk)) { $where = 'id = '. $pk; $data = array('thumbnail_file' => $thm); $str = $this->d…
Great - I gave up after meeting oddness with manipulating the "edit" page! Script that worked OK for "create" would flash and disappear on "edit".
The new window is the better way.
Mmh - that code works OK for "create", but not for "edit". Seems determining the parent element (td) of the editor is problematic for edit mode. If I change the selector for obtaining the parent (assigned to var container) to "vars--body" I can - fl…
The /preview url seems eminently reusable. I rejigged the code above to:
if($ckEditor) ckAddPreview();
in the add_edit function (as before), but altered the rest to:
function ckAddPreview() { // add a link, form & iframe // link submits for…
I've made a start on a CK Editor preview, here's where I got to: in PageController.js I added this to the add_edit function
if($ckEditor) ckAddPreview();
and then tacked on to the same script I added
function injectCKContents(w) { var wysiwyg =…
Just experienced the exact same thing uploading to the server. Changed the file "jquery.cookie.js" to "jquery.c00kie.js" and likewise changed the reference to it in fuel.php. All OK now!
Hmm. Actually, now I've tried this out my initial scepticism was right. Setting the order key of the "documents" field to a high value does not move it relative to all the other fields.
I wanted to set the documents field last in the entire "edit/…
Actually I meant what's the best means of getting the CMS page id from the front-end view (or block), one rendered by $this->fuel_page->render()? I took a look around the forum and a method as good as any (?) seemed to be:
$location = uri_pat…
Now I'm looking into the pages_model more closely and realise it's not as familiar as I thought. The model isn't (obviously) "fuel_pages_model", and the __construct uses "pages" not "fuel_pages"?
Also, the on_after_save function is working and that…
Yep, the on_after_save is working fine, it's the select back that seems to be the issue. I've been debugging what "find_all_array_assoc()" might be returning, and oddly, it seems $values['id'] is empty even on edit (eg if the url in this case is '/…
Yes that fixes it completely - at least in 2 recent exports of Fuel that I have. In one that dates back to September, it still breaks, but there must be some other issue there that's now not relevant.
Thanks - as usual, it's an easier solution in Fuel CMS than I imagine. The tagging input now works very nicely.
My admiration of Fuel CMS keeps growing, it's really a magnificent project.
Yep - that works - along with the snippet you gave me for pagevariables model.
I must have missed the "view" param to add_variables() in reading the guides. I didn't realise location and view could be defined individually, but it makes sense that t…
Regarding the line added to the page variables common query method, it has drastic repercussions on the admin behaviour - see http://www.getfuelcms.com/forums/discussion/comment/2582/#Comment_2582
Just downloaded commit 007f567 and the admin now works, and I know why!! It has overwritten some changes in the page variables model. On a related issue (http://www.getfuelcms.com/forums/discussion/comment/2558/#Comment_2558) a suggestion was made t…
I've just tried the same thing on OSX and I get the same results. It's not the id = 0 issue, by the way. I'm using a copy of Fuel downloaded recently, but not the exact same code as I was using on Windows.
On Windows I was using Wamp, but on OSX it…