Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set menu links in region in hook_menu. #1029

Open
liquidcms opened this issue May 11, 2019 · 0 comments
Open

Can't set menu links in region in hook_menu. #1029

liquidcms opened this issue May 11, 2019 · 0 comments

Comments

@liquidcms
Copy link

According to documentation i should be able to assign menu links to regions in the hook_menu:

function qleva_menu() {
  var items = {};

  items['qleva_start'] = {
    title: 'Start',
    page_callback: 'qleva_start_page'
  };

  items['qleva_start_auth'] = {
    title: 'Home Auth2',
    page_callback: 'qleva_start_auth',
    pageshow: 'qleva_start_auth_show',
    //pagehide: 'qleva_start_auth_remove'
    //access_arguments: ['authenticated user'],
    region: {
      name: 'header',
      options: {
        attributes: {
          'data-icon': 'home',
          'class': 'ui-btn-left'
        }
      }
    }
  };

  return items;
}

this provides a page with correct title and correct content; but no icon shows in the header.

It does work when i add it in settings.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant