1. 20 Nov, 2007 1 commit
  2. 19 Nov, 2007 1 commit
  3. 13 Nov, 2007 1 commit
  4. 07 Nov, 2007 2 commits
  5. 30 Oct, 2007 2 commits
  6. 29 Oct, 2007 1 commit
  7. 27 Oct, 2007 2 commits
    • Nigel McNie's avatar
      Added a new abstract method for blocktypes. · 494d981f
      Nigel McNie authored
      It must be implemented to return the artefactchooser form element for the blocktype. This is so the pagination json script can also retrieve this data.
      
      Implemented the method in the System blocktype class as a final method that does nothing. System blocktypes don't deal with artefacts.
      494d981f
    • Nigel McNie's avatar
      Allow blocktypes to implement 'get_instance_title', for which they receive a... · e22fc6a6
      Nigel McNie authored
      Allow blocktypes to implement 'get_instance_title', for which they receive a blockinstance and can use data from that to set the title of the blockinstance.
      
      For example, the blogpost blocktype can look at the title of the blog post (by examining the configdata for the blogpost id).
      e22fc6a6
  8. 26 Oct, 2007 1 commit
    • Nigel McNie's avatar
      Implement the base method for deleting artefacts from a blockinstance. · 5e55f16e
      Nigel McNie authored
      This method assumes that either 'artefactid' contains a single ID or 'artefactids' contains an array of artefact IDs, of which one could be the one to delete. This means that as long as the children store there artefact IDs this way, there's no need for them to re-implement this method.
      5e55f16e
  9. 25 Oct, 2007 1 commit
  10. 24 Oct, 2007 2 commits
  11. 23 Oct, 2007 2 commits
    • Nigel McNie's avatar
      Corrected an oversight in the change to allowing the elements themselves to... · 78cc3511
      Nigel McNie authored
      Corrected an oversight in the change to allowing the elements themselves to define their javascript.
      
      Now that is happening, the element really has to be built first to give it the best chance to know what javascript it needs. This is definitely true in the case of the artefact chooser.
      78cc3511
    • Nigel McNie's avatar
      Fix a bug in setting the configdata for a block, and provide a better way for... · 72dfe941
      Nigel McNie authored
      Fix a bug in setting the configdata for a block, and provide a better way for elements to export any startup javascript they need.
      
      Because the configdata was not being set in the actual object (it was just being set directly in the database, the rebuilding of what artefacts were in the block was thinking that the existing ones were still in there. Now the config data is set()'ed and then the object is commit()'ed so that everything gets set properly.
      
      Also improved the way elements export javascript they need to run. It can now be set in the context of an element, meaning the javascript can be personalised to the element itself.
      72dfe941
  12. 16 Oct, 2007 24 commits