def blog__create_db_post_field(post, key, content, post_field_parent = nil)
      # create post field on database
      db_post_field = LatoBlog::PostField.new(
        key: key,
        typology: content[:type],
        lato_blog_post_id: post.id,
        lato_blog_post_field_id: post_field_parent ? post_field_parent.id : nil
      )
      throw "Impossible to create post field #{key}" unless db_post_field.save
      # update post field with correct content
      blog__update_db_post_field(db_post_field, content, post_field_parent)
    end
def blog__create_db_post_field(post, key, content, post_field_parent = nil)
      # create post field on database
      db_post_field = LatoBlog::PostField.new(
        key: key,
        typology: content[:type],
        lato_blog_post_id: post.id,
        lato_blog_post_field_id: post_field_parent ? post_field_parent.id : nil
      )
      throw "Impossible to create post field #{key}" unless db_post_field.save
      # update post field with correct content
      blog__update_db_post_field(db_post_field, content, post_field_parent)
    end
Manage single field functions:
 **************************************************************************
 This function creates a new db post field from a specific content.