def new_post_params
      # take params from front-end request
      post_params = params.require(:post).permit(:title, :subtitle).to_h
      # add current superuser id
      post_params[:lato_core_superuser_creator_id] = @core__current_superuser.id
      # add post parent id
      post_params[:lato_blog_post_parent_id] = (params[:parent] && !params[:parent].blank? ? params[:parent] : generate_post_parent)
      # add metadata
      post_params[:meta_language] = cookies[:lato_blog__current_language]
      post_params[:meta_status] = BLOG_POSTS_STATUS[:drafted]
      # return final post object
      post_params
    end
def new_post_params
      # take params from front-end request
      post_params = params.require(:post).permit(:title, :subtitle).to_h
      # add current superuser id
      post_params[:lato_core_superuser_creator_id] = @core__current_superuser.id
      # add post parent id
      post_params[:lato_blog_post_parent_id] = (params[:parent] && !params[:parent].blank? ? params[:parent] : generate_post_parent)
      # add metadata
      post_params[:meta_language] = cookies[:lato_blog__current_language]
      post_params[:meta_status] = BLOG_POSTS_STATUS[:drafted]
      # return final post object
      post_params
    end
Params helpers:
 **************************************************************************
 This function generate params for a new post.