0

I have created a new content-type Document Template. I need to display the contents of type Document template in a different path.

localhost/site_name/document_templates

not in

localhost/site_name.

What should I do?

| improve this question | | | | |
1

Create a View with Page display. Set its Path to document_templates. Add a Filter criteria for Content: Type (= Document Template). Hit save. Now visit your url localhost/site_name/document_templates. You will see your content of type Document Template.

| improve this answer | | | | |
  • I tried what you suggest. Yeah it's working. Thanks to that. The Nodes of Content Type 'Document' was displayed on path 'localhost/site_name/document_templates' , but it was still displayed in 'localhost/site_name' . How will I omit that in the original path? – alyssaeliyah Apr 25 '17 at 0:19
1

Use the pathauto module and configure it so this content type automatically gets the right path settings by default when creating a node. https://www.drupal.org/project/pathauto

| improve this answer | | | | |

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.