I know that we can assign a theme named page-name.tpl.php
to a page called /page/ with the use of the theme engine.
How can i assign a theme to a template programmatically in drupal ?
Maybe you can use Sections module?
c/p from project page:
This module allows you to create sections within your site. Each section has an installed template, theme or style attached to it.
Sections are shown based on:
- Node specific visibility settings
- Role specific visibility settings
- Page specific visibility settings (regexped paths)
- Custom PHP visibility snippets