app/controllers/optimacms/admin/templates_controller.rb
def newblock
      @item = model.new({:tpl_format=>Optimacms::Template::EXTENSION_DEFAULT, :type_id=>TemplateType::TYPE_BLOCKVIEW})
      item_init_parent
      @item.set_basedirpath_from_parent

      @url_back = url_list
    end
def newblock
      @item = model.new({:tpl_format=>Optimacms::Template::EXTENSION_DEFAULT, :type_id=>TemplateType::TYPE_BLOCKVIEW})
      item_init_parent
      @item.set_basedirpath_from_parent

      @url_back = url_list
    end
block