More hacking on portal templates