← Back to team overview

mahara-contributors team mailing list archive

[Bug 1220044] Re: allowed blocktypes and common blocktypes in chooser issue

 

Or to put it another way, contenteditor.tpl needs to respect the list of
allowed blocktypes in the "local_get_allowed_blocktypes()" and
"local_get_allowed_blocktype_categories()" functions. Although since
those functions are category-specific, I'm not entirely sure how that's
going to work... I guess you maybe you could have a special category to
represent the blocks that display outside of the category tabs.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1220044

Title:
  allowed blocktypes and common blocktypes in chooser issue

Status in Mahara ePortfolio:
  New

Bug description:
  Now that we are having a couple of common blocktypes being default on
  the artefact chooser panel  there needs to be some sort of check to
  make sure the theme is allowed to see them.

  I know than in some themes they can have their blocktypes and
  blocktype categories be restricted via functions

  local_get_allowed_blocktype_categories($view);
  and
  local_get_allowed_blocktypes($category, $view);

  in local/lib.php

  so there should be some sanity check on the common blocktypes rather
  than having them hardcoded in the template done at some point.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1220044/+subscriptions


References