/**
  * load the fields and pass them to the view
  */
 function render()
 {
     // load the custom fields that have been defined so far
     $customFields = new CustomFields();
     $blogFields = $customFields->getBlogCustomFields($this->_blogInfo->getId(), true, $this->_page, DEFAULT_ITEMS_PER_PAGE);
     $this->notifyEvent(EVENT_CUSTOM_FIELDS_LOADED, array("fields" => &$blogFields));
     // and the total number of them too
     $numBlogFields = $customFields->getNumBlogCustomFields($this->_blogInfo->getId());
     // create the pager
     $pager = new Pager("?op=blogCustomFields&page=", $this->_page, $numBlogFields, DEFAULT_ITEMS_PER_PAGE);
     // and show them
     $this->setValue("fields", $blogFields);
     $this->setValue("pager", $pager);
     return parent::render();
 }