I am pulling my hair out here. I have installed Drupal on my local machine and am now trying to create a second, customized template for my site. My understanding from the Drupal site (http://drupal.org/node/104316) this is supposed to work "out of the box" without any further changes to code in either template.php or page.tpl.php. As the example suggests, I have made a copy of the original template, page.tpl.php and re-named it page-alternate.tpl.php. If I understand correctly, the new template, page-alternate.tpl.php should be accessible by navigating to www.mysite.com/alternate. I have tried this, but keep getting "the requested page could not be found". Can someone please, please give me a hint on this one? Could this be an apache configuration issues or .htaccess problem? Help is very appreciated.
Cheers,
Brad
Comments
login in as admin, go
login in as admin, go to
administer -> theme,
u will see your newly created theme.
select the theme u want.
http://youtsite/xxx will bring u to the xxx page, NOT page with the xxx theme.
Please clarify how it works....I am not smart with Drupal yet...
I have created my new theme, which is essentially a copy of the abessive theme, and placed it in a folder called "mytheme" at www.mysite.com/sites/all/themes/mytheme. My new theme "mytheme" already has a page template called page.tpl.php. I simply copied the original page template and copied it to page-xxx.tpl.php. According to http://drupal.org/node/104316, it is my understanding that I can now navigate to my newly created template by simply navigating to www.mysite.com/xxx. This is not working for me. What am I missing? Do I need to make a path alias for Drupal to find my new theme template? According to the link mentioned above, phptemplate theme engine should search the directory of my currently selected theme and, at the very least, serve up the original template file page.tpl.php. Again, according to the node on the Drupal site mentioned above, it seems that this should work out of the box without, say, modifying template.php or the original page.tpl.php in my currently selected theme. Sorry for my ignorance, but I am obviously missing something simple or do not understand how Drupal serves up template files from the current theme. Thanks in advance for help.
Cheers,
Brad