Is it possible to remove or hide the Claim request link from a node once it has been successfully claimed?
I've been able to generate an attached View where I can print the claim status on nodes that have been claim approved, but can't seem to figure out how to hide the claim link itself.
Any advice is much appreciated!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | nodeownership-hide-claim-link-of-claim-approved-nodes-2530322-3.patch | 744 bytes | vinay15 |
Comments
Comment #1
vinay15Hi michaelaj,
Can you explain your issue in detail?
As per my understanding the functionality is when a user claims an already claim approved node, the user is notified with a message saying "Someone else has claimed this node. "
Comment #2
michaelaj commentedSure, here's my scenario:
When a node is available for ownership claim, all users (anonymous and authenticated roles) will see the "Claim this node" link. Once a node has been claimed, the link is still visible, and I would like to hide it from view. It is true that a user submitting a claim to an already-claimed node will receive the "Someone else has claimed this node" message, but I'd like to remove the opportunity altogether if a node has already been assigned ownership.
One case where I see this sort of working is when a user has claimed a node The link is hidden from the node's owner, but visible to all other visitors.
Could this be accomplished via CSS? Perhaps claimed nodes could write a "claimed" class to the tag, which could then be used as a styling hook to hide the link at the theme layer. Unfortunately, I'm not sure how to override the module to print the class to the HTML layer.
I hope that explains my question better. Does that help?
Thank you!
Comment #3
vinay15Hi michaelaj,
Try applying this patch.
Hope, this might help you.
Thanks!
Comment #4
vinay15Comment #6
swarad07Thanks for patch. The issue is fixed in latest dev, soon will be pushed to the next stable release.
Comment #7
swarad07Comment #8
pyxio commentedhello, i tried both versions and i still see the claim link on already claimed nodes.