A new route for preparing coordination polymers from hydrothermal reactions involving in situ ligand synthesis.