That didn't quite achieve what I was expecting.
The Fuel bar will recognise the page is not published, but the CMS content is still visible when you are not logged in.
What I've done now is use
$this->fuel->pages->find(uri_string());
to …
This is at a tangent, but I've noticed that there is a line in fuel_pagevariables_model, in the _common_query method, that adds published = 'yes' if the call is not from the admin, and where honor_page_status is true, but I can't see when honor_page…
Something of interest I've noticed by using that render_mode property is that it affects the way the view (as I'm currently using it) is rendered.
In the code examples above, I'm loading a view that has the home page layout eg (in a simplified way)…
Yep that works - I'd forgotten about that - it's a property that's transposed from v0.93, in a way?
Incidentally the User Guide doesn't list the value "cms".
Thank you, that's actually a big step forward for my use of FUEL v1.
No the Fuel bar is just "back to admin" and "logout".
I'll spell out what I'm doing a bit more. In MY_Controller I have a method renderCMS():
/* * Merges controller vars with CMS vars and renders page */ function renderCMS($view, $controller_vars…
Yep, creating, say, an advanced module "membership" with sub models of "members" and "groups" works fine. It does mean you end up with a model "membership" that may be surplus to requirements, but that isn't necessarily an issue (it could be a model…
I'm still stuck on getting the sub models to show up using the Fuel "module" controller.
The parent model (which has the same name as the module) is linked to the module controller OK, via the module routing (as per the Blog example). So the CRUD f…
OK - just worked out the "has_many" property for my module. Picking jaw off floor now.
Thanks, I didn't bother getting the blog module from Github before as I didn't realise it was v1 ready.
Thanks again, great progress in v1
If I could outline what I want to do with this advanced module maybe you could save me some time if it isn't going to work the way I expect?
I want to create a "site_users" advanced module, using the ion_auth library and views, where I can! So the …
This is interesting: if I change the table name in the generated model's construct to "users", it will display the table "fuel_users". I guess these are synonymous somehow within Fuel?
I went back to basics, with a new install of Fuel, and it's all worked out as expected.
I was using a customised repository of Fuel v1 that has various modifications to it, including replacing the default controller and custom MY_controller. Perhap…
Yes, I noticed I had a "_model_model"! I think I will have to start from scratch, just to be clear about what I'm doing and how I got there.
I've been taking a look at other advanced modules (eg Blog and Google Analytics amongst others) and it is h…
The controller class name is OK now, but I'm still getting
Fatal error: Call to a member function info() on a non-object in ... module.php on line 44
when I hit the ion_auth controller, which is currently:
<?php require_once(FUEL_PATH.'controll…
Despite the above, I'm still not clear on what fuel_block() can do for me. I am writing a poll module, and need to display the active poll from the database in a form which might as well be in views/_blocks, since it will be on many pages. Thinking …
Yes, it's brief but tantalising.
It looks like pages might be created via scripts rather than the admin, for example?
I was wondering if there were any revised tutorials in the offing?
Out of curiosity I went back to the "videos" module I was working on which sparked this thread, and for editable_asset_filetypes I have
$config['editable_asset_filetypes'] = array( 'images' => 'jpg|jpeg|jpe|gif|png', 'pdf' => 'pdf', 'me…
Of course! admin_enabled was FALSE, because I'd just rushed in a tried the command line immediately!! However, with "admin_enabled = TRUE" I now get an error about
Unable to load the requested file: helpers/user_guide_helper
I used the branch fil…
When I try to manually install the user_guide from the command line (Windows), I get the 404 page.
I'm using php index.php fuel/installer/install user_guide and am seeing the 404 html being returned.
I tried replacing '/' with '\' but get a disall…
The list_items() function is for the list page that you initially see when clicking on the module, form_fields() controls the create /edit form (as you will know by now).
So yes you would need to hide fields individually, although you could create …
Actually, curiosity got the better of me and I tried the hook option, which seems to work OK. I wrote up the procedure on a blog
http://adventuresincms.blogspot.co.uk/2012/05/authenticating-pages-in-fuel-cms.html
I'd imagine the hook method could…
I've been looking at authenticating pages individually, so I wrote this blog piece which might help:
http://adventuresincms.blogspot.co.uk/2012/05/authenticating-pages-in-fuel-cms.html