Make a Staff Profile Page in Modx
1) Make Template Variables (these are up to you) for this example we will need a photo and job title
2) Make getResources CHUNK.
[[getResources?
&parents=`9` [[- 'This is the id of the Team Page Resource' ]]
&tpl=`teamProfileTpl` [[- 'This is the name of your profile layout template chunk' ]]
&includeTVs=`1`
&includeContent=`1`
&showHidden=`1`
&sortby=`{"publishedon":"DESC"}`
&limit=`0`]]
3) Make the layout of the profiles CHUNK. (teamProfileTpl)
<div class="col-md-4">
<img src="[[+tv.teamProfilePhoto]]">
<h3><strong>[[+pagetitle]]</strong></h3>
<h3><strong>[[+tv.jobTitle]]</strong></h3>
<a href="[[~[[+id]]]]" class="btn btn-primary">View Profile</a>
</div>
3) On the parent Team page put the getResources CHUNK call in content area.
[[$teamGet]]
4) Make an individual team member page Template (or just use baseTemplate) for it to link to.
Demo
Get In Touch
Have a question? or perhaps spotted a problem?
Maybe you have something you would like to add. Drop us a line anytime!


