Do you have access to a pool ? You could try swimming or doing water aerobics. You can also do upper body strength exercises while sitting in a chair. Work your upper body muscles while your toe/foot heals.
Even if you can't engage in your regular routine for a couple of weeks because of your toe, that's NOT the end of the world. As long as you are mindful of what you eat, you will not gain any weight because you can't exercise. Weight loss and even weight gain is all about what you eat. Good nutrition is what takes the weight off and keeps it off. Exercise is what keeps our bodies fit and healthy.
So, listen to your doctor. If your doctor doesn't want you doing any exercise for a couple of weeks, lay off the exercise. If they say it's okay to do some chair workouts or hit the pool, that's okay. Mostly, what your portions and do your best to eat right.
A person can't outrun a bad diet with exercise. Now is the time where you'll really learn how healthy your diet (food intake) really is.