Public bug reported:

Currently if we add a block to a page via a new BlockInstance we need to
add the block as the last in sort order.

But we can't add the block at a specific sort order due to clashing with
existing blocks.

However the View->addblocktype can handle adding a block as a certain
point by using the private function shuffle_cell but this function only
returns the rendered html of the block if 'returndata' is set.

I'll add ability to return new blockinstance id if 'returndata' === 'id'
as an option

** Affects: mahara
     Importance: Low
     Assignee: Robert Lyon (robertl-9)
         Status: In Progress

** Changed in: mahara
     Assignee: (unassigned) => Robert Lyon (robertl-9)

-- 
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/1694155

Title:
  Allow addblocktype to return id of new block instance

Status in Mahara:
  In Progress

Bug description:
  Currently if we add a block to a page via a new BlockInstance we need
  to add the block as the last in sort order.

  But we can't add the block at a specific sort order due to clashing
  with existing blocks.

  However the View->addblocktype can handle adding a block as a certain
  point by using the private function shuffle_cell but this function
  only returns the rendered html of the block if 'returndata' is set.

  I'll add ability to return new blockinstance id if 'returndata' ===
  'id' as an option

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

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to