I have tried to add a contextual link:

node/[node:nid]/delete

added to nodes with the content type story. However, I does not show up - not even after clearing the cache several times. I suspect it has something to do with workbench_moderation to do? Have you encountered this problem?

Comments

bkoether’s picture

Assigned: Unassigned » bkoether
Status: Active » Postponed (maintainer needs more info)

Hi lsolesen,

The module does go through an access control check before it adds the link. So if your user account does not have the permissions to delete the nodes it should not be rendered. I have not tried it in connection with Workbench yet.

Do you have a specific workflow set up in Workbench when it comes to deleting nodes?

lsolesen’s picture

No. and i am administrator.

bkoether’s picture

Status: Postponed (maintainer needs more info) » Active

Ok, I will look into it this week.

bkoether’s picture

Status: Active » Postponed (maintainer needs more info)

Hi lsolesen,

sorry, but I was not able to reproduce this error.
One thing that I might not fully understand is why you would want to add a delete link through CCL. The delete link is a default contextual link that will be displayed on nodes. If your account, for whatever reasons, does not have permissions to delete a node, the default link as well as the custom version you created would not show up.

lsolesen’s picture

I have never seen delete as a default contextual link, but I will investigate that further. I am the administrator of the site, where I am trying to add the contextual link in conjunction with workbench_moderation, and I only have the following links being on the node:

- View Draft
- Edit Draft
- Moderate

When published I will have other options, but not the delete link.

Delete node/%nid/delete node Indholdstype: Story <-- added like this.

bkoether’s picture

Hi lsolesen,

the only thing I can see is that your setup for some reason doesn't allow for direct deletion of nodes or that your role just doesn't have access to it.
The CCL module performs an access check for every link in order to make sure only links are displayed that a user actually has access to.

I tried it out with workbench moderation and was able to add the delete link without any issues.

lsolesen’s picture

I can access node/xxx/delete when just typing it into the browser. But it is not visible in the contextual links on the individual node.

clare-ux’s picture

I have a similar issue as #7. I do not see the default "new draft" or "edit draft" in the contextual links for a particular role, however when I enter the edit URL in the browser I have no problems. I didn't used to have issues, wondering if it has something to do with an update somewhere?

bkoether’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I double checked again today with the latest dev version of CCL and the latest Workbench version and I'm not able to reproduce this behaviour.
I will close this ticket for now.

bkoether’s picture

Issue summary: View changes

That is how the link is created.