[noun] + 以外 [noun] + 以外 + の + [noun] [verb (dictionary form)] + 以外(に)
以外 means "other than", "except": it sets one thing aside and talks about everything else. It goes straight after a noun, and before another noun it takes の.
With は, the rest is the topic: "apart from X, everything …". With に, X is one item and you ask about or add others: "besides X".
A verb in the dictionary form takes 以外 directly. With a negative after it, the sentence says that one action is all there is: "nothing but", "no choice but".