A series of 1- and 2-D coordination polymers containing a functionalised diaza-18-crown-6 ligand show guest dependent variation of the ligand length.