Sep172009
SkillCloud
This is what I use on my resume to make a skill cloud. It's kinda rough, but I figure it might come in handy for someone. I have XML stored in a document that is then parsed using simplexml then displayed as a cloud. If you want to see the xml, I'm using you can find it here
<?php
$skillsDoc = $modx->getDocument(10);
$skillsXml = $skillsDoc['content'];
$skillSet = simplexml_load_string($skillsXml);
#print_r($skillSet);
#return;
$out = '<div class="cloud">';
foreach($skillSet->skill as $skill){
$size = (float)$skill->proficiency * 2;
$out .= '<a href="'.$skill->link.'" style="font-size: '.$size.'em"><span>'.$skill->name.'</span></a> ';
}
$out .= '</div>';
return $out;
?>

Write a comment