Hello everyone.
I have been setting up my website on Drupal, and now that it's almost finished, I want to ask you if the method I used to theme it is the usual someone follows when working with Drupal (i.e., is it considered a good practice?).
So, my site is supposed to have a menu with a few options (photo gallery, information, links, introduction, ...), each of them pointing to a new page, always leaving the menu with the previous options on top.
The method I follow to achieve this is this:
- First, I create a page node for every menu option. Since the website was working on Apache, I just had to copy the HTML code of the page.
- Second, on the page.tpl.php file of the theme I'm working with, I hardcode the href addresses of the menu. For example, for the "Photo gallery" option, I created the page node called "photo". I know that page node is node number 6; so, I make the link point to ?q=node/6".
- That way, whenever I click on "photo gallery", node number 6 will appear on the content area.
So, since this is the first site I mounted on Drupal, I wanted to ask you if this is the correct way of working with themeing. Is it considered a bad practice what I did?
If there is a better and more accepted solution to achieve this task (integrating your own menu options on a Drupal site), I'd appreciate you telling me how to do it. I just don't want to continue with my work this way if my solution is prone to causing problems in the future.