Fix "got skill?" block code
a Mission (something one person can do once) by lxpk Fri, 2008-04-25 03:11
My Mission:
Category:
task
Status:
active
Required Skills:
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.
»
- Login or register to post comments
- Email this page





