app/controllers/optimacms/admin/templates_controller.rb
def newfolder
      @item = model.new(:is_folder=>true)
      item_init_parent
      @item.basedirpath = @item.parent.basepath+'/' unless @item.parent_id.nil?

    end
def newfolder
      @item = model.new(:is_folder=>true)
      item_init_parent
      @item.basedirpath = @item.parent.basepath+'/' unless @item.parent_id.nil?

    end
folders