nodeprofile modules - first code available

Events happening in the community are now at Drupal community events on www.drupal.org.
fago's picture

As I've already posted, I'm working on nodeprofiles as summer of code project - project page. Now I've some first code you might be interested to test.

I'll try to give you a short overview of the modules I built:

usernode.module - Automatically creation of usernodes
nodefamily.module - Builds nodefamilies based on content types and author information
nodeprofile.module - Marks content types as profiles

check the readme or my site for more detailed information.

To achieve my goals I've a started development of yet another node relations module: nodefamily. It uses relations between content types to automatically set relations between nodes of the same author and related types.
example use case: imagine a profile which contains multiple addresses for a user.

Your feedback and ideas are welcome :)

Comments

confusion with usernode and user profile

Anonymous's picture

user node page:

node/272

display person page which i created for this user with the addition of the code snippet in node.tpl.php

user/15

person page node itself:

node/275

I downloaded your module and started to create new users, all of which had usernodes generated, node/272, for example's sake.

As that user, I created a person page, node/275.

I included the snippet:

<?php
     
foreach ($node->children as $childnode) {
        print
node_view($childnode);
      }
  
?>

to the node.tpl.php page per your instructions. When I go to admin/content and in the list click on the usernode for that specific user, node/272, i see the person page node (node/275) displayed. This is what I expected.

Then I created a view, and used "Usernode: name" as a field, I choose this over "Node: author name", because I had hoped that the link for the usernode name would be to the usernode corresponding to that user. This was not the case.

Creating the view displayed the names of all the users on the site, whose names were linked to their user profile- for example, user/15.

I am confused, for I had hoped that using nodeprofile with views, I would be able to produce links to the usernode page, not the user profile.

It is unclear to me how to make the usernode available to users of my site except while it is in the content/admin list; unclear how to make the link on a user name refer to the usernode, not the user profile.

Please advise,

Richard

issue

fago's picture

I've answered already your issue, please don't double post

I like it!

karens's picture

I like the direction this is taking. I am just starting to work with your code. I had gone part way down the path of creating my own solution before you started this, so I am trying to back out my previous changes to be able to test this properly. My initial reaction is that this approach may work very well for my purposes. I'll post bugs/patches to the project issues tracker once I get to where I can better test it.

Relationships & site structuring

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week