Creating a ModX website part 6: The 'about' and 'portfolio' sections
published onNow that we have finished off the masthead we can move on to the about
and portfolio
sections.
The about section
This can be achieved by using the same methods you used for the masthead and so I will leave this for you to experiment with using the knowledge you have gained from Creating a ModX website part 4: Improving the masthead and Creating a ModX website part 5: Further masthead development.
It will likely be much better to use Template Variables for the text in the two columns and perhaps a chunk property for the download button (if you wished to keep it).
Of course there is no reason why you might want to keep the button so feel free to remove it from the about
chunk if you do wish to not use it.
One last thing to note is that, if you do choose to use a chunk property (e.g. [[$masthead? &name=`User one`]]
then you will want to remove the ModX tag in the template which 'calls' the about section and move it to the individual pages.
If you keep it in the template then you will not be able to provide different values on different pages unless you choose to use Template Variables.
The portfolio section
This, like the about section, can easily be altered using Template Variables or chunk properties.
For this section chunk properties will likely become a little unwieldly so I would be tempted to use Template Variables instead.
As this would simply involve repeating previous information with slight changes I will leave this section to you to tackle if you wish to.
Conclusion
If you have chosen to experiment here using the methods described previously you should now have a very good understanding of how to use both chunk properties and Template Variables.