Fix "got skill?" block code

Mark as Completed
Status: 
active
Assigned: 
Category: 
task
Priority: 
normal
My Mission: 
Category: 
task
Status: 
active

I haven't quite figured it out.

UPDATE:

I dropped the attempt to do this in blocks and learned instead how to insert views from this tutorial.

Now I have a simple view called gotskill which:

  • filters for nodes authored by the currently logged in user. 
  • takes an argument for the related node group based on the $nid of the page it is called from.

The call is in the page phptemplate and it looks like this:

//load the view by name
$view = views_get_view('gotskill');
//output the view
print views_build_view('embed', $view, array($nid), false, 3);

Now I have to make it look nice and extend this to other content types.

I realize now that I need to make it mesh between both the skill and the personal skill.