hide navigation label in pages module
Just a simple question. I was wondering if it is possible to change the page information in the admin when one creates a page. I would like to hide the navigation label field because it screws up the navigation on the website and it does not need to be filled in anyway.
Is there a clean way to do this without changing the pages module?
Comments
I think we have a miscommunication. Let me try to explain. When you are logged in fuel you can click page and create a page. Then when you click create, you get the field that you can fill in (location, layout etc). Now I would like to hide the Navigation label field.
I hope this explanation is clearer.
As an FYI, that particular field will be moved into the pages_model.php file in the next release which will allow you to overwrite it using the $config['module_overwrites'] parameter in the MY_fuel_modules.php config file like so:
$config['module_overwrites']['pages']['model_name'] = 'MY_pages_model'; $config['module_overwrites']['pages']['model_location'] = 'app';
This will require you to create your own model named MY_pages_model.php placed in your application/models/ folder. It will need to inherit the pages model (you will need to require_once that model at the top) then overwrite the form_fields method to return the fields you want.