Is there a way to tile a texture automatically over an object?
While it isn't entirely clear what you are asking, if my assumption is correct, you want to map a texture onto an object in a way that it repeats X amount of times over one or both axes. Like a tiled floor.

The easiest way to do this is to scale the UV coordinates in the image editor to X times the bounds of the UV space. Any faces assigned UVs outside of this space will loop or "tile" like so:

Before scaling


After scaling