For some reason I cannot see anything in the content type after selecting the cck type in the node ownership config. This is an aweseom project. Instead starting to use flag and rules and session_api and services this seems more streamlined, Where did I go wrong? any comments welcome, thank you

Comments

rob70’s picture

Install the module
In admin/user/permissions, set "access claim page" under the Node Ownership Permissions to allow the desired role to see the claim page
Navigate to a url that looks like this: http://mysite.com/node/[node id here]/claim

To enable this for users, add that link in your node template page.

Hope this helps.

I should note, this is the very manual way of creating that link. The module includes the following in the node's content array
which you can print as so:

<? echo $node->content['nodeownership_link']['#value']; ?>

vyasamit2007’s picture

Assigned: Unassigned » chintan.vyas
Status: Active » Patch (to be ported)

Please look at #1178908 to resolve this.

We have added this in our todos and in next version you will not have this issue.

Thanks!

gauravkumar87’s picture

tateenglund’s picture

Is there anyway to implement this in a view?

yogeshchaugule8’s picture

There is no way to implement this in view.

If you want to access all nodes which are claimed using this module you can see them on "admin/nodeownership/nodeclaims" and do the needful.

Yogesh

tateenglund’s picture

Thanks Yogesh.

Quick question, when a user's claim is approved, are they then the author of the node? The reason I ask that is that I am trying to show a list of all claimed nodes by user on their profile page. If you know of a good way to do this that would be aweseome.

yogeshchaugule8’s picture

When a user's claim is approved, are they then the author of the node?
- Yes.

Show a list of all claimed nodes by user on their profile page
- You can do this with the help of views module. Following are the steps to do this:
1. Create a view of view type node
2. Add basic fields which you wanted to show to user.
3. Add argument to view "node:nid" and provide default argument using php code.
4. In PHP code retrieve all nodes from nodeownership table which has status as 1 (approved) and uid as current user.
5. Once you've all nids to be displayed, then implode them with either comma (,) or plus (+) and select option "Allow multiple terms per argument" and click on update.
5. This will filter and display the results depending on the nids you've provided.

Yogesh

tateenglund’s picture

Thanks Yogesh!

swara05’s picture

Issue summary: View changes

Thanks for the module..!

I am using this module to give a node ownership to my roles user.But i wan to display a user all his particular claimed nodes in his/her account.I have tried but i don't queried the information before in view by adding database query.Could you please give any suggestions?