added a table ressource_type an entry in add Post view for the type of post and modify the photo attachement into ressource attachement