Fuel Pages Location Issue?

edited June 2016 in Modules
The location field in 1.4 is a drop down of existing views instead of being a text field. I don't think this is intentional, is it?

Comments

  • edited 3:35AM
    You may need to change your MY_fuel.php file so that the fuel_mode is set to "AUTO".
  • edited June 2016
    Alright, that fixed that, thanks! Now that it was pointed out, I do remember changing that in another project. I guess I forgot about it.

    Something else I don't understand the reason for (or how to use) is in the body tab when creating/editing a page is there's a "block" and it can be removed or add more. I looked in the Pages doc, but didn't see anything about it and it doesn't appear to be related to Blocks.

    Edit: So it has a body with a tool tip that says, "main content of the page", but.. it's not, because the main is the textbox under the header field. So I do not understand it's purpose. Here's what I'm talking about, http://imgur.com/RYQ4otg
  • edited 3:35AM
    That appears to be some testing example code left in the develop branch. The default main layout should more or less look like the following:
    $config['layouts']['main'] = array( //'file' => $config['layouts_path'].'main', // 'class' => 'Main_layout', // 'filepath' => 'libraries', // 'filename' => 'Main_layout.php', 'fields' => array( 'Header' => array('type' => 'fieldset', 'label' => 'Header', 'class' => 'tab'), 'page_title' => array('label' => lang('layout_field_page_title')), 'meta_description' => array('label' => lang('layout_field_meta_description')), 'meta_keywords' => array('label' => lang('layout_field_meta_keywords')), 'Body' => array('type' => 'fieldset', 'label' => 'Body', 'class' => 'tab'), 'heading' => array('label' => lang('layout_field_heading')), 'body' => array('label' => lang('layout_field_body'), 'type' => 'textarea', 'description' => lang('layout_field_body_description')), 'body_class' => array('label' => lang('layout_field_body_class')), ) );

    What you saw was an example of using a repeatable template field with a block sub field type layout field (which makes for a flexible layout form):
    http://docs.getfuelcms.com/general/forms#template
    http://docs.getfuelcms.com/general/forms#block
    http://docs.getfuelcms.com/general/layouts#layouts_block_layouts
Sign In or Register to comment.