2

I am working on making user pages for a certain type of user who can add/edit/delete content on my Drupal site. I've figured out how to use Views to create a 'Manage Listings' tab which appears on the user's profile, now I need to make another Local Task tab (or any kind of link) that allows the user to add new content.

I tried just adding a header to the view using basic markup text that contains:

<a href="node/add/">Add New Listing</a>

But because the link is displayed from the 'users/admin/' page, the link ends up bringing them to 'users/admin/node/add/' which doesn't exists (obviously). How can I create a create content link without messing up the path?

Below is a visual for help:

enter image description here

Please excuse the fact that this is a very simple question - this is my first attempt at building a Drupal site.

1 Answer 1

3

use /node/add instead because then it is relative to url instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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