2

I created a new content type "project" and I want to create a view where every one can add a node (create a content) with my content type.

How to expose the form (to add a new project node) in the front (I do not just want to expose a link to add such node)?

In admin/people/permissions I granted the permission for ANONYMOUS USER to be able to create a new content.

  • Do you want to show Add Project link only so any user can add a project, right? – usmanjutt84 Mar 26 '18 at 15:35
  • @Pierre.Vriens, I want to give anonymous user permissions to mydrupal/node/add/project (this is my view).. Thank you – A.Sana Mar 26 '18 at 17:13
1

To display content type form you can use formblock module as it description explains:

Enables the presentation of user registration, site wide contact, or node creation forms in blocks. This is particularly useful for including forms on panels.

  • Enable the module
  • Go to Project admin/structure/types/manage/project
  • On the bottom left vertical tabs there'd be a Form Block, check Enable data entry from a block and save
  • Go to admin/structure/block and enable Project form block

enter image description here

I hope this'd help you.

  • Thanks Sir, that expose a link but I want to expose the form – A.Sana Mar 26 '18 at 17:11
  • @A.Sana see the updated answer – usmanjutt84 Mar 26 '18 at 18:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.