META TOPICPARENT |
name="SkillsPlugin" |
Display Users Skills on User Profile Pages
This topic will show you how to get the users skills displayed on their user profile page using the TWikiTemplates system. An example is shown in the screen shot below. This example uses the default PatternSkin, and using an unchanged PatternSkinUserViewTemplate.
The topic you need to edit is Public.PatternSkinUserViewTemplate.
Step 1.
Firstly, add the following line to PatternSkinUserViewTemplate. This needs to be anywhere between %TMPL:INCLUDE{"view"}% and %TMPL:DEF{"formattop"}% :
%TMPL:DEF{"skills"}%<div class="skills_UserHomePage">%SKILLS{action="userskills" user="%TOPIC%"}%</div>%TMPL:END%
Step 2.
Next, remove the line:
%TMPL:DEF{"formattop"}%%TMPL:P{"form"}%%TMPL:END%
and replace with the following:
%TMPL:DEF{"formattop"}%<table width="100%" cellpadding="20px">
<tr><td width="50%" valign="top">%TMPL:P{"form"}%</td>
<td width="50%" valign="top" align="right" style="padding-right:50px;">%TMPL:P{"skills"}%</td></tr>
</table>%TMPL:END%
You should now be able to view the users skills on their profile page!
Related: SkillsAdminIntroduction, SkillsAdvancedSearch, SkillsBrowseAll, SkillsCreateNewCategory, SkillsCreateNewSkill, SkillsDeleteCategory, SkillsDeleteSkill, SkillsEditMySkills, SkillsMoveSkill, SkillsPlugin, SkillsRenameCategory, SkillsRenameSkill, SkillsSearch, PatternSkinUserViewTemplate |