0

I've got this:

function foo_menu() {
    $items = array();
    $items['facadmin/directory'] = array(
        'title' => 'Faculty & Staff Directory',
        'page callback' => 'foo_facstaff_directory',
        'access callback' => TRUE,
        'type' => MENU_CALLBACK,
    );
    return $items;    
}

Which then does this:

function foo_facstaff_directory() {
    $content = foo-make-html();
    $page = array();
    $page['#markup'] = $content;
    return $page;
}

I'd like this page to use a predefined panels template, but when I set 'facadmin/directory' as a selection rule, it doesn't do the smart thing automatically and just dumps the html into the content region -- no panels.

Help?!?

1

I made a custom block and put that into a standard layout instead.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.