I know, it's possible to give a side of a object an other texture than the other sides. Here an example: (This is my object and it has a wooden-pole-texture, but i want to have at the top and the end an other texture)

The yellow side is the side with the wanted differend texture. How to solve it?
Thanks,
Florenzius