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?!?

0

1 Answer 1

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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