Personal Info AddOn Custom Data

Admin topic for PersonalInfoAddOn. For usage instructions see PersonalInfoHome.

This current topic and PersonalInfoModules work in tandem:

For fast user data retrieval:
  1. install Foswiki:Extensions/AttachContentPlugin
  2. enable it in configure
  3. Set PERSONALINFOADDON_FILECACHE = 1 in Main.SitePreferences.

How can I customize a section?

  • To replace the default implementation: replace the %INCLUDE{}% variable by custom text.
  • To add to the custom implementation: leave the %INCLUDE{}% variable in place and add text before or after

Customizable sections

Pictures (Developers)

%STARTSECTION{"picturesDevelopers"}%<style type="text/css" media="all">
#pISearchResultsGrid {
margin:1em 0;
}
#pISearchResultsGrid .foswikiImage a img {
border:none;
margin:0 0 .35em 0;
padding:0;
}
#pISearchResultsGrid a.pISearchResultsGridItem {
display:block;
float:left;
text-align:center;
border:1px solid #eee;
text-decoration:none;
margin:0 .5em 1em 0;
padding:3px;
overflow:hidden;
width:auto;%IF{"defined gridWidth" then="width:%gridWidth%px;"}%
height:100%;%IF{"defined gridHeight" then="height:%gridHeight%px;"}%
}
#pISearchResultsGrid a.pISearchResultsGridItem img {
overflow:hidden;
width:auto;%IF{"defined imgWidth and '%imgWidth%'!=''" then="width:%imgWidth%px;"}%
}
#pISearchResultsGrid .pISearchResultsGridInfo {
display:block;
font-size:94%;
line-height:100%;
overflow:hidden;
}
#pISearchResultsGrid a:link .pISearchResultsGridInfo,
#pISearchResultsGrid a:visited .pISearchResultsGridInfo {
text-decoration:none;
color:#06c;
}
#pISearchResultsGrid .foswikiImage a:hover {
border:1px solid #06c;
}
#pISearchResultsGrid a:hover .pISearchResultsGridInfo {
text-decoration:none;
color:#06c;
background:none;
}
</style>
<noautolink>
<div id="pISearchResultsGrid">%SEARCH{ "WouldLikeToCheckIn" web="Development" scope="topic" nonoise="on" excludetopic="ProjectContributorWouldLikeToCheckInTopicTemplate%IF{'defined exclude' then=',%exclude%'}%" order="topic" _format="   * $web.$topic: createusername=$createusername" format="<div class='foswikiImage clearfix foswikiLeft'><a href='%SCRIPTURL{view}%/%USERSWEB%/$createusername' class='pISearchResultsGridItem' id='pISearch$createusername' title='$percntFORMFIELD{\"FirstName\" topic=\"%USERSWEB%.$createusername\"}$percnt $percntFORMFIELD{\"LastName\" topic=\"%USERSWEB%.$createusername\"}$percnt'>$percntINCLUDE{$quotPersonalInfoLayoutModules$quot section=$quotimage$quot imgType=$quotnolink$quot imgWeb=$quot$web$quot imgTopic=$quot%USERSWEB%.$createusername$quot imgTitle=$quot$percntFORMFIELD{\"FirstName\" topic=\"%USERSWEB%.$createusername\"}$percnt $percntFORMFIELD{\"LastName\" topic=\"%USERSWEB%.$createusername\"}$percnt$quot imgName=$quot$percntFORMFIELD{$quotPicture$quot topic=$quot%USERSWEB%.$createusername$quot format=$quot$value$quot default=$quot$quot alttext=$quot$quot}$percnt$quot}$percnt<span class='pISearchResultsGridInfo'>$percntFORMFIELD{\"FirstName\" topic=\"%USERSWEB%.$createusername\"}$percnt $percntFORMFIELD{\"LastName\" topic=\"%USERSWEB%.$createusername\"}$percnt</span></a></div>"}%<br class="foswikiClear" /></div>
</noautolink>%ENDSECTION{"picturesDevelopers"}%

personalInfoFields

%STARTSECTION{"personalInfoFields"}%<table cellspacing='0' cellpadding='0'>
%INCLUDE{"PersonalInfo" section="personalInfoDataRow" fieldName="Country" label="Country"}%
%INCLUDE{"PersonalInfo" section="personalInfoDataRow" fieldName="OrganisationName" label="Organisation"}%
%INCLUDE{"PersonalInfo" section="personalInfoDataRow" fieldName="OrganisationURL" label="Organisation website"}%
%INCLUDE{"PersonalInfo" section="personalInfoDataRow" fieldName="HomePage" label="My homepage"}%
%INCLUDE{"PersonalInfo" section="personalInfoDataRow" fieldName="Email" label="Email"}%
%INCLUDE{"PersonalInfo" section="personalInfoDataRow" fieldName="Comment" label="Comment"}%
</table>%ENDSECTION{"personalInfoFields"}%

personalInfoDataRow

To use a custom implementation: replace INCLUDE variable by custom text
%STARTSECTION{"personalInfoDataRow" fieldName=%FIELDNAME% label=%LABEL%}%%INCLUDE{"PersonalInfoModules" section="personalInfoDataRow"}%%ENDSECTION{"personalInfoDataRow"}%

personalInfoStyle

%STARTSECTION{"personalInfoStyle"}%%INCLUDE{"PersonalInfoModules" section="personalInfoStyle"}%%ENDSECTION{"personalInfoStyle"}%

personalInfo

%STARTSECTION{"personalInfo"}%%INCLUDE{"PersonalInfoModules" section="personalInfo"}%%ENDSECTION{"personalInfo"}%

phoneList

%STARTSECTION{"phoneList"}%%INCLUDE{"PersonalInfoModules" section="phoneList"}%%ENDSECTION{"phoneList"}%

createPhoneListXMLAttachment

%<nop>STARTATTACH{"phoneList.xml"}%%INCLUDE{"%TOPIC%" section="phoneListXML"}%%ENDATTACH%

phoneListXML

%STARTSECTION{"phoneListXML"}%%INCLUDE{"PersonalInfoModules" section="phoneListXML"}%%ENDSECTION{"phoneListXML"}%

personalSearch

%STARTSECTION{"personalSearch"}%%INCLUDE{"PersonalInfoModules" section="personalSearch"}%%ENDSECTION{"personalSearch"}%

vCard

%STARTSECTION{"vCard"}%%INCLUDE{"PersonalInfoModules" section="vCard"}%%ENDSECTION{"vCard"}%

createDirectSearchAttachment

%STARTATTACH{"directSearch.js" comment="<nop>PersonalInfoAddOn cached user data"}%%INCLUDE{"PersonalInfoModules" section="directSearchScriptCode"}%%ENDATTACH%

directSearch

%STARTSECTION{"directSearch"}%%INCLUDE{"PersonalInfoModules" section="directSearch"}%%ENDSECTION{"directSearch"}%

directSearchScript

%STARTSECTION{"directSearchScript"}%%INCLUDE{"PersonalInfoModules" section="directSearchScript"}%%ENDSECTION{"directSearchScript"}%

directSearchScriptFile

%STARTSECTION{"directSearchScriptFile"}%%INCLUDE{"PersonalInfoModules" section="directSearchScriptFile"}%%ENDSECTION{"directSearchScriptFile"}%

directSearchData

%STARTSECTION{"directSearchData"}%%INCLUDE{"PersonalInfoModules" section="directSearchData"}%%ENDSECTION{"directSearchData"}%

tableOfAllUsers

%STARTSECTION{"tableOfAllUsers"}%%INCLUDE{"PersonalInfoModules" section="tableOfAllUsers"}%%ENDSECTION{"tableOfAllUsers"}%

pictures

%STARTSECTION{"pictures"}%%INCLUDE{"PersonalInfoModules" section="pictures"}%%ENDSECTION{"pictures"}%

pictureFilterSearch

%STARTSECTION{"pictureFilterSearch"}%%INCLUDE{"PersonalInfoModules" section="pictureFilterSearch"}%%ENDSECTION{"pictureFilterSearch"}%
Topic revision: r42 - 10 Jul 2015, MichaelDaum - This page was cached on 16 Nov 2018 - 22:51.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy