The morphology of a Suzuki coupling-based microporous organic polymer (SUM) was controlled by the use of a Sonogashira coupling-based microporous organic polymer (SOM). The template synthesis resulted in water compatible and hollow SOM@SUM materials bearing tetraphenylethylene moieties (H-SOM@SUM-T), which showed aggregation-induced emission and promising sensing performance towards nitrophenols in water.