I have a few sections on my site. Let’s call them /content/books/, /content/videos/, /content/notes/, and /content/ious/. I’m writing some template code to loop through sections and then loop through their pages.
What I want is to be able to take any particular Section, held in a $section variable, and output a pretty name for it. If I just output {{ $section }}, I get a plain name like “books”. What I want is to specify a nicer name somewhere.
I thought of using some workarounds like changing it to title case somehow, but that doesn’t work for everything, e.g. /content/ious/ should display as “IOUs”.
I thought maybe I could set a linkTitle in the archetypes files to do this, but that doesn’t seem to work. I guess the linkTitle gets overwritten in the individual pages.
Any help? Thanks.