Modulating p-hydroxycinnamate behavior as a ditopic linker or photoacid in copper(ii) complexes with an auxiliary pyridine ligand.